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: 2007/07/26 06:30:28 $
00007   Version:   $Revision: 1.6 $
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 typename itk::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   QuadEdgeMeshTopologyChecker();
00076   void PrintSelf(std::ostream& os, Indent indent) const;
00077 
00078 private:
00079   QuadEdgeMeshTopologyChecker( const Self& ); //purposely not implemented 
00080   void operator=( const Self& );     //purposely not implemented
00081 
00082   typedef typename MeshType::ConstPointer   MeshPointer;
00083 
00084   MeshPointer     m_Mesh;
00085  
00086   IdentifierType  m_ExpectedNumberOfPoints;
00087   IdentifierType  m_ExpectedNumberOfEdges;
00088   IdentifierType  m_ExpectedNumberOfFaces;
00089   IdentifierType  m_ExpectedNumberOfBoundaries;
00090   IdentifierType  m_ExpectedGenus;
00091 };
00092 
00093 } 
00094 
00095 #ifndef ITK_MANUAL_INSTANTIATION
00096 #include "itkQuadEdgeMeshTopologyChecker.txx"
00097 #endif 
00098 
00099 #endif 
00100 

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