Orfeo Toolbox  3.16
Public Types | Public Member Functions | Static Public Attributes | Protected Attributes | Private Member Functions | 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 >:

Public Types

typedef EdgeType::SelfAutoPointer EdgeAutoPointer
 
typedef FixedArray< int, 2 > EdgeInfo
 
typedef std::deque< EdgeInfoEdgeInfoDQ
 
typedef LineCell< TCellInterface > EdgeType
 
typedef VertexType::SelfAutoPointer VertexAutoPointer
 
typedef VertexCell
< TCellInterface > 
VertexType
 

Public Member Functions

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

Static Public Attributes

static const unsigned int CellDimension = 2
 

Protected Attributes

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

Private Member Functions

 PolygonCell (const Self &)
 
void operator= (const Self &)
 

Detailed Description

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

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

Template parameters for PolygonCell:

TPixelType = The type associated with a point, cell, or boundary for use in storing its data.

TCellTraits = Type information of mesh containing cell.

Definition at line 47 of file itkPolygonCell.h.

Member Typedef Documentation

template<typename TCellInterface >
typedef EdgeType::SelfAutoPointer itk::PolygonCell< TCellInterface >::EdgeAutoPointer

Definition at line 66 of file itkPolygonCell.h.

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

Definition at line 68 of file itkPolygonCell.h.

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

Definition at line 69 of file itkPolygonCell.h.

template<typename TCellInterface >
typedef LineCell< TCellInterface > itk::PolygonCell< TCellInterface >::EdgeType

The type of boundary for this triangle's edges.

Definition at line 65 of file itkPolygonCell.h.

template<typename TCellInterface >
typedef VertexType::SelfAutoPointer itk::PolygonCell< TCellInterface >::VertexAutoPointer

Definition at line 62 of file itkPolygonCell.h.

template<typename TCellInterface >
typedef VertexCell< TCellInterface > itk::PolygonCell< TCellInterface >::VertexType

The type of boundary for this triangle's vertices.

Definition at line 61 of file itkPolygonCell.h.

Constructor & Destructor Documentation

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

Constructor and destructor

Definition at line 107 of file itkPolygonCell.h.

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

Definition at line 108 of file itkPolygonCell.h.

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

Definition at line 116 of file itkPolygonCell.h.

template<typename TCellInterface >
itk::PolygonCell< TCellInterface >::PolygonCell ( const Self &  )
private

Member Function Documentation

template<typename TCellInterface >
void itk::PolygonCell< TCellInterface >::AddPointId ( PointIdentifier  ptID)

Add one points to the points list

Definition at line 220 of file itkPolygonCell.txx.

Referenced by itk::bio::CellularAggregate< NSpaceDimension >::Add().

template<typename TCellInterface >
void itk::PolygonCell< TCellInterface >::BuildEdges ( void  )

after input the points in order, generate the edge connections

Definition at line 176 of file itkPolygonCell.txx.

template<typename TCellInterface >
void itk::PolygonCell< TCellInterface >::ClearPoints ( void  )

clear all the point and edge informations

Definition at line 247 of file itkPolygonCell.txx.

template<typename TCellInterface >
bool itk::PolygonCell< TCellInterface >::GetBoundaryFeature ( int  dimension,
CellFeatureIdentifier  featureId,
CellAutoPointer &  cellPointer 
)
virtual

Standard CellInterface: Get the boundary feature of the given dimension specified by the given cell feature Id. The Id can range from 0 to GetNumberOfBoundaryFeatures(dimension)-1.

Definition at line 105 of file itkPolygonCell.txx.

References itk::TransferAutoPointer().

template<typename TCellInterface >
unsigned int itk::PolygonCell< TCellInterface >::GetDimension ( void  ) const
virtual

Standard CellInterface: Get the topological dimension of this cell.

Definition at line 59 of file itkPolygonCell.txx.

template<typename TCellInterface >
bool itk::PolygonCell< TCellInterface >::GetEdge ( CellFeatureIdentifier  edgeId,
EdgeAutoPointer edgePointer 
)
virtual

Polygon-specific: Get the edge specified by the given cell feature Id. The Id can range from 0 to GetNumberOfEdges()-1.

Definition at line 423 of file itkPolygonCell.txx.

References itk::LineCell< TCellInterface >::SetPointId().

template<typename TCellInterface >
virtual const char* itk::PolygonCell< TCellInterface >::GetNameOfClass ( ) const
virtual

Standard part of every itk Object.

template<typename TCellInterface >
PolygonCell< TCellInterface >::CellFeatureCount itk::PolygonCell< TCellInterface >::GetNumberOfBoundaryFeatures ( int  dimension) const
virtual

Standard CellInterface: Get the number of boundary features of the given dimension.

Definition at line 85 of file itkPolygonCell.txx.

template<typename TCellInterface >
PolygonCell< TCellInterface >::CellFeatureCount itk::PolygonCell< TCellInterface >::GetNumberOfEdges ( void  ) const
virtual

Polygon-specific: Get the number of edges defined for the Polygon.

Definition at line 394 of file itkPolygonCell.txx.

template<typename TCellInterface >
unsigned int itk::PolygonCell< TCellInterface >::GetNumberOfPoints ( void  ) const
virtual
template<typename TCellInterface >
PolygonCell< TCellInterface >::CellFeatureCount itk::PolygonCell< TCellInterface >::GetNumberOfVertices ( void  ) const
virtual

Polygon-specific interface.

Polygon-specific: Get the number of vertices defining the Polygon.

Definition at line 382 of file itkPolygonCell.txx.

template<typename TCellInterface >
virtual CellGeometry itk::PolygonCell< TCellInterface >::GetType ( void  ) const
inlinevirtual

Implement the standard CellInterface.

Definition at line 75 of file itkPolygonCell.h.

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

Polygon-specific: Get the vertex specified by the given cell feature Id. The Id can range from 0 to GetNumberOfVertices()-1.

Definition at line 407 of file itkPolygonCell.txx.

References itk::VertexCell< TCellInterface >::SetPointId().

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

Standard class typedefs.

template<typename TCellInterface >
itk::PolygonCell< TCellInterface >::itkCellInheritedTypedefs ( TCellInterface  )
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 &  cellPointer) const
virtual

Standard CellInterface:

Definition at line 34 of file itkPolygonCell.txx.

template<typename TCellInterface >
void itk::PolygonCell< TCellInterface >::operator= ( const Self &  )
private
template<typename TCellInterface >
PolygonCell< TCellInterface >::PointIdIterator itk::PolygonCell< TCellInterface >::PointIdsBegin ( void  )
virtual
template<typename TCellInterface >
PolygonCell< TCellInterface >::PointIdConstIterator itk::PolygonCell< TCellInterface >::PointIdsBegin ( void  ) const
virtual

Standard CellInterface: Get a const begin iterator to the list of point identifiers used by the cell.

Definition at line 321 of file itkPolygonCell.txx.

References NULL.

template<typename TCellInterface >
PolygonCell< TCellInterface >::PointIdIterator itk::PolygonCell< TCellInterface >::PointIdsEnd ( void  )
virtual
template<typename TCellInterface >
PolygonCell< TCellInterface >::PointIdConstIterator itk::PolygonCell< TCellInterface >::PointIdsEnd ( void  ) const
virtual

Standard CellInterface: Get a const end iterator to the list of point identifiers used by the cell.

Definition at line 362 of file itkPolygonCell.txx.

References NULL.

template<typename TCellInterface >
void itk::PolygonCell< TCellInterface >::RemovePointId ( PointIdentifier  ptID)

Remove one points from the points list

Definition at line 231 of file itkPolygonCell.txx.

Referenced by itk::bio::CellularAggregate< NSpaceDimension >::Remove().

template<typename TCellInterface >
void itk::PolygonCell< TCellInterface >::SetPointId ( int  localId,
PointIdentifier  ptId 
)
virtual

Standard CellInterface: Set an individual point identifier in the cell.

Definition at line 283 of file itkPolygonCell.txx.

Referenced by itk::SimplexMeshAdaptTopologyFilter< TInputMesh, TOutputMesh >::ComputeCellParameters().

template<typename TCellInterface >
void itk::PolygonCell< TCellInterface >::SetPointIds ( PointIdConstIterator  first)
virtual

Standard CellInterface: Set the point id list used by the cell. It is assumed that the given iterator can be incremented and safely de-referenced enough times to get all the point ids needed by the cell.

Definition at line 205 of file itkPolygonCell.txx.

template<typename TCellInterface >
void itk::PolygonCell< TCellInterface >::SetPointIds ( PointIdConstIterator  first,
PointIdConstIterator  last 
)
virtual

Standard CellInterface: Set the point id list used by the cell. It is assumed that the range of iterators [first, last) contains the correct number of points needed to define the cell. The position *last is NOT referenced, so it can safely be one beyond the end of an array or other container.

Definition at line 263 of file itkPolygonCell.txx.

template<typename TCellInterface >
void itk::PolygonCell< TCellInterface >::SetPointIds ( int  dummy,
int  num,
PointIdConstIterator  first 
)

Standard CellInterface: Set the point id list used by the cell. It is assumed that the given iterator can be incremented and safely de-referenced enough times to get all the point ids needed by the cell.

Definition at line 159 of file itkPolygonCell.txx.

Member Data Documentation

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

Save some template parameter information.

Definition at line 58 of file itkPolygonCell.h.

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

Definition at line 119 of file itkPolygonCell.h.

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

Definition at line 120 of file itkPolygonCell.h.


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

Generated at Sun May 19 2013 02:24:19 for Orfeo Toolbox with doxygen 1.8.3.1