ITK
6.0.0
Insight Toolkit
|
#include <itkPointSet.h>
A superclass of the N-dimensional mesh structure; supports point (geometric coordinate and attribute) definition.
PointSet is a superclass of the N-dimensional mesh structure (itk::Mesh). It provides the portion of the mesh definition for geometric coordinates (and associated attribute or pixel information). The defined API provides operations on points but does not tie down the underlying implementation and storage. A "MeshTraits" structure is used to define the container and identifier to access the points. See DefaultStaticMeshTraits for the set of type definitions needed. All types that are defined in the "MeshTraits" structure will have duplicate type alias in the resulting mesh itself.
PointSet has two template parameters. The first is the pixel type, or the type of data stored (optionally) with the points. The second is the "MeshTraits" structure controlling type information characterizing the point set. Most users will be happy with the defaults, and will not have to worry about this second argument.
Template parameters for PointSet:
TPixelType = The type stored as data for the point.
TMeshTraits = Type information structure for the point set.
Definition at line 81 of file itkPointSet.h.
Public Types | |
using | ConstPointer = SmartPointer< const Self > |
using | MeshTraits = TMeshTraits |
using | PixelType = typename MeshTraits::PixelType |
using | PointDataContainer = typename MeshTraits::PointDataContainer |
using | PointDataContainerConstPointer = typename PointDataContainer::ConstPointer |
using | PointDataContainerIterator = typename PointDataContainer::ConstIterator |
using | PointDataContainerPointer = typename PointDataContainer::Pointer |
using | Pointer = SmartPointer< Self > |
using | PointIdentifier = typename MeshTraits::PointIdentifier |
using | PointType = typename MeshTraits::PointType |
using | Self = PointSet |
using | Superclass = PointSetBase< typename TMeshTraits::PointsContainer > |
Public Types inherited from itk::PointSetBase< TMeshTraits::PointsContainer > | |
using | ConstPointer = SmartPointer< const Self > |
using | CoordRepType = typename PointType::CoordRepType |
using | Pointer = SmartPointer< Self > |
using | PointIdentifier = typename TPointsContainer::ElementIdentifier |
using | PointsContainer = TMeshTraits::PointsContainer |
using | PointsContainerConstIterator = typename PointsContainer::ConstIterator |
using | PointsContainerConstPointer = typename PointsContainer::ConstPointer |
using | PointsContainerIterator = typename PointsContainer::Iterator |
using | PointsContainerPointer = typename PointsContainer::Pointer |
using | PointsVectorContainer = typename itk::VectorContainer< PointIdentifier, CoordRepType > |
using | PointsVectorContainerPointer = typename PointsVectorContainer::Pointer |
using | PointType = typename TPointsContainer::Element |
using | RegionType = long |
using | Self = PointSetBase |
using | Superclass = DataObject |
Public Types inherited from itk::DataObject | |
using | ConstPointer = SmartPointer< const Self > |
using | DataObjectIdentifierType = std::string |
using | DataObjectPointerArraySizeType = std::vector< Pointer >::size_type |
using | Pointer = SmartPointer< Self > |
using | Self = DataObject |
using | Superclass = Object |
Public Types inherited from itk::Object | |
using | ConstPointer = SmartPointer< const Self > |
using | Pointer = SmartPointer< Self > |
using | Self = Object |
using | Superclass = LightObject |
Public Types inherited from itk::LightObject | |
using | ConstPointer = SmartPointer< const Self > |
using | Pointer = SmartPointer< Self > |
using | Self = LightObject |
Static Public Member Functions | |
static Pointer | New () |
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 | |
LightObject::Pointer | InternalClone () const override |
PointSet ()=default | |
~PointSet () override=default | |
void | PrintSelf (std::ostream &os, Indent indent) const override |
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 () | |
void | PrintSelf (std::ostream &os, Indent indent) const override |
virtual void | PropagateResetPipeline () |
~DataObject () override | |
Protected Member Functions inherited from itk::Object | |
Object () | |
bool | PrintObservers (std::ostream &os, Indent indent) const |
void | PrintSelf (std::ostream &os, Indent indent) const override |
virtual void | SetTimeStamp (const TimeStamp &timeStamp) |
~Object () override | |
Protected Member Functions inherited from itk::LightObject | |
virtual LightObject::Pointer | InternalClone () const |
LightObject () | |
virtual void | PrintHeader (std::ostream &os, Indent indent) const |
virtual void | PrintSelf (std::ostream &os, Indent indent) const |
virtual void | PrintTrailer (std::ostream &os, Indent indent) const |
virtual | ~LightObject () |
Protected Attributes | |
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::PointSetBase< TMeshTraits::PointsContainer > | |
static constexpr unsigned int | PointDimension |
using itk::PointSet< TPixelType, VDimension, TMeshTraits >::ConstPointer = SmartPointer<const Self> |
Definition at line 90 of file itkPointSet.h.
using itk::PointSet< TPixelType, VDimension, TMeshTraits >::MeshTraits = TMeshTraits |
Hold on to the type information specified by the template parameters.
Definition at line 99 of file itkPointSet.h.
using itk::PointSet< TPixelType, VDimension, TMeshTraits >::PixelType = typename MeshTraits::PixelType |
Definition at line 100 of file itkPointSet.h.
using itk::PointSet< TPixelType, VDimension, TMeshTraits >::PointDataContainer = typename MeshTraits::PointDataContainer |
Definition at line 105 of file itkPointSet.h.
using itk::PointSet< TPixelType, VDimension, TMeshTraits >::PointDataContainerConstPointer = typename PointDataContainer::ConstPointer |
Definition at line 109 of file itkPointSet.h.
using itk::PointSet< TPixelType, VDimension, TMeshTraits >::PointDataContainerIterator = typename PointDataContainer::ConstIterator |
Create types that are iterators for each of the container types.
Definition at line 112 of file itkPointSet.h.
using itk::PointSet< TPixelType, VDimension, TMeshTraits >::PointDataContainerPointer = typename PointDataContainer::Pointer |
Create types that are pointers to each of the container types.
Definition at line 108 of file itkPointSet.h.
using itk::PointSet< TPixelType, VDimension, TMeshTraits >::Pointer = SmartPointer<Self> |
Definition at line 89 of file itkPointSet.h.
using itk::PointSet< TPixelType, VDimension, TMeshTraits >::PointIdentifier = typename MeshTraits::PointIdentifier |
Convenient type alias obtained from TMeshTraits template parameter.
Definition at line 103 of file itkPointSet.h.
using itk::PointSet< TPixelType, VDimension, TMeshTraits >::PointType = typename MeshTraits::PointType |
Definition at line 104 of file itkPointSet.h.
using itk::PointSet< TPixelType, VDimension, TMeshTraits >::Self = PointSet |
Standard class type aliases.
Definition at line 87 of file itkPointSet.h.
using itk::PointSet< TPixelType, VDimension, TMeshTraits >::Superclass = PointSetBase<typename TMeshTraits::PointsContainer> |
Definition at line 88 of file itkPointSet.h.
|
protecteddefault |
Constructor for use by New() method.
|
overrideprotecteddefault |
Constructor for use by New() method.
|
overridevirtual |
Reimplemented from itk::DataObject.
Reimplemented in itk::Mesh< TPixel, VDimension, QuadEdgeMeshTraits< TPixel, VDimension, bool, bool > >, itk::Mesh< TPixelType, 3, DefaultStaticMeshTraits< TPixelType, 3, 3, TPixelType, TPixelType, TPixelType > >, and itk::Mesh< TCoordType, 2, DefaultDynamicMeshTraits< TCoordType, 2, 2, TCoordType > >.
PointDataContainer * itk::PointSet< TPixelType, VDimension, TMeshTraits >::GetPointData | ( | ) |
Get the point data container.
const PointDataContainer * itk::PointSet< TPixelType, VDimension, TMeshTraits >::GetPointData | ( | ) | const |
Get the point data container.
bool itk::PointSet< TPixelType, VDimension, TMeshTraits >::GetPointData | ( | PointIdentifier | , |
PixelType * | |||
) | const |
Check if point data exists for a given point identifier. If a spot for the point identifier exists, "data" is set, and true is returned. Otherwise, false is returned, and "data" is not modified. If "data" is nullptr, then it is never set, but the existence of the point data is still returned.
|
overridevirtual |
Method for grafting the content of one data object into another one. This method is intended to be overloaded by derived classes. Each one of them should use dynamic_casting in order to verify that the grafted object is actually of the same type as the class on which the Graft() method was invoked.
Reimplemented from itk::DataObject.
Reimplemented in itk::Mesh< TPixel, VDimension, QuadEdgeMeshTraits< TPixel, VDimension, bool, bool > >, itk::Mesh< TPixelType, 3, DefaultStaticMeshTraits< TPixelType, 3, 3, TPixelType, TPixelType, TPixelType > >, and itk::Mesh< TCoordType, 2, DefaultDynamicMeshTraits< TCoordType, 2, 2, TCoordType > >.
|
overridevirtual |
Restore the PointSet to its initial state. Useful for data pipeline updates without memory re-allocation.
Reimplemented from itk::DataObject.
Reimplemented in itk::Mesh< TPixel, VDimension, QuadEdgeMeshTraits< TPixel, VDimension, bool, bool > >, itk::Mesh< TPixelType, 3, DefaultStaticMeshTraits< TPixelType, 3, 3, TPixelType, TPixelType, TPixelType > >, and itk::Mesh< TCoordType, 2, DefaultDynamicMeshTraits< TCoordType, 2, 2, TCoordType > >.
|
overrideprotectedvirtual |
Actual implementation of the clone method. This method should be reimplemented in subclasses to clone the extra required parameters.
Reimplemented from itk::LightObject.
|
static |
Method for creation through the object factory.
|
overrideprotectedvirtual |
Constructor for use by New() method.
Reimplemented from itk::DataObject.
Reimplemented in itk::Mesh< TPixel, VDimension, QuadEdgeMeshTraits< TPixel, VDimension, bool, bool > >, itk::Mesh< TPixelType, 3, DefaultStaticMeshTraits< TPixelType, 3, 3, TPixelType, TPixelType, TPixelType > >, and itk::Mesh< TCoordType, 2, DefaultDynamicMeshTraits< TCoordType, 2, 2, TCoordType > >.
void itk::PointSet< TPixelType, VDimension, TMeshTraits >::SetPointData | ( | PointDataContainer * | ) |
Set the point data container.
void itk::PointSet< TPixelType, VDimension, TMeshTraits >::SetPointData | ( | PointIdentifier | , |
PixelType | |||
) |
Assign data to a point identifier. If a spot for the point identifier does not exist, it will be created automatically. There is no check if a point with the same identifier exists.
|
protected |
An object containing data associated with the mesh's points. Optionally, this can be nullptr, indicating that no data are associated with the points. The data for a point can be accessed through its point identifier.
Definition at line 119 of file itkPointSet.h.