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

#include <itkTriangleCell.h>

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

Detailed Description

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

TriangleCell represents a triangle for a Mesh.

Template parameters for TriangleCell:

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

TCellTraits = Type information of mesh containing cell.

Examples:
Examples/DataRepresentation/Mesh/MeshCellsIteration.cxx, Examples/DataRepresentation/Mesh/MeshCellVisitor.cxx, Examples/DataRepresentation/Mesh/MeshCellVisitor2.cxx, Examples/DataRepresentation/Mesh/MeshKComplex.cxx, and WikiExamples/Meshes/ConvertToVTK.cxx.

Definition at line 45 of file itkTriangleCell.h.

Public Types

using EdgeAutoPointer = typename EdgeType::SelfAutoPointer
 
using EdgeType = LineCell< TCellInterface >
 
using VertexAutoPointer = typename VertexType::SelfAutoPointer
 
using VertexType = VertexCell< TCellInterface >
 

Public Member Functions

CoordRepType ComputeArea (PointsContainer *)
 
PointType ComputeBarycenter (CoordRepType *, PointsContainer *)
 
PointType ComputeCenterOfGravity (PointsContainer *)
 
PointType ComputeCircumCenter (PointsContainer *)
 
bool EvaluatePosition (CoordRepType *, PointsContainer *, CoordRepType *, CoordRepType[], double *, InterpolationWeightType *) override
 
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::TRIANGLE_CELL)
 
PointIdIterator PointIdsBegin () override
 
PointIdConstIterator PointIdsBegin () const override
 
PointIdIterator PointIdsEnd () override
 
PointIdConstIterator PointIdsEnd () const override
 
void SetPointId (int localId, PointIdentifier) override
 
void SetPointIds (PointIdConstIterator first) override
 
void SetPointIds (PointIdConstIterator first, PointIdConstIterator last) override
 
 TriangleCell ()
 
 ~TriangleCell () override
 
 itkCellCommonTypedefs (TriangleCell)
 
 itkCellInheritedTypedefs (TCellInterface)
 
CellGeometry GetType () const override
 
void MakeCopy (CellAutoPointer &) const override
 

Static Public Attributes

static constexpr unsigned int CellDimension = 2
 
static constexpr unsigned int NumberOfEdges = 3
 
static constexpr unsigned int NumberOfPoints = 3
 
static constexpr unsigned int NumberOfVertices = 3
 

Protected Attributes

std::vector< PointIdentifier > m_PointIds
 

Private Member Functions

double DistanceToLine (PointType x, PointType p1, PointType p2, double &t, CoordRepType *closestPoint)
 
double DistanceToLine (PointType x, PointType p1, PointType p2, double &t, PointType &closestPoint)
 
- Private Member Functions inherited from itk::TriangleCellTopology
 TriangleCellTopology ()
 
virtual ~TriangleCellTopology ()
 

Additional Inherited Members

- Static Private Attributes inherited from itk::TriangleCellTopology
static const int m_Edges [3][2]
 

Member Typedef Documentation

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

Definition at line 65 of file itkTriangleCell.h.

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

The type of boundary for this triangle's edges.

Definition at line 64 of file itkTriangleCell.h.

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

Definition at line 61 of file itkTriangleCell.h.

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

The type of boundary for this triangle's vertices.

Definition at line 60 of file itkTriangleCell.h.

Constructor & Destructor Documentation

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

Definition at line 130 of file itkTriangleCell.h.

template<typename TCellInterface >
itk::TriangleCell< TCellInterface >::~TriangleCell ( )
inlineoverride

Definition at line 136 of file itkTriangleCell.h.

Member Function Documentation

template<typename TCellInterface >
CoordRepType itk::TriangleCell< TCellInterface >::ComputeArea ( PointsContainer *  )

Compute Area to a TriangleCell given a PointsContainer.

template<typename TCellInterface >
PointType itk::TriangleCell< TCellInterface >::ComputeBarycenter ( CoordRepType *  ,
PointsContainer *   
)
template<typename TCellInterface >
PointType itk::TriangleCell< TCellInterface >::ComputeCenterOfGravity ( PointsContainer *  )
template<typename TCellInterface >
PointType itk::TriangleCell< TCellInterface >::ComputeCircumCenter ( PointsContainer *  )
template<typename TCellInterface >
double itk::TriangleCell< TCellInterface >::DistanceToLine ( PointType  x,
PointType  p1,
PointType  p2,
double &  t,
CoordRepType *  closestPoint 
)
private

Computes the SQUARED distance between a point and a line segment defined by two other points

template<typename TCellInterface >
double itk::TriangleCell< TCellInterface >::DistanceToLine ( PointType  x,
PointType  p1,
PointType  p2,
double &  t,
PointType &  closestPoint 
)
private
template<typename TCellInterface >
bool itk::TriangleCell< TCellInterface >::EvaluatePosition ( CoordRepType *  ,
PointsContainer *  ,
CoordRepType *  ,
CoordRepType  [],
double *  ,
InterpolationWeightType *   
)
override
template<typename TCellInterface >
bool itk::TriangleCell< TCellInterface >::GetBoundaryFeature ( int  dimension,
CellFeatureIdentifier  ,
CellAutoPointer &   
)
override
template<typename TCellInterface >
unsigned int itk::TriangleCell< TCellInterface >::GetDimension ( ) const
override
template<typename TCellInterface >
virtual bool itk::TriangleCell< TCellInterface >::GetEdge ( CellFeatureIdentifier  ,
EdgeAutoPointer  
)
virtual
template<typename TCellInterface >
virtual const char* itk::TriangleCell< TCellInterface >::GetNameOfClass ( ) const
virtual

Standard part of every itk Object.

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

Triangle-specific interface.

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

Implement the standard CellInterface.

Definition at line 74 of file itkTriangleCell.h.

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

Standard class type aliases.

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

Standard class type aliases.

template<typename TCellInterface >
itk::TriangleCell< TCellInterface >::itkCellVisitMacro ( Superclass::TRIANGLE_CELL  )

Cell visitor interface.

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

Implement the standard CellInterface.

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

Member Data Documentation

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

Definition at line 71 of file itkTriangleCell.h.

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

Store the number of points needed for a triangle.

Definition at line 136 of file itkTriangleCell.h.

template<typename TCellInterface >
constexpr unsigned int itk::TriangleCell< TCellInterface >::NumberOfEdges = 3
static

Definition at line 70 of file itkTriangleCell.h.

template<typename TCellInterface >
constexpr unsigned int itk::TriangleCell< TCellInterface >::NumberOfPoints = 3
static

Triangle-specific topology numbers.

Definition at line 68 of file itkTriangleCell.h.

template<typename TCellInterface >
constexpr unsigned int itk::TriangleCell< TCellInterface >::NumberOfVertices = 3
static

Definition at line 69 of file itkTriangleCell.h.


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