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/02/26 15:46:55 $
00007   Version:   $Revision: 1.3 $
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                        Superclass::PointDimension );
00059   typedef typename Superclass::ValueType     ValueType;
00060   typedef typename Superclass::CoordRepType  CoordRepType;
00061   typedef typename Superclass::RealType      RealType;
00062   typedef typename Superclass::BaseArray     BaseArray;
00063   typedef typename Superclass::Iterator      Iterator;
00064   typedef typename Superclass::ConstIterator ConstIterator;
00065   typedef typename Superclass::VectorType    VectorType;
00066 
00067   typedef ValueType ValueArrayType[ itkGetStaticConstMacro( PointDimension ) ];
00068 
00069 #ifdef ITK_USE_CONCEPT_CHECKING
00070 
00071   itkConceptMacro(DimensionShouldBe3,
00072                   (Concept::SameDimension<itkGetStaticConstMacro(PointDimension),3>));
00073 
00075 #endif
00076 
00077 public:
00078   QuadEdgeMeshPoint();
00079   QuadEdgeMeshPoint( const Self & r );
00080   QuadEdgeMeshPoint( const ValueArrayType & r );
00081   // FIXME: It shouldn't be here:    QuadEdgeMeshPoint( const VectorType & vec );
00082   Self & operator=( const Self & r );
00083   Self & operator=( const Superclass & r );
00084   Self & operator=( const ValueArrayType & r );
00085   // FIXME: It shouldn't be here:    Self & operator=( const VectorType & vec );
00086 
00088   void SetEdge( const TQuadEdge * inputEdge );
00089 
00091   const TQuadEdge * GetEdge();
00092   const TQuadEdge * GetEdge() const;
00094 
00096   bool IsInternal() const;
00097 
00099   int GetValence() const;
00100 
00101 protected:
00102   void Initialize();
00103 
00104 protected:
00105   const TQuadEdge * m_Edge; 
00106 };
00107 
00108 } // end namespace itk
00109 
00110 #ifndef ITK_MANUAL_INSTANTIATION
00111 #include "itkQuadEdgeMeshPoint.txx"
00112 #endif
00113 
00114 #endif 
00115 

Generated at Mon Mar 12 02:26:02 2007 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000