18 #ifndef __itkTriangleCell_h
19 #define __itkTriangleCell_h
44 template<
typename TCellInterface >
74 {
return Superclass::TRIANGLE_CELL; }
75 virtual void MakeCopy(CellAutoPointer &)
const;
86 virtual void SetPointIds(PointIdConstIterator first);
88 virtual void SetPointIds(PointIdConstIterator first,
89 PointIdConstIterator last);
91 virtual void SetPointId(
int localId, PointIdentifier);
98 virtual PointIdConstIterator
PointIdsEnd(
void)
const;
113 InterpolationWeightType *);
145 double & t, CoordRepType *closestPoint);
148 double & t, PointType & closestPoint);
152 #ifndef ITK_MANUAL_INSTANTIATION
153 #include "itkTriangleCell.hxx"
VertexType::SelfAutoPointer VertexAutoPointer
PointType ComputeCenterOfGravity(PointsContainer *)
static const unsigned int CellDimension
Represents a line segment for a Mesh.
virtual bool GetBoundaryFeature(int dimension, CellFeatureIdentifier, CellAutoPointer &)
virtual bool GetEdge(CellFeatureIdentifier, EdgeAutoPointer &)
itkCellCommonTypedefs(TriangleCell)
virtual void SetPointId(int localId, PointIdentifier)
virtual unsigned int GetNumberOfPoints(void) const
VertexCell< TCellInterface > VertexType
void operator=(const Self &)
An abstract interface for cells.
static const unsigned int NumberOfVertices
CoordRepType ComputeArea(PointsContainer *)
Compute Area to a TriangleCell given a PointsContainer.
double DistanceToLine(PointType x, PointType p1, PointType p2, double &t, CoordRepType *closestPoint)
virtual bool EvaluatePosition(CoordRepType *, PointsContainer *, CoordRepType *, CoordRepType[], double *, InterpolationWeightType *)
virtual PointIdIterator PointIdsEnd(void)
static const unsigned int NumberOfEdges
virtual bool GetVertex(CellFeatureIdentifier, VertexAutoPointer &)
virtual CellGeometry GetType(void) const
std::vector< PointIdentifier > m_PointIds
PointType ComputeCircumCenter(PointsContainer *)
virtual CellFeatureCount GetNumberOfVertices(void) const
virtual unsigned int GetDimension(void) const
virtual CellFeatureCount GetNumberOfEdges(void) const
Represents a single vertex for a Mesh.
virtual PointIdIterator PointIdsBegin(void)
itkCellInheritedTypedefs(TCellInterface)
static const unsigned int NumberOfPoints
virtual void SetPointIds(PointIdConstIterator first)
virtual CellFeatureCount GetNumberOfBoundaryFeatures(int dimension) const
LineCell< TCellInterface > EdgeType
PointType ComputeBarycenter(CoordRepType *, PointsContainer *)
Define additional traits for native types such as int or float.
EdgeType::SelfAutoPointer EdgeAutoPointer
virtual void MakeCopy(CellAutoPointer &) const
itkCellVisitMacro(Superclass::TRIANGLE_CELL)