ITK
6.0.0
Insight Toolkit
|
#include <itkSimplexMesh.h>
The class represents a 2-simplex mesh.
A simplex mesh can be used for deformable model segmentation of 3D image data. To create a simplex mesh one needs a triangle mesh, which can be converted to using the class itkTriangleMeshToSimplexMeshFilter. The back filtering (from simplex to triangle mesh)is done through a itkSimplexMeshToTriangleMeshFilter.
Definition at line 47 of file itkSimplexMesh.h.
Static Public Member Functions | |
static Pointer | New () |
Static Public Member Functions inherited from itk::Mesh< TPixelType, VDimension, TMeshTraits > | |
static Pointer | New () |
Static Public Member Functions inherited from itk::PointSet< TPixelType, VDimension, TMeshTraits > | |
static Pointer | New () |
Static Public Member Functions inherited from itk::PointSetBase< TMeshTraits::PointsContainer > | |
static constexpr unsigned int | GetPointDimension () |
Static Public Member Functions inherited from itk::DataObject | |
static bool | GetGlobalReleaseDataFlag () |
static void | GlobalReleaseDataFlagOff () |
static void | GlobalReleaseDataFlagOn () |
static Pointer | New () |
static void | SetGlobalReleaseDataFlag (bool val) |
Static Public Member Functions inherited from itk::Object | |
static bool | GetGlobalWarningDisplay () |
static void | GlobalWarningDisplayOff () |
static void | GlobalWarningDisplayOn () |
static Pointer | New () |
static void | SetGlobalWarningDisplay (bool val) |
Static Public Member Functions inherited from itk::LightObject | |
static void | BreakOnError () |
static Pointer | New () |
Protected Member Functions | |
SimplexMesh () | |
~SimplexMesh () override | |
void | PrintSelf (std::ostream &os, Indent indent) const override |
Protected Member Functions inherited from itk::Mesh< TPixelType, VDimension, TMeshTraits > | |
void | ReleaseCellsMemory () |
Mesh () | |
~Mesh () override | |
Protected Member Functions inherited from itk::PointSet< TPixelType, VDimension, TMeshTraits > | |
LightObject::Pointer | InternalClone () const override |
PointSet ()=default | |
~PointSet () override=default | |
Protected Member Functions inherited from itk::PointSetBase< TMeshTraits::PointsContainer > | |
LightObject::Pointer | InternalClone () const override |
PointSetBase ()=default | |
void | PrintSelf (std::ostream &os, Indent indent) const override |
~PointSetBase () override=0 | |
Protected Member Functions inherited from itk::DataObject | |
DataObject () | |
virtual void | PropagateResetPipeline () |
~DataObject () override | |
Protected Member Functions inherited from itk::Object | |
Object () | |
bool | PrintObservers (std::ostream &os, Indent indent) const |
virtual void | SetTimeStamp (const TimeStamp &timeStamp) |
~Object () override | |
Protected Member Functions inherited from itk::LightObject | |
LightObject () | |
virtual void | PrintHeader (std::ostream &os, Indent indent) const |
virtual void | PrintTrailer (std::ostream &os, Indent indent) const |
virtual | ~LightObject () |
Protected Attributes | |
GeometryMapPointer | m_GeometryData {} |
CellIdentifier | m_LastCellId {} |
Protected Attributes inherited from itk::Mesh< TPixelType, VDimension, TMeshTraits > | |
CellsVectorContainerPointer | cellOutputVectorContainer |
BoundaryAssignmentsContainerVector | m_BoundaryAssignmentsContainers {} |
BoundingBoxPointer | m_BoundingBox {} |
CellDataContainerPointer | m_CellDataContainer {} |
CellLinksContainerPointer | m_CellLinksContainer {} |
CellsContainerPointer | m_CellsContainer {} |
Protected Attributes inherited from itk::PointSet< TPixelType, VDimension, TMeshTraits > | |
PointDataContainerPointer | m_PointDataContainer {} |
Protected Attributes inherited from itk::PointSetBase< TMeshTraits::PointsContainer > | |
RegionType | m_BufferedRegion |
RegionType | m_MaximumNumberOfRegions |
RegionType | m_NumberOfRegions |
PointsContainerPointer | m_PointsContainer |
RegionType | m_RequestedNumberOfRegions |
RegionType | m_RequestedRegion |
Protected Attributes inherited from itk::LightObject | |
std::atomic< int > | m_ReferenceCount {} |
Additional Inherited Members | |
Static Public Attributes inherited from itk::Mesh< TPixelType, VDimension, TMeshTraits > | |
static constexpr unsigned int | MaxTopologicalDimension = TMeshTraits::MaxTopologicalDimension |
static constexpr unsigned int | PointDimension = TMeshTraits::PointDimension |
Static Public Attributes inherited from itk::PointSetBase< TMeshTraits::PointsContainer > | |
static constexpr unsigned int | PointDimension |
using itk::SimplexMesh< TPixelType, VDimension, TMeshTraits >::CellAutoPointer = typename CellType::CellAutoPointer |
Definition at line 92 of file itkSimplexMesh.h.
using itk::SimplexMesh< TPixelType, VDimension, TMeshTraits >::ConstPointer = SmartPointer<const Self> |
Standard type alias.
Definition at line 62 of file itkSimplexMesh.h.
using itk::SimplexMesh< TPixelType, VDimension, TMeshTraits >::CovariantVectorType = CovariantVector<typename VectorType::ValueType, 3> |
Definition at line 86 of file itkSimplexMesh.h.
using itk::SimplexMesh< TPixelType, VDimension, TMeshTraits >::GeometryMapConstIterator = typename GeometryMapType::ConstIterator |
Definition at line 106 of file itkSimplexMesh.h.
using itk::SimplexMesh< TPixelType, VDimension, TMeshTraits >::GeometryMapIterator = typename GeometryMapType::Iterator |
iterator definition for iterating over a geometry map
Definition at line 105 of file itkSimplexMesh.h.
using itk::SimplexMesh< TPixelType, VDimension, TMeshTraits >::GeometryMapPointer = typename GeometryMapType::Pointer |
smartpointer def for the geometry map
Definition at line 102 of file itkSimplexMesh.h.
using itk::SimplexMesh< TPixelType, VDimension, TMeshTraits >::GeometryMapType = itk::MapContainer<SizeValueType, SimplexMeshGeometry *> |
map containing a SimplexMeshGeometry data object for each mesh point
Definition at line 99 of file itkSimplexMesh.h.
using itk::SimplexMesh< TPixelType, VDimension, TMeshTraits >::IndexArray = typename SimplexMeshGeometry::IndexArray |
definition for array of indices.
Definition at line 65 of file itkSimplexMesh.h.
using itk::SimplexMesh< TPixelType, VDimension, TMeshTraits >::LineType = itk::LineCell<CellType> |
Definition at line 95 of file itkSimplexMesh.h.
using itk::SimplexMesh< TPixelType, VDimension, TMeshTraits >::MeshClassCellsAllocationMethodEnum = itk::MeshEnums::MeshClassCellsAllocationMethod |
Definition at line 109 of file itkSimplexMesh.h.
using itk::SimplexMesh< TPixelType, VDimension, TMeshTraits >::MeshTraits = TMeshTraits |
Hold on to the type information specified by the template parameters.
Definition at line 118 of file itkSimplexMesh.h.
using itk::SimplexMesh< TPixelType, VDimension, TMeshTraits >::NeighborListType = std::vector<SizeValueType> |
Definition at line 74 of file itkSimplexMesh.h.
using itk::SimplexMesh< TPixelType, VDimension, TMeshTraits >::NeighborSetIterator = typename NeighborSetType::iterator |
Definition at line 71 of file itkSimplexMesh.h.
using itk::SimplexMesh< TPixelType, VDimension, TMeshTraits >::NeighborSetType = std::set<SizeValueType> |
definition for a set of neighbor indices
Definition at line 68 of file itkSimplexMesh.h.
using itk::SimplexMesh< TPixelType, VDimension, TMeshTraits >::PixelType = typename MeshTraits::PixelType |
Definition at line 119 of file itkSimplexMesh.h.
using itk::SimplexMesh< TPixelType, VDimension, TMeshTraits >::Pointer = SmartPointer<Self> |
Standard type alias.
Definition at line 59 of file itkSimplexMesh.h.
using itk::SimplexMesh< TPixelType, VDimension, TMeshTraits >::PointIdentifier = typename TMeshTraits::PointIdentifier |
Definition at line 80 of file itkSimplexMesh.h.
using itk::SimplexMesh< TPixelType, VDimension, TMeshTraits >::PointsContainer = typename MeshTraits::PointsContainer |
Definition at line 120 of file itkSimplexMesh.h.
using itk::SimplexMesh< TPixelType, VDimension, TMeshTraits >::PointsContainerIterator = typename Superclass::PointsContainer::Iterator |
Definition at line 122 of file itkSimplexMesh.h.
using itk::SimplexMesh< TPixelType, VDimension, TMeshTraits >::PointType = typename TMeshTraits::PointType |
Definition at line 77 of file itkSimplexMesh.h.
using itk::SimplexMesh< TPixelType, VDimension, TMeshTraits >::Self = SimplexMesh |
Standard type alias.
Definition at line 53 of file itkSimplexMesh.h.
using itk::SimplexMesh< TPixelType, VDimension, TMeshTraits >::Superclass = Mesh<TPixelType, VDimension, TMeshTraits> |
Standard type alias.
Definition at line 56 of file itkSimplexMesh.h.
using itk::SimplexMesh< TPixelType, VDimension, TMeshTraits >::VectorType = typename PointType::VectorType |
Definition at line 83 of file itkSimplexMesh.h.
|
protected |
Constructor for use by New() method.
|
overrideprotected |
Constructor for use by New() method.
CellIdentifier itk::SimplexMesh< TPixelType, VDimension, TMeshTraits >::AddEdge | ( | PointIdentifier | startPointId, |
PointIdentifier | endPointId | ||
) |
Add a new edge to the simplex mesh by specifying the ids of the start and end point of the edge Note: This can destroy the simplex mesh structure! Better use the simplex mesh modification or creation filters
CellIdentifier itk::SimplexMesh< TPixelType, VDimension, TMeshTraits >::AddFace | ( | CellAutoPointer & | cellPointer | ) |
Add a new simplex mesh cell to the mesh by passing an AutoPointer of a previously created simplex mesh cell
Note: This can destroy the simplex mesh structure! You should use the simplex mesh modification or creation filters.
void itk::SimplexMesh< TPixelType, VDimension, TMeshTraits >::AddNeighbor | ( | PointIdentifier | pointIdx, |
PointIdentifier | neighborIdx | ||
) |
Add a neighbor to a point. Note: This can destroy the simplex mesh topology! Better use the simplex mesh creation filters.
CovariantVectorType itk::SimplexMesh< TPixelType, VDimension, TMeshTraits >::ComputeNormal | ( | PointIdentifier | idx | ) | const |
compute the normal vector in the specified mesh point
|
overridevirtual |
copy all necessary information from passed object to the mesh
Reimplemented from itk::Mesh< TPixelType, VDimension, TMeshTraits >.
PointType itk::SimplexMesh< TPixelType, VDimension, TMeshTraits >::GetBarycentricCoordinates | ( | PointIdentifier | idx | ) | const |
Set the barycentric coordinates for a specified point
double itk::SimplexMesh< TPixelType, VDimension, TMeshTraits >::GetDistance | ( | PointIdentifier | idx | ) | const |
Get the distance to the foot point for the specified point
|
virtual |
returns the current map of geometrydata
|
virtual |
Set the id value valid for new cells
double itk::SimplexMesh< TPixelType, VDimension, TMeshTraits >::GetMeanCurvature | ( | PointIdentifier | idx | ) | const |
Get the mean curvature for the specified point
|
overridevirtual |
Reimplemented from itk::Mesh< TPixelType, VDimension, TMeshTraits >.
IndexArray itk::SimplexMesh< TPixelType, VDimension, TMeshTraits >::GetNeighbors | ( | PointIdentifier | idx | ) | const |
Get the three direct neighbors of a point
NeighborListType* itk::SimplexMesh< TPixelType, VDimension, TMeshTraits >::GetNeighbors | ( | PointIdentifier | idx, |
unsigned int | radius, | ||
NeighborListType * | list = nullptr |
||
) | const |
Get all neighbor points with a specified radius
double itk::SimplexMesh< TPixelType, VDimension, TMeshTraits >::GetPhi | ( | PointIdentifier | idx | ) | const |
Get the simplex angle for the specified point
double itk::SimplexMesh< TPixelType, VDimension, TMeshTraits >::GetRadius | ( | PointIdentifier | idx | ) | const |
Get the circum circles radius for the specified point
PointType itk::SimplexMesh< TPixelType, VDimension, TMeshTraits >::GetReferenceMetrics | ( | PointIdentifier | idx | ) | const |
Return the reference metrics for the specified point
|
static |
Method for creation through the object factory.
|
overrideprotectedvirtual |
Constructor for use by New() method.
Reimplemented from itk::Mesh< TPixelType, VDimension, TMeshTraits >.
CellIdentifier itk::SimplexMesh< TPixelType, VDimension, TMeshTraits >::ReplaceFace | ( | CellIdentifier | replaceIndex, |
CellAutoPointer & | cellPointer | ||
) |
Replaces the cell specified by replaceIndex with the new cell passed by its AutoPointer
void itk::SimplexMesh< TPixelType, VDimension, TMeshTraits >::ReplaceNeighbor | ( | PointIdentifier | pointIdx, |
PointIdentifier | oldIdx, | ||
PointIdentifier | newIdx | ||
) |
Replace a neighbor of a specific point by a new one
void itk::SimplexMesh< TPixelType, VDimension, TMeshTraits >::SetBarycentricCoordinates | ( | PointIdentifier | idx, |
PointType | value | ||
) |
Set the geometry data for a specified point
void itk::SimplexMesh< TPixelType, VDimension, TMeshTraits >::SetDistance | ( | PointIdentifier | idx, |
double | value | ||
) |
Set the distance to the foot point for the specified point
|
virtual |
set the map of geometrydata to the new pointer
void itk::SimplexMesh< TPixelType, VDimension, TMeshTraits >::SetGeometryData | ( | PointIdentifier | pointId, |
SimplexMeshGeometry * | |||
) |
Set the geometry data for a specified point
|
virtual |
Get the first free id for new cells
void itk::SimplexMesh< TPixelType, VDimension, TMeshTraits >::SetMeanCurvature | ( | PointIdentifier | idx, |
double | value | ||
) |
Set the mean curvature for the specified point
void itk::SimplexMesh< TPixelType, VDimension, TMeshTraits >::SetPhi | ( | PointIdentifier | idx, |
double | value | ||
) |
Set the simplex angle for the specified point
void itk::SimplexMesh< TPixelType, VDimension, TMeshTraits >::SetRadius | ( | PointIdentifier | idx, |
double | value | ||
) |
Set the circum circles radius for the specified point
void itk::SimplexMesh< TPixelType, VDimension, TMeshTraits >::SetReferenceMetrics | ( | PointIdentifier | idx, |
PointType | value | ||
) |
Set the reference metrics for a specified point
void itk::SimplexMesh< TPixelType, VDimension, TMeshTraits >::SwapNeighbors | ( | PointIdentifier | pointIdx, |
PointIdentifier | firstIdx, | ||
PointIdentifier | secondIdx | ||
) |
Swap the order of two neighbors
|
protected |
The map stores a SimplexMeshGeometry object for each mesh point
Definition at line 300 of file itkSimplexMesh.h.
|
protected |
The last cell id is the index which is used for insertion of new cells. It increases during mesh creation. This is done because one cannot rely on the size of the map or the highest index when cells are removed.
Definition at line 308 of file itkSimplexMesh.h.