#include <itkCellInterface.h>
|
static constexpr unsigned int | PointDimension = CellTraits::PointDimension |
|
using | PointIdentifierContainerType = itk::Array< PointIdentifier > |
|
UsingCellsContainer | m_UsingCells |
|
PointIdentifierContainerType | GetPointIdsContainer () const |
|
void | SetPointIdsContainer (const PointIdentifierContainerType &) |
|
virtual bool | GetClosestBoundary (CoordRepType[], bool *, CellAutoPointer &) |
|
virtual bool | EvaluatePosition (CoordRepType *, PointsContainer *, CoordRepType *, CoordRepType[], double *, InterpolationWeightType *) |
|
virtual void | EvaluateShapeFunctions (const ParametricCoordArrayType &, ShapeFunctionsArrayType &) const |
|
virtual bool | IntersectWithLine (CoordRepType[PointDimension], CoordRepType[PointDimension], CoordRepType, CoordRepType[PointDimension], CoordRepType *, CoordRepType[]) |
|
CoordRepType * | GetBoundingBox (CoordRepType[PointDimension *2]) |
|
CoordRepType | GetBoundingBoxDiagonalLength2 () |
|
virtual bool | IntersectBoundingBoxWithLine (CoordRepType[PointDimension *2], CoordRepType[PointDimension], CoordRepType[PointDimension], CoordRepType[PointDimension], CoordRepType *) |
|
virtual bool | IsExplicitBoundary () |
|
virtual void | AddUsingCell (CellIdentifier cellId) |
|
virtual void | RemoveUsingCell (CellIdentifier cellId) |
|
virtual bool | IsUsingCell (CellIdentifier cellId) |
|
virtual unsigned int | GetNumberOfUsingCells () |
|
virtual UsingCellsContainerIterator | UsingCellsBegin () |
|
virtual UsingCellsContainerIterator | UsingCellsEnd () |
|
| itkTypeMacroNoParent (CellInterface) |
|
| CellInterface ()=default |
|
virtual | ~CellInterface ()=default |
|
template<typename TPixelType, typename TCellTraits>
class itk::CellInterface< TPixelType, TCellTraits >
An abstract interface for cells.
Define an abstract interface for cells. Actual cell types derive from this class.
- Template Parameters
-
TPixelType | The type stored with an entity (cell, point, or boundary). |
TCellTraits | Type information for cell. |
- Examples
- Examples/SpatialObjects/MeshSpatialObject.cxx, and SphinxExamples/src/Core/Mesh/ConvertMeshToUnstructeredGrid/Code.cxx.
Definition at line 96 of file itkCellInterface.h.
◆ CellAutoPointer
template<typename TPixelType, typename TCellTraits>
◆ CellConstAutoPointer
template<typename TPixelType, typename TCellTraits>
◆ CellConstRawPointer
template<typename TPixelType, typename TCellTraits>
◆ CellFeatureCount
template<typename TPixelType, typename TCellTraits>
◆ CellFeatureIdentifier
template<typename TPixelType, typename TCellTraits>
◆ CellIdentifier
template<typename TPixelType, typename TCellTraits>
◆ CellRawPointer
template<typename TPixelType, typename TCellTraits>
◆ CellTraits
template<typename TPixelType, typename TCellTraits>
◆ CellType
template<typename TPixelType, typename TCellTraits>
Give this and all derived classes quick access to the base cell type.
Definition at line 132 of file itkCellInterface.h.
◆ CoordRepType
template<typename TPixelType, typename TCellTraits>
◆ InterpolationWeightType
template<typename TPixelType, typename TCellTraits>
◆ ParametricCoordArrayType
template<typename TPixelType, typename TCellTraits>
◆ PixelType
template<typename TPixelType, typename TCellTraits>
◆ PointIdConstIterator
template<typename TPixelType, typename TCellTraits>
◆ PointIdentifier
template<typename TPixelType, typename TCellTraits>
◆ PointIdentifierContainerType
template<typename TPixelType, typename TCellTraits>
◆ PointIdIterator
template<typename TPixelType, typename TCellTraits>
◆ PointsContainer
template<typename TPixelType, typename TCellTraits>
◆ PointType
template<typename TPixelType, typename TCellTraits>
◆ ShapeFunctionsArrayType
template<typename TPixelType, typename TCellTraits>
◆ UsingCellsContainer
template<typename TPixelType, typename TCellTraits>
◆ UsingCellsContainerIterator
template<typename TPixelType, typename TCellTraits>
◆ VectorType
template<typename TPixelType, typename TCellTraits>
◆ CellInterface()
template<typename TPixelType, typename TCellTraits>
Get/Set the point id list used by the cell
◆ ~CellInterface()
template<typename TPixelType, typename TCellTraits>
Get/Set the point id list used by the cell
◆ Accept()
template<typename TPixelType, typename TCellTraits>
◆ AddUsingCell()
template<typename TPixelType, typename TCellTraits>
Register the fact that this cell is a part of the boundary of the cell cellId, by adding cellId to the UsingCellsContainer.
◆ EvaluatePosition()
template<typename TPixelType, typename TCellTraits>
Given the geometric coordinates of a point (coord[PointDimension]), return whether it is inside the cell. Also perform the following calculations, if the corresponding result pointers are not nullptr:
- Find the closest point in or on the cell to the given point (Returns through pointer to array: closestPoint[PointDimension]).
- Get the cell's parametric coordinates for the given point (Returns through pointer to array: pCoords[CellDimension]).
- Get the square of the distance between the point and the cell (this is the distance from the point to the closest point, returned through "dist2" pointer).
- Get the interpolation weights for the cell (Returns through pointer to array: weights[NumberOfPoints]).
Definition at line 339 of file itkCellInterface.h.
◆ EvaluateShapeFunctions()
template<typename TPixelType, typename TCellTraits>
Given the parametric coordinates of a point in the cell determine the value of its Shape Functions returned through an itkArray<InterpolationWeightType>).
Definition at line 353 of file itkCellInterface.h.
◆ GetBoundaryFeature()
template<typename TPixelType, typename TCellTraits>
Get the boundary feature corresponding to the given dimension and Id.
◆ GetBoundingBox()
template<typename TPixelType, typename TCellTraits>
Compute cell bounding box and store in the user-provided array. Array is ordered (xmin, xmax, ymin, ymax, ....). A pointer to the array is returned for convenience. This allows code like: "CoordRep* bounds = cell->GetBoundingBox(new CoordRep[6]);".
Definition at line 386 of file itkCellInterface.h.
◆ GetBoundingBoxDiagonalLength2()
template<typename TPixelType, typename TCellTraits>
◆ GetClosestBoundary()
template<typename TPixelType, typename TCellTraits>
Given the parametric coordinates of a point in the cell (pCoords[CellDimension]), get the closest cell boundary feature of topological dimension CellDimension-1. If the "inside" pointer is not nullptr, the flag is set to indicate whether the point is inside the cell.
Definition at line 317 of file itkCellInterface.h.
◆ GetDimension()
template<typename TPixelType, typename TCellTraits>
virtual unsigned int itk::CellInterface< TPixelType, TCellTraits >::GetDimension |
( |
| ) |
const |
|
pure virtual |
Get the topological dimension of this cell.
◆ GetInterpolationOrder()
template<typename TPixelType, typename TCellTraits>
virtual unsigned int itk::CellInterface< TPixelType, TCellTraits >::GetInterpolationOrder |
( |
| ) |
const |
|
virtual |
Get the interpolation order of the cell. Usually linear.
◆ GetNumberOfBoundaryFeatures()
template<typename TPixelType, typename TCellTraits>
Get the number of boundary features of a given dimension on this cell.
◆ GetNumberOfPoints()
template<typename TPixelType, typename TCellTraits>
virtual unsigned int itk::CellInterface< TPixelType, TCellTraits >::GetNumberOfPoints |
( |
| ) |
const |
|
pure virtual |
Get the number of points required to define the cell.
◆ GetNumberOfUsingCells()
template<typename TPixelType, typename TCellTraits>
virtual unsigned int itk::CellInterface< TPixelType, TCellTraits >::GetNumberOfUsingCells |
( |
| ) |
|
|
virtual |
Get the number of cells in the UsingCellsContainer.
◆ GetPointIds()
template<typename TPixelType, typename TCellTraits>
Get the point id list used by the cell in a form suitable to pass to SetPointIds(first) on another cell. This is equivalent to PointIdsBegin() const.
◆ GetPointIdsContainer()
template<typename TPixelType, typename TCellTraits>
Get/Set the point id list used by the cell
◆ GetType()
template<typename TPixelType, typename TCellTraits>
Return the type of the cell (one of the CellGeometryEnum enums listed above).
◆ IntersectBoundingBoxWithLine()
template<typename TPixelType, typename TCellTraits>
Intersect the given bounding box (bounds[PointDimension*2]) with a line given by an origin (origin[PointDimension]) and direction (direction[PointDimension]). Get the following results if the corresponding pointers are not nullptr:
- The intersection point's geometric coordinates (returned through pointer to array: coords[PointDimension]).
- The line's parametric coordinate of the intersection point (returned through "t" pointer).
Returns whether an intersection exists.
Definition at line 408 of file itkCellInterface.h.
◆ IntersectWithLine()
template<typename TPixelType, typename TCellTraits>
Intersect the cell with a line given by an origin (origin[PointDimension]) and direction (direction[PointDimension]). The intersection point found will be within the given tolerance of the real intersection. Get the following results if the corresponding pointers are not nullptr:
- The intersection point's geometric coordinates (returned through pointer to array: coords[PointDimension]).
- The line's parametric coordinate of the intersection point (returned through "t" pointer).
- The cell's parametric coordinates of the intersection point (returned through pointer to array: pCoords[CellDimension]).
Returns whether an intersection exists within the given tolerance.
Definition at line 372 of file itkCellInterface.h.
◆ IsExplicitBoundary()
template<typename TPixelType, typename TCellTraits>
Interface to the boundary form of the cell to set/get UsingCells. See the boundary wrapper source for more information. Returns true if the cell has been explicitly assigned as a boundary, false otherwise.
◆ IsUsingCell()
template<typename TPixelType, typename TCellTraits>
Test if a cell is in the UsingCellsContainer. A result of true
indicates that this cell is part of the boundary of the cell cellId, assuming that boundary information has been recorded.
◆ itkCellCommonTypedefs()
template<typename TPixelType, typename TCellTraits>
Standard class type aliases.
◆ itkTypeMacroNoParent()
template<typename TPixelType, typename TCellTraits>
Standard part of every itk Object.
◆ MakeCopy()
template<typename TPixelType, typename TCellTraits>
Create a new copy of this cell. This is provided so that a copy can be made without knowing the cell type.
◆ PointIdsBegin() [1/2]
template<typename TPixelType, typename TCellTraits>
Get a const begin iterator to the list of point identifiers used by the cell.
◆ PointIdsBegin() [2/2]
template<typename TPixelType, typename TCellTraits>
Get a begin iterator to the list of point identifiers used by the cell.
◆ PointIdsEnd() [1/2]
template<typename TPixelType, typename TCellTraits>
Get a const end iterator to the list of point identifiers used by the cell.
◆ PointIdsEnd() [2/2]
template<typename TPixelType, typename TCellTraits>
Get an end iterator to the list of point identifiers used by the cell.
◆ RemoveUsingCell()
template<typename TPixelType, typename TCellTraits>
Remove a cell from the UsingCellsContainer.
◆ SetPointId()
template<typename TPixelType, typename TCellTraits>
Set the point identifier for a given spot in the point list for the cell.
◆ SetPointIds() [1/2]
template<typename TPixelType, typename TCellTraits>
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.
◆ SetPointIds() [2/2]
template<typename TPixelType, typename TCellTraits>
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.
◆ SetPointIdsContainer()
template<typename TPixelType, typename TCellTraits>
Get/Set the point id list used by the cell
◆ UsingCellsBegin()
template<typename TPixelType, typename TCellTraits>
Get a begin iterator for the UsingCellsContainer.
◆ UsingCellsEnd()
template<typename TPixelType, typename TCellTraits>
Get an end iterator for the UsingCellsContainer.
◆ m_UsingCells
template<typename TPixelType, typename TCellTraits>
Cell internal utility routines. Get the geometric position of a point. Store the set of cells using this boundary.
Definition at line 496 of file itkCellInterface.h.
◆ PointDimension
template<typename TPixelType, typename TCellTraits>
constexpr unsigned int itk::CellInterface< TPixelType, TCellTraits >::PointDimension = CellTraits::PointDimension |
|
staticconstexpr |
The documentation for this class was generated from the following file: