Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itkQuadEdgeMeshPoint.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkQuadEdgeMeshPoint.h,v $
00005   Language:  C++
00006   Date:      $Date: 2007/09/06 17:45:53 $
00007   Version:   $Revision: 1.7 $
00008 
00009   Copyright (c) Insight Software Consortium. All rights reserved.
00010   See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
00011 
00012      This software is distributed WITHOUT ANY WARRANTY; without even
00013      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00014      PURPOSE.  See the above copyright notices for more information.
00015 
00016 =========================================================================*/
00017 // -------------------------------------------------------------------------
00018 // This code is an implementation of the well known quad edge (QE) data
00019 // structure in the ITK library. Although the original QE can handle non
00020 // orientable 2-manifolds and its dual and its mirror, this implementation
00021 // is specifically dedicated to handle orientable 2-manifolds along with
00022 // their dual.
00023 //
00024 // Any comment, criticism and/or donation is welcome.
00025 //
00026 // Please contact any member of the team:
00027 //
00028 // - The frog master (Eric Boix)       eboix@ens-lyon.fr
00029 // - The duck master (Alex Gouaillard) alexandre.gouaillard@sun.com
00030 // - The cow  master (Leonardo Florez) florez@creatis.insa-lyon.fr
00031 // -------------------------------------------------------------------------
00032 
00033 #ifndef __itkQuadEdgeMeshPoint_h
00034 #define __itkQuadEdgeMeshPoint_h
00035 
00036 #include "itkPoint.h"
00037 #include "itkConceptChecking.h"
00038 
00039 namespace itk
00040 {
00047 template< class TCoordRep, unsigned int VPointDimension, typename TQuadEdge >
00048 class QuadEdgeMeshPoint : public Point< TCoordRep, VPointDimension >
00049 {
00050 public:
00051 
00053   typedef QuadEdgeMeshPoint                         Self;
00054   typedef Point< TCoordRep, VPointDimension >       Superclass;
00055 
00057   itkStaticConstMacro( PointDimension, unsigned int,
00058                        VPointDimension );
00059 
00060   typedef typename Superclass::ValueType     ValueType;
00061   typedef typename Superclass::CoordRepType  CoordRepType;
00062   typedef typename Superclass::RealType      RealType;
00063   typedef typename Superclass::BaseArray     BaseArray;
00064   typedef typename Superclass::Iterator      Iterator;
00065   typedef typename Superclass::ConstIterator ConstIterator;
00066   typedef typename Superclass::VectorType    VectorType;
00067 
00068   typedef ValueType ValueArrayType[ itkGetStaticConstMacro( PointDimension ) ];
00069 
00070 #ifdef ITK_USE_CONCEPT_CHECKING
00071 
00072   itkConceptMacro(DimensionShouldBe3,
00073                   (Concept::SameDimension<itkGetStaticConstMacro(PointDimension),3>));
00074 
00076 #endif
00077 
00078 public:
00079   QuadEdgeMeshPoint();
00080   virtual ~QuadEdgeMeshPoint() {};
00081   QuadEdgeMeshPoint( const Self & r );
00082   QuadEdgeMeshPoint( const ValueType r[VPointDimension] ):Superclass( r )
00083     {
00084     this->Initialize();
00085     } 
00086   Self & operator=( const Self & r );
00087   Self & operator=( const Superclass & r );
00088   Self & operator=( const ValueType r[VPointDimension] );
00089   
00090  
00092   void SetEdge( const TQuadEdge * inputEdge );
00093 
00095   const TQuadEdge * GetEdge();
00096   const TQuadEdge * GetEdge() const;
00098 
00100   bool IsInternal() const;
00101 
00103   int GetValence() const;
00104 
00105 protected:
00106   void Initialize();
00107 
00108 protected:
00109   const TQuadEdge * m_Edge; 
00110 };
00111 
00112 } // end namespace itk
00113 
00114 #ifndef ITK_MANUAL_INSTANTIATION
00115 #include "itkQuadEdgeMeshPoint.txx"
00116 #endif
00117 
00118 #endif 
00119 

Generated at Sun Sep 23 13:59:00 2007 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000