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

itkQuadEdgeMeshTopologyChecker.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkQuadEdgeMeshTopologyChecker.h,v $
00005   Language:  C++
00006   Date:      $Date: 2008/02/07 15:58:06 $
00007   Version:   $Revision: 1.9 $
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 #ifndef __itkQuadEdgeMeshTopologyChecker_h
00019 #define __itkQuadEdgeMeshTopologyChecker_h
00020 
00021 #include "itkQuadEdgeMeshBoundaryEdgesMeshFunction.h"
00022 
00023 namespace itk
00024 {
00025 
00040 template< class TMesh >
00041 class ITK_EXPORT QuadEdgeMeshTopologyChecker : public Object
00042 {
00043 public:
00044   // Standard types
00045   typedef QuadEdgeMeshTopologyChecker          Self;
00046   typedef Object                               Superclass;
00047   typedef SmartPointer< Self >                 Pointer;
00048   typedef SmartPointer< const Self >           ConstPointer;
00049 
00050   typedef TMesh                                MeshType;
00051   typedef typename MeshType::QEPrimal          QEPrimal;  
00052   typedef typename MeshType::EdgeCellType      EdgeCellType;
00053   typedef typename MeshType::CellsContainerConstIterator
00054                                                CellsContainerConstIterator; 
00055   typedef QuadEdgeMeshBoundaryEdgesMeshFunction< MeshType >
00056                                                BoundaryEdges;
00057 
00058 public:
00059   itkNewMacro( Self );
00060   itkTypeMacro( QuadEdgeMeshTopologyChecker, Object );
00061 
00062   itkSetConstObjectMacro( Mesh, MeshType ); 
00063 
00064   // FIXME this probably should be taken from the traits of the Mesh
00065   typedef unsigned long IdentifierType; 
00066 
00067   itkSetMacro( ExpectedNumberOfPoints, IdentifierType );
00068   itkSetMacro( ExpectedNumberOfEdges, IdentifierType );
00069   itkSetMacro( ExpectedNumberOfFaces, IdentifierType );
00070   itkSetMacro( ExpectedNumberOfBoundaries, IdentifierType );
00071   itkSetMacro( ExpectedGenus, IdentifierType );
00072 
00073   bool ValidateEulerCharacteristic() const;
00074 
00075 
00076 protected:
00077   QuadEdgeMeshTopologyChecker();
00078   ~QuadEdgeMeshTopologyChecker(){};
00079   void PrintSelf(std::ostream& os, Indent indent) const;
00080 
00081 private:
00082   QuadEdgeMeshTopologyChecker( const Self& ); //purposely not implemented 
00083   void operator=( const Self& );     //purposely not implemented
00084 
00085   typedef typename MeshType::ConstPointer   MeshPointer;
00086 
00087   MeshPointer     m_Mesh;
00088  
00089   IdentifierType  m_ExpectedNumberOfPoints;
00090   IdentifierType  m_ExpectedNumberOfEdges;
00091   IdentifierType  m_ExpectedNumberOfFaces;
00092   IdentifierType  m_ExpectedNumberOfBoundaries;
00093   IdentifierType  m_ExpectedGenus;
00094 };
00095 
00096 } 
00097 
00098 #ifndef ITK_MANUAL_INSTANTIATION
00099 #include "itkQuadEdgeMeshTopologyChecker.txx"
00100 #endif 
00101 
00102 #endif 
00103 

Generated at Wed Nov 5 23:45:34 2008 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000