Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __itkTetrahedronCell_h
00018 #define __itkTetrahedronCell_h
00019
00020 #include "itkCellInterface.h"
00021 #include "itkTriangleCell.h"
00022 #include "itkTetrahedronCellTopology.h"
00023
00024 namespace itk
00025 {
00026
00040 template < typename TCellInterface >
00041 class ITK_EXPORT TetrahedronCell: public TCellInterface, private TetrahedronCellTopology
00042 {
00043 public:
00045 itkCellCommonTypedefs(TetrahedronCell);
00046 itkCellInheritedTypedefs(TCellInterface);
00048
00050 itkTypeMacro(TetrahedronCell, CellInterface);
00051
00053 typedef VertexCell< TCellInterface > VertexType;
00054 typedef typename VertexType::SelfAutoPointer VertexAutoPointer;
00055
00057 typedef LineCell< TCellInterface > EdgeType;
00058 typedef typename EdgeType::SelfAutoPointer EdgeAutoPointer;
00059
00061 typedef TriangleCell< TCellInterface > FaceType;
00062 typedef typename FaceType::SelfAutoPointer FaceAutoPointer;
00063
00065 itkStaticConstMacro(NumberOfPoints, unsigned int, 4);
00066 itkStaticConstMacro(NumberOfVertices, unsigned int, 4);
00067 itkStaticConstMacro(NumberOfEdges, unsigned int, 6);
00068 itkStaticConstMacro(NumberOfFaces, unsigned int, 4);
00069 itkStaticConstMacro(CellDimension, unsigned int, 3);
00071
00073 virtual CellGeometry GetType(void) const
00074 {return Superclass::TETRAHEDRON_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,
00080 CellAutoPointer &);
00081 virtual void SetPointIds(PointIdConstIterator first);
00082 virtual void SetPointIds(PointIdConstIterator first,
00083 PointIdConstIterator last);
00084 virtual void SetPointId(int localId, PointIdentifier);
00085 virtual PointIdIterator PointIdsBegin(void);
00086 virtual PointIdConstIterator PointIdsBegin(void) const;
00087 virtual PointIdIterator PointIdsEnd(void);
00088 virtual PointIdConstIterator PointIdsEnd(void) const;
00090
00092 virtual CellFeatureCount GetNumberOfVertices(void) const;
00093 virtual CellFeatureCount GetNumberOfEdges(void) const;
00094 virtual CellFeatureCount GetNumberOfFaces(void) const;
00095 virtual bool GetVertex(CellFeatureIdentifier, VertexAutoPointer &);
00096 virtual bool GetEdge(CellFeatureIdentifier, EdgeAutoPointer &);
00097 virtual bool GetFace(CellFeatureIdentifier, FaceAutoPointer &);
00099
00101 itkCellVisitMacro(Superclass::TETRAHEDRON_CELL);
00102
00103 virtual bool EvaluatePosition(CoordRepType* ,
00104 PointsContainer* ,
00105 CoordRepType* ,
00106 CoordRepType [],
00107 double *,
00108 InterpolationWeightType*);
00109
00110 public:
00111 TetrahedronCell()
00112 {
00113 for (unsigned int i = 0; i < itkGetStaticConstMacro(NumberOfPoints); i++)
00114 {
00115 m_PointIds[i] = NumericTraits<unsigned long>::max();
00116 }
00117 }
00118 ~TetrahedronCell() {}
00119
00120 protected:
00122 PointIdentifier m_PointIds[NumberOfPoints];
00123
00124 private:
00125 TetrahedronCell(const Self&);
00126 void operator=(const Self&);
00127
00128 };
00129
00130 }
00131
00132 #ifndef ITK_MANUAL_INSTANTIATION
00133 #include "itkTetrahedronCell.txx"
00134 #endif
00135
00136 #endif
00137