18#ifndef itkPolyLineCell_h
19#define itkPolyLineCell_h
35template <
typename TCellInterface>
54 static constexpr unsigned int CellDimension = 1;
88 SetPointIds(PointIdConstIterator first, PointIdConstIterator last)
override;
108 virtual CellFeatureCount
121 for (PointIdentifier i = 0; i < numberOfPoints; ++i)
130 PolyLineCell(PointIdentifier numberOfPoints) { InitializePoints(numberOfPoints); }
136 std::vector<PointIdentifier> m_PointIds{};
140#ifndef ITK_MANUAL_INSTANTIATION
141# include "itkPolyLineCell.hxx"
Define additional traits for native types such as int or float.
Represents a series of connected line segments for a Mesh.
PointIdConstIterator PointIdsBegin() const override
typename VertexType::SelfAutoPointer VertexAutoPointer
virtual bool GetVertex(CellFeatureIdentifier, VertexAutoPointer &)
void SetPointIds(int dummy, int num, PointIdConstIterator first)
PointIdConstIterator PointIdsEnd() const override
~PolyLineCell() override=default
itkCellCommonTypedefs(PolyLineCell)
bool GetBoundaryFeature(int dimension, CellFeatureIdentifier, CellAutoPointer &) override
itkCellInheritedTypedefs(TCellInterface)
void InitializePoints(PointIdentifier numberOfPoints)
CellGeometryEnum GetType() const override
itkCellVisitMacro(CellGeometryEnum::POLYLINE_CELL)
void MakeCopy(CellAutoPointer &) const override
PointIdIterator PointIdsBegin() override
unsigned int GetNumberOfPoints() const override
void SetPointIds(PointIdConstIterator first) override
PointIdIterator PointIdsEnd() override
void SetPointId(int localId, PointIdentifier) override
void SetPointIds(PointIdConstIterator first, PointIdConstIterator last) override
CellFeatureCount GetNumberOfBoundaryFeatures(int dimension) const override
unsigned int GetDimension() const override
PolyLineCell(PointIdentifier numberOfPoints)
virtual CellFeatureCount GetNumberOfVertices() const
Represents a single vertex for a Mesh.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....