ITK  5.0.0
Insight Segmentation and Registration Toolkit
Public Types | Public Member Functions | Static Public Attributes | Protected Attributes | List of all members
itk::PolygonCell< TCellInterface > Class Template Reference

#include <itkPolygonCell.h>

+ Inheritance diagram for itk::PolygonCell< TCellInterface >:
+ Collaboration diagram for itk::PolygonCell< TCellInterface >:

Detailed Description

template<typename TCellInterface>
class itk::PolygonCell< TCellInterface >

Represents a polygon in a Mesh.

PolygonCell represents a polygon for a Mesh. the points of the polygon can be dynamically changed.

Template Parameters
TPixelTypeThe type associated with a point, cell, or boundary for use in storing its data.
TCellTraitsType information of mesh containing cell.

Definition at line 53 of file itkPolygonCell.h.

Public Types

using EdgeAutoPointer = typename EdgeType::SelfAutoPointer
 
using EdgeInfo = FixedArray< int, 2 >
 
using EdgeInfoDQ = std::deque< EdgeInfo >
 
using EdgeType = LineCell< TCellInterface >
 
using VertexAutoPointer = typename VertexType::SelfAutoPointer
 
using VertexType = VertexCell< TCellInterface >
 

Public Member Functions

void AddPointId (PointIdentifier)
 
void BuildEdges ()
 
void ClearPoints ()
 
bool GetBoundaryFeature (int dimension, CellFeatureIdentifier, CellAutoPointer &) override
 
unsigned int GetDimension () const override
 
virtual bool GetEdge (CellFeatureIdentifier, EdgeAutoPointer &)
 
virtual const char * GetNameOfClass () const
 
CellFeatureCount GetNumberOfBoundaryFeatures (int dimension) const override
 
virtual CellFeatureCount GetNumberOfEdges () const
 
unsigned int GetNumberOfPoints () const override
 
virtual CellFeatureCount GetNumberOfVertices () const
 
virtual bool GetVertex (CellFeatureIdentifier, VertexAutoPointer &)
 
 itkCellVisitMacro (Superclass::POLYGON_CELL)
 
PointIdIterator PointIdsBegin () override
 
PointIdConstIterator PointIdsBegin () const override
 
PointIdIterator PointIdsEnd () override
 
PointIdConstIterator PointIdsEnd () const override
 
void RemovePointId (PointIdentifier)
 
void SetPointId (int localId, PointIdentifier) override
 
void SetPointIds (PointIdConstIterator first) override
 
void SetPointIds (PointIdConstIterator first, PointIdConstIterator last) override
 
void SetPointIds (int dummy, int num, PointIdConstIterator first)
 
 ~PolygonCell () override=default
 
 itkCellCommonTypedefs (PolygonCell)
 
 itkCellInheritedTypedefs (TCellInterface)
 
CellGeometry GetType () const override
 
void MakeCopy (CellAutoPointer &) const override
 
 PolygonCell ()=default
 
 PolygonCell (PointIdentifier NumberOfPoints)
 

Static Public Attributes

static constexpr unsigned int CellDimension = 2
 

Protected Attributes

std::vector< EdgeInfom_Edges
 
std::vector< PointIdentifier > m_PointIds
 

Member Typedef Documentation

template<typename TCellInterface >
using itk::PolygonCell< TCellInterface >::EdgeAutoPointer = typename EdgeType::SelfAutoPointer

Definition at line 75 of file itkPolygonCell.h.

template<typename TCellInterface >
using itk::PolygonCell< TCellInterface >::EdgeInfo = FixedArray< int, 2 >

Definition at line 77 of file itkPolygonCell.h.

template<typename TCellInterface >
using itk::PolygonCell< TCellInterface >::EdgeInfoDQ = std::deque< EdgeInfo >

Definition at line 78 of file itkPolygonCell.h.

template<typename TCellInterface >
using itk::PolygonCell< TCellInterface >::EdgeType = LineCell< TCellInterface >

The type of boundary for this triangle's edges.

Definition at line 74 of file itkPolygonCell.h.

template<typename TCellInterface >
using itk::PolygonCell< TCellInterface >::VertexAutoPointer = typename VertexType::SelfAutoPointer

Definition at line 71 of file itkPolygonCell.h.

template<typename TCellInterface >
using itk::PolygonCell< TCellInterface >::VertexType = VertexCell< TCellInterface >

The type of boundary for this triangle's vertices.

Definition at line 70 of file itkPolygonCell.h.

Constructor & Destructor Documentation

template<typename TCellInterface >
itk::PolygonCell< TCellInterface >::PolygonCell ( )
default

Constructor and destructor

template<typename TCellInterface >
itk::PolygonCell< TCellInterface >::PolygonCell ( PointIdentifier  NumberOfPoints)
inline

Constructor and destructor

Definition at line 129 of file itkPolygonCell.h.

template<typename TCellInterface >
itk::PolygonCell< TCellInterface >::~PolygonCell ( )
overridedefault

Member Function Documentation

template<typename TCellInterface >
void itk::PolygonCell< TCellInterface >::AddPointId ( PointIdentifier  )
template<typename TCellInterface >
void itk::PolygonCell< TCellInterface >::BuildEdges ( )
template<typename TCellInterface >
void itk::PolygonCell< TCellInterface >::ClearPoints ( )
template<typename TCellInterface >
bool itk::PolygonCell< TCellInterface >::GetBoundaryFeature ( int  dimension,
CellFeatureIdentifier  ,
CellAutoPointer &   
)
override
template<typename TCellInterface >
unsigned int itk::PolygonCell< TCellInterface >::GetDimension ( ) const
override
template<typename TCellInterface >
virtual bool itk::PolygonCell< TCellInterface >::GetEdge ( CellFeatureIdentifier  ,
EdgeAutoPointer  
)
virtual
template<typename TCellInterface >
virtual const char* itk::PolygonCell< TCellInterface >::GetNameOfClass ( ) const
virtual

Standard part of every itk Object.

template<typename TCellInterface >
CellFeatureCount itk::PolygonCell< TCellInterface >::GetNumberOfBoundaryFeatures ( int  dimension) const
override
template<typename TCellInterface >
virtual CellFeatureCount itk::PolygonCell< TCellInterface >::GetNumberOfEdges ( ) const
virtual
template<typename TCellInterface >
unsigned int itk::PolygonCell< TCellInterface >::GetNumberOfPoints ( ) const
override
template<typename TCellInterface >
virtual CellFeatureCount itk::PolygonCell< TCellInterface >::GetNumberOfVertices ( ) const
virtual

Polygon-specific interface.

template<typename TCellInterface >
CellGeometry itk::PolygonCell< TCellInterface >::GetType ( ) const
inlineoverride

Implement the standard CellInterface.

Definition at line 84 of file itkPolygonCell.h.

template<typename TCellInterface >
virtual bool itk::PolygonCell< TCellInterface >::GetVertex ( CellFeatureIdentifier  ,
VertexAutoPointer  
)
virtual
template<typename TCellInterface >
itk::PolygonCell< TCellInterface >::itkCellCommonTypedefs ( PolygonCell< TCellInterface >  )

Standard class type aliases.

template<typename TCellInterface >
itk::PolygonCell< TCellInterface >::itkCellInheritedTypedefs ( TCellInterface  )

Standard class type aliases.

template<typename TCellInterface >
itk::PolygonCell< TCellInterface >::itkCellVisitMacro ( Superclass::POLYGON_CELL  )

Need to add POLYGON_CELL into CellInterface.

template<typename TCellInterface >
void itk::PolygonCell< TCellInterface >::MakeCopy ( CellAutoPointer &  ) const
override

Implement the standard CellInterface.

template<typename TCellInterface >
PointIdIterator itk::PolygonCell< TCellInterface >::PointIdsBegin ( )
override
template<typename TCellInterface >
PointIdConstIterator itk::PolygonCell< TCellInterface >::PointIdsBegin ( ) const
override
template<typename TCellInterface >
PointIdIterator itk::PolygonCell< TCellInterface >::PointIdsEnd ( )
override
template<typename TCellInterface >
PointIdConstIterator itk::PolygonCell< TCellInterface >::PointIdsEnd ( ) const
override
template<typename TCellInterface >
void itk::PolygonCell< TCellInterface >::RemovePointId ( PointIdentifier  )
template<typename TCellInterface >
void itk::PolygonCell< TCellInterface >::SetPointId ( int  localId,
PointIdentifier   
)
override
template<typename TCellInterface >
void itk::PolygonCell< TCellInterface >::SetPointIds ( PointIdConstIterator  first)
override
template<typename TCellInterface >
void itk::PolygonCell< TCellInterface >::SetPointIds ( PointIdConstIterator  first,
PointIdConstIterator  last 
)
override
template<typename TCellInterface >
void itk::PolygonCell< TCellInterface >::SetPointIds ( int  dummy,
int  num,
PointIdConstIterator  first 
)

Member Data Documentation

template<typename TCellInterface >
constexpr unsigned int itk::PolygonCell< TCellInterface >::CellDimension = 2
static

Save some template parameter information.

Definition at line 67 of file itkPolygonCell.h.

template<typename TCellInterface >
std::vector< EdgeInfo > itk::PolygonCell< TCellInterface >::m_Edges
protected

Definition at line 142 of file itkPolygonCell.h.

template<typename TCellInterface >
std::vector< PointIdentifier > itk::PolygonCell< TCellInterface >::m_PointIds
protected

Definition at line 143 of file itkPolygonCell.h.


The documentation for this class was generated from the following file: