41 template<
typename TCellInterface >
42 class ITK_TEMPLATE_EXPORT
LineCell:
public TCellInterface
58 itkStaticConstMacro(NumberOfPoints,
unsigned int, 2);
59 itkStaticConstMacro(NumberOfVertices,
unsigned int, 2);
60 itkStaticConstMacro(CellDimension,
unsigned int, 1);
64 virtual CellGeometry
GetType(
void) const ITK_OVERRIDE
65 {
return Superclass::LINE_CELL; }
66 virtual void MakeCopy(CellAutoPointer &) const ITK_OVERRIDE;
69 virtual
unsigned int GetDimension(
void) const ITK_OVERRIDE;
71 virtual
unsigned int GetNumberOfPoints(
void) const ITK_OVERRIDE;
73 virtual CellFeatureCount GetNumberOfBoundaryFeatures(
int dimension) const ITK_OVERRIDE;
75 virtual
bool GetBoundaryFeature(
int dimension, CellFeatureIdentifier, CellAutoPointer &) ITK_OVERRIDE;
76 virtual
void SetPointIds(PointIdConstIterator first) ITK_OVERRIDE;
78 virtual
void SetPointIds(PointIdConstIterator first,
79 PointIdConstIterator last) ITK_OVERRIDE;
81 virtual
void SetPointId(
int localId, PointIdentifier) ITK_OVERRIDE;
82 virtual PointIdIterator PointIdsBegin(
void) ITK_OVERRIDE;
84 virtual PointIdConstIterator PointIdsBegin(
void) const ITK_OVERRIDE;
86 virtual PointIdIterator PointIdsEnd(
void) ITK_OVERRIDE;
88 virtual PointIdConstIterator PointIdsEnd(
void) const ITK_OVERRIDE;
91 virtual CellFeatureCount GetNumberOfVertices() const;
93 virtual
bool GetVertex(CellFeatureIdentifier, VertexAutoPointer &);
100 for (
unsigned int i = 0; i < itkGetStaticConstMacro(NumberOfPoints); i++ )
110 PointIdentifier m_PointIds[NumberOfPoints];
113 ITK_DISALLOW_COPY_AND_ASSIGN(
LineCell);
117 #ifndef ITK_MANUAL_INSTANTIATION
118 #include "itkLineCell.hxx"
Represents a line segment for a Mesh.
VertexCell< TCellInterface > VertexType
VertexType::SelfAutoPointer VertexAutoPointer
An abstract interface for cells.
static ITK_CONSTEXPR_FUNC T max(const T &)
#define itkCellCommonTypedefs(celltype)
virtual CellGeometry GetType(void) const override
Represents a single vertex for a Mesh.
#define itkCellVisitMacro(TopologyId)
#define itkCellInheritedTypedefs(superclassArg)