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/02/25 15:07:14 $
00007   Version:   $Revision: 1.4 $
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 
00022 namespace itk
00023 {
00024 
00039 template< class TMesh >
00040 class ITK_EXPORT QuadEdgeMeshTopologyChecker : public Object
00041 {
00042 public:
00043   // Standard types
00044   typedef QuadEdgeMeshTopologyChecker          Self;
00045   typedef Object                               Superclass;
00046   typedef SmartPointer< Self >                 Pointer;
00047   typedef SmartPointer< const Self >           ConstPointer;
00048 
00049   typedef TMesh                                MeshType;
00050 
00051 public:
00052   itkNewMacro( Self );
00053   itkTypeMacro( QuadEdgeMeshTopologyChecker, Object );
00054 
00055   itkSetConstObjectMacro( Mesh, MeshType ); 
00056 
00057   // FIXME this probably should be taken from the traits of the Mesh
00058   typedef unsigned long IdentifierType; 
00059 
00060   itkSetMacro( ExpectedNumberOfPoints, IdentifierType );
00061   itkSetMacro( ExpectedNumberOfEdges, IdentifierType );
00062   itkSetMacro( ExpectedNumberOfFaces, IdentifierType );
00063   itkSetMacro( ExpectedNumberOfBoundaries, IdentifierType );
00064   itkSetMacro( ExpectedGenus, IdentifierType );
00065 
00066   bool ValidateEulerCharacteristic() const;
00067 
00068 protected:
00069   QuadEdgeMeshTopologyChecker();
00070   void PrintSelf(std::ostream& os, Indent indent) const;
00071 
00072 private:
00073   QuadEdgeMeshTopologyChecker( const Self& ); //purposely not implemented 
00074   void operator=( const Self& );     //purposely not implemented
00075 
00076   typedef typename MeshType::ConstPointer   MeshPointer;
00077 
00078   MeshPointer   m_Mesh;
00079  
00080   IdentifierType  m_ExpectedNumberOfPoints;
00081   IdentifierType  m_ExpectedNumberOfEdges;
00082   IdentifierType  m_ExpectedNumberOfFaces;
00083   IdentifierType  m_ExpectedNumberOfBoundaries;
00084   IdentifierType  m_ExpectedGenus;
00085 };
00086 
00087 } 
00088 
00089 #ifndef ITK_MANUAL_INSTANTIATION
00090 #include "itkQuadEdgeMeshTopologyChecker.txx"
00091 #endif 
00092 
00093 #endif 
00094 

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