00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __itkHexahedronCell_h
00018 #define __itkHexahedronCell_h
00019
00020 #include "itkCellInterface.h"
00021 #include "itkQuadrilateralCell.h"
00022 #include "itkHexahedronCellTopology.h"
00023
00024 namespace itk
00025 {
00026
00042 template < typename TCellInterface >
00043 class ITK_EXPORT HexahedronCell: public TCellInterface, private HexahedronCellTopology
00044 {
00045 public:
00047 itkCellCommonTypedefs(HexahedronCell);
00048 itkCellInheritedTypedefs(TCellInterface);
00049
00051 itkTypeMacro(HexahedronCell, CellInterface);
00052
00054 typedef VertexCell< TCellInterface > VertexType;
00055 typedef typename VertexType::SelfAutoPointer VertexAutoPointer;
00056
00058 typedef LineCell< TCellInterface > EdgeType;
00059 typedef typename EdgeType::SelfAutoPointer EdgeAutoPointer;
00060
00062 typedef QuadrilateralCell< TCellInterface > FaceType;
00063 typedef typename FaceType::SelfAutoPointer FaceAutoPointer;
00064
00066 enum { NumberOfPoints = 8,
00067 NumberOfVertices = 8,
00068 NumberOfEdges = 12,
00069 NumberOfFaces = 6,
00070 CellDimension = 3 };
00071
00073 virtual CellGeometry GetType(void) const
00074 {return Superclass::HEXAHEDRON_CELL;}
00075 virtual void MakeCopy( CellAutoPointer & ) const;
00076 virtual unsigned int GetDimension(void) const;
00077 virtual unsigned int GetNumberOfPoints(void) const;
00078 virtual CellFeatureCount GetNumberOfBoundaryFeatures(int dimension) const;
00079 virtual bool GetBoundaryFeature(int dimension, CellFeatureIdentifier, CellAutoPointer &);
00080 virtual void SetPointIds(PointIdConstIterator first);
00081 virtual void SetPointIds(PointIdConstIterator first, PointIdConstIterator last);
00082 virtual void SetPointId(int localId, PointIdentifier);
00083 virtual PointIdIterator PointIdsBegin(void);
00084 virtual PointIdConstIterator PointIdsBegin(void) const;
00085 virtual PointIdIterator PointIdsEnd(void);
00086 virtual PointIdConstIterator PointIdsEnd(void) const;
00087
00089 virtual CellFeatureCount GetNumberOfVertices(void) const;
00090 virtual CellFeatureCount GetNumberOfEdges(void) const;
00091 virtual CellFeatureCount GetNumberOfFaces(void) const;
00092 virtual bool GetVertex(CellFeatureIdentifier, VertexAutoPointer &);
00093 virtual bool GetEdge(CellFeatureIdentifier, EdgeAutoPointer &);
00094 virtual bool GetFace(CellFeatureIdentifier, FaceAutoPointer &);
00095
00097 itkCellVisitMacro(Superclass::HEXAHEDRON_CELL);
00098
00099 protected:
00101 PointIdentifier m_PointIds[NumberOfPoints];
00102
00103 public:
00104 HexahedronCell() {}
00105 ~HexahedronCell() {}
00106
00107 private:
00108 HexahedronCell(const Self&);
00109 void operator=(const Self&);
00110 };
00111
00112 }
00113
00114 #ifndef ITK_MANUAL_INSTANTIATION
00115 #include "itkHexahedronCell.txx"
00116 #endif
00117
00118 #endif