00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
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
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
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& );
00083 void operator=( const Self& );
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