18 #ifndef itkVertexCell_h
19 #define itkVertexCell_h
38 template<
typename TCellInterface >
39 class ITK_TEMPLATE_EXPORT
VertexCell:
public TCellInterface
51 itkStaticConstMacro(NumberOfPoints,
unsigned int, 1);
52 itkStaticConstMacro(CellDimension,
unsigned int, 0);
56 virtual CellGeometry
GetType(
void) const ITK_OVERRIDE
57 {
return Superclass::VERTEX_CELL; }
58 virtual void MakeCopy(CellAutoPointer &) const ITK_OVERRIDE;
61 virtual
unsigned int GetDimension(
void) const ITK_OVERRIDE;
63 virtual
unsigned int GetNumberOfPoints(
void) const ITK_OVERRIDE;
65 virtual CellFeatureCount GetNumberOfBoundaryFeatures(
int dimension) const ITK_OVERRIDE;
67 virtual
bool GetBoundaryFeature(
int dimension, CellFeatureIdentifier,
68 CellAutoPointer &) ITK_OVERRIDE;
69 virtual
void SetPointIds(PointIdConstIterator first) ITK_OVERRIDE;
71 virtual
void SetPointIds(PointIdConstIterator first,
72 PointIdConstIterator last) ITK_OVERRIDE;
74 virtual
void SetPointId(
int localId, PointIdentifier) ITK_OVERRIDE;
75 virtual PointIdIterator PointIdsBegin(
void) ITK_OVERRIDE;
77 virtual PointIdConstIterator PointIdsBegin(
void) const ITK_OVERRIDE;
79 virtual PointIdIterator PointIdsEnd(
void) ITK_OVERRIDE;
81 virtual PointIdConstIterator PointIdsEnd(
void) const ITK_OVERRIDE;
84 virtual
void SetPointId(PointIdentifier);
85 virtual PointIdentifier GetPointId();
92 virtual
bool EvaluatePosition(CoordRepType *,
97 InterpolationWeightType *) ITK_OVERRIDE;
102 for ( PointIdentifier i = 0; i < itkGetStaticConstMacro(NumberOfPoints); i++ )
114 PointIdentifier m_PointIds[NumberOfPoints];
121 #ifndef ITK_MANUAL_INSTANTIATION
122 #include "itkVertexCell.hxx"
An abstract interface for cells.
static ITK_CONSTEXPR_FUNC T max(const T &)
#define itkCellCommonTypedefs(celltype)
Represents a single vertex for a Mesh.
#define itkCellVisitMacro(TopologyId)
#define itkCellInheritedTypedefs(superclassArg)
virtual CellGeometry GetType(void) const override