18 #ifndef itkSimplexMesh_h 19 #define itkSimplexMesh_h 43 template<
typename TPixelType,
unsigned int VDimension = 3,
44 typename TMeshTraits =
45 DefaultStaticMeshTraits< TPixelType, VDimension, VDimension, TPixelType, TPixelType, TPixelType >
126 itkSetMacro(GeometryData, GeometryMapPointer);
129 itkGetConstReferenceMacro(GeometryData, GeometryMapPointer);
132 itkSetMacro(LastCellId, CellIdentifier);
135 itkGetConstMacro(LastCellId, CellIdentifier);
149 CellIdentifier
AddEdge(PointIdentifier startPointId, PointIdentifier endPointId);
158 CellIdentifier
AddFace(CellAutoPointer & cellPointer);
164 CellIdentifier
ReplaceFace(CellIdentifier replaceIndex, CellAutoPointer & cellPointer);
174 NeighborListType *
GetNeighbors(PointIdentifier pointId,
unsigned int radius, NeighborListType *list = ITK_NULLPTR)
const;
181 void AddNeighbor(PointIdentifier pointId, PointIdentifier neighborId);
186 void ReplaceNeighbor(PointIdentifier pointId, PointIdentifier oldNeighborId, PointIdentifier newNeighborIdx);
191 void SwapNeighbors(PointIdentifier pointId, PointIdentifier firstNeighborId, PointIdentifier secondNeighborId);
221 void SetPhi(PointIdentifier idx,
double values);
226 double GetPhi(PointIdentifier idx)
const;
241 void SetRadius(PointIdentifier idx,
double values);
246 double GetRadius(PointIdentifier idx)
const;
251 void SetDistance(PointIdentifier idx,
double values);
259 CovariantVectorType
ComputeNormal(PointIdentifier idx)
const;
287 #ifndef ITK_MANUAL_INSTANTIATION 288 #include "itkSimplexMesh.hxx" PointType GetBarycentricCoordinates(PointIdentifier idx) const
GeometryMapType::Pointer GeometryMapPointer
PointsContainer::ConstIterator PointsContainerConstIterator
IndexArray GetNeighbors(PointIdentifier pointId) const
double GetMeanCurvature(PointIdentifier idx) const
PointType::VectorType VectorType
SmartPointer< Self > Pointer
Represents a line segment for a Mesh.
SelfAutoPointer CellAutoPointer
MeshTraits::PointsContainer PointsContainer
GeometryMapType::Iterator GeometryMapIterator
Mesh< TPixelType, VDimension, TMeshTraits > Superclass
void SetMeanCurvature(PointIdentifier idx, double values)
CovariantVectorType ComputeNormal(PointIdentifier idx) const
TMeshTraits::PointIdentifier PointIdentifier
CovariantVector< typename VectorType::ValueType, 3 > CovariantVectorType
std::set< SizeValueType > NeighborSetType
Superclass::CellsContainerConstIterator CellsContainerConstIterator
CellsContainer::Iterator CellsContainerIterator
The class represents a 2-simplex mesh.
A wrapper of the STL "map" container.
Superclass::CellIdentifier CellIdentifier
Superclass::CellsContainerIterator CellsContainerIterator
Superclass::PointsContainer::Iterator PointsContainerIterator
CellIdentifier ReplaceFace(CellIdentifier replaceIndex, CellAutoPointer &cellPointer)
double GetPhi(PointIdentifier idx) const
MeshTraits::CellIdentifier CellIdentifier
void SetBarycentricCoordinates(PointIdentifier idx, PointType values)
GeometryMapType::ConstIterator GeometryMapConstIterator
NeighborSetType::iterator NeighborSetIterator
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes...
virtual void SetGeometryData(GeometryMapPointer _arg)
double GetDistance(PointIdentifier idx) const
TMeshTraits::PointType PointType
Superclass::CellsContainerPointer CellsContainerPointer
Implements the N-dimensional mesh structure.
std::vector< SizeValueType > NeighborListType
CellsContainer::ConstIterator CellsContainerConstIterator
CellType::CellAutoPointer CellAutoPointer
void SetDistance(PointIdentifier idx, double values)
PointType GetReferenceMetrics(PointIdentifier idx) const
The non-const iterator type for the map.
PointsContainer::Pointer PointsContainerPointer
CellIdentifier AddEdge(PointIdentifier startPointId, PointIdentifier endPointId)
Superclass::CellType CellType
CellIdentifier m_LastCellId
virtual void CopyInformation(const DataObject *data) override
The const iterator type for the map.
void SetRadius(PointIdentifier idx, double values)
GeometryMapPointer m_GeometryData
void ReplaceNeighbor(PointIdentifier pointId, PointIdentifier oldNeighborId, PointIdentifier newNeighborIdx)
SimplexMeshGeometry::IndexArray IndexArray
CellsContainer::Pointer CellsContainerPointer
void SetPhi(PointIdentifier idx, double values)
CellsContainer::ConstPointer CellsContainerConstPointer
double GetRadius(PointIdentifier idx) const
void AddNeighbor(PointIdentifier pointId, PointIdentifier neighborId)
SmartPointer< const Self > ConstPointer
void SetReferenceMetrics(PointIdentifier idx, PointType values)
CellIdentifier AddFace(CellAutoPointer &cellPointer)
handle geometric properties for vertices of a simplx mesh
CellInterface< CellPixelType, CellTraits > CellType
Control indentation during Print() invocation.
Superclass::CellsContainerConstPointer CellsContainerConstPointer
void SwapNeighbors(PointIdentifier pointId, PointIdentifier firstNeighborId, PointIdentifier secondNeighborId)
void PrintSelf(std::ostream &os, Indent indent) const override
itk::LineCell< CellType > LineType
MeshTraits::PixelType PixelType
Superclass::PointsContainerConstIterator PointsContainerConstIterator
A templated class holding a n-Dimensional covariant vector.
Base class for all data objects in ITK.
Superclass::PointsContainerPointer PointsContainerPointer
itk::MapContainer< SizeValueType, SimplexMeshGeometry * > GeometryMapType