00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __itkQuadraticEdgeCell_h
00018 #define __itkQuadraticEdgeCell_h
00019
00020 #include "itkCellInterface.h"
00021 #include "itkVertexCell.h"
00022
00023 namespace itk
00024 {
00025
00041 template < typename TCellInterface >
00042 class ITK_EXPORT QuadraticEdgeCell: public TCellInterface
00043 {
00044 public:
00046 itkCellCommonTypedefs(QuadraticEdgeCell);
00047 itkCellInheritedTypedefs(TCellInterface);
00049
00051 itkTypeMacro(QuadraticEdgeCell, CellInterface);
00052
00054 typedef VertexCell< TCellInterface > VertexType;
00055 typedef typename VertexType::SelfAutoPointer VertexAutoPointer;
00056
00058 itkStaticConstMacro(NumberOfPoints, unsigned int, 3);
00059 itkStaticConstMacro(NumberOfVertices, unsigned int, 2);
00060 itkStaticConstMacro(CellDimension, unsigned int, 1);
00062
00064 virtual CellGeometry GetType(void) const
00065 {return Superclass::QUADRATIC_EDGE_CELL;}
00066 virtual void MakeCopy( CellAutoPointer & ) const;
00067 virtual unsigned int GetDimension(void) const;
00068 virtual unsigned int GetNumberOfPoints(void) const;
00069 virtual CellFeatureCount GetNumberOfBoundaryFeatures(int dimension) const;
00070 virtual bool GetBoundaryFeature(int dimension, CellFeatureIdentifier,CellAutoPointer &);
00071 virtual void SetPointIds(PointIdConstIterator first);
00072 virtual void SetPointIds(PointIdConstIterator first,
00073 PointIdConstIterator last);
00074 virtual void SetPointId(int localId, PointIdentifier);
00075 virtual PointIdIterator PointIdsBegin(void);
00076 virtual PointIdConstIterator PointIdsBegin(void) const;
00077 virtual PointIdIterator PointIdsEnd(void);
00078 virtual PointIdConstIterator PointIdsEnd(void) const;
00080
00082 virtual CellFeatureCount GetNumberOfVertices(void) const;
00083 virtual bool GetVertex(CellFeatureIdentifier, VertexAutoPointer &);
00085
00087 itkCellVisitMacro(Superclass::QUADRATIC_EDGE_CELL);
00088
00089 QuadraticEdgeCell() {}
00090 ~QuadraticEdgeCell() {}
00091
00094 virtual void EvaluateShapeFunctions(
00095 const ParametricCoordArrayType & parametricCoordinates,
00096 ShapeFunctionsArrayType & weights) const;
00097
00098
00099 protected:
00101 PointIdentifier m_PointIds[NumberOfPoints];
00102
00103 private:
00104 QuadraticEdgeCell(const Self&);
00105 void operator=(const Self&);
00106 };
00107
00108 }
00109
00110 #ifndef ITK_MANUAL_INSTANTIATION
00111 #include "itkQuadraticEdgeCell.txx"
00112 #endif
00113
00114 #endif
00115