ITK
4.13.0
Insight Segmentation and Registration 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 typedefs 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 84 of file itkPointSet.h.
Public Types | |
typedef SmartPointer< const Self > | ConstPointer |
typedef MeshTraits::CoordRepType | CoordRepType |
typedef TMeshTraits | MeshTraits |
typedef MeshTraits::PixelType | PixelType |
typedef MeshTraits::PointDataContainer | PointDataContainer |
typedef PointDataContainer::ConstPointer | PointDataContainerConstPointer |
typedef PointDataContainer::ConstIterator | PointDataContainerIterator |
typedef PointDataContainer::Pointer | PointDataContainerPointer |
typedef SmartPointer< Self > | Pointer |
typedef MeshTraits::PointIdentifier | PointIdentifier |
typedef MeshTraits::PointsContainer | PointsContainer |
typedef PointsContainer::ConstIterator | PointsContainerConstIterator |
typedef PointsContainer::ConstPointer | PointsContainerConstPointer |
typedef PointsContainer::Iterator | PointsContainerIterator |
typedef PointsContainer::Pointer | PointsContainerPointer |
typedef MeshTraits::PointType | PointType |
typedef long | RegionType |
typedef PointSet | Self |
typedef DataObject | Superclass |
Public Types inherited from itk::DataObject | |
typedef SmartPointer< const Self > | ConstPointer |
typedef std::string | DataObjectIdentifierType |
typedef std::vector< Pointer > ::size_type | DataObjectPointerArraySizeType |
typedef SmartPointer< Self > | Pointer |
typedef DataObject | Self |
typedef Object | Superclass |
Public Types inherited from itk::Object | |
typedef SmartPointer< const Self > | ConstPointer |
typedef SmartPointer< Self > | Pointer |
typedef Object | Self |
typedef LightObject | Superclass |
Public Types inherited from itk::LightObject | |
typedef SmartPointer< const Self > | ConstPointer |
typedef SmartPointer< Self > | Pointer |
typedef LightObject | Self |
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 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 flag) |
Static Public Member Functions inherited from itk::LightObject | |
static void | BreakOnError () |
static Pointer | New () |
Static Public Attributes | |
static const unsigned int | PointDimension = TMeshTraits::PointDimension |
Protected Member Functions | |
PointSet () | |
~PointSet () override | |
virtual void | PrintSelf (std::ostream &os, Indent indent) const override |
Protected Member Functions inherited from itk::DataObject | |
DataObject () | |
virtual void | PropagateResetPipeline () |
virtual | ~DataObject () override |
Protected Member Functions inherited from itk::Object | |
Object () | |
bool | PrintObservers (std::ostream &os, Indent indent) const |
virtual void | SetTimeStamp (const TimeStamp &time) |
virtual | ~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 | PrintTrailer (std::ostream &os, Indent indent) const |
virtual | ~LightObject () |
Protected Attributes | |
RegionType | m_BufferedRegion |
RegionType | m_MaximumNumberOfRegions |
RegionType | m_NumberOfRegions |
PointDataContainerPointer | m_PointDataContainer |
PointsContainerPointer | m_PointsContainer |
RegionType | m_RequestedNumberOfRegions |
RegionType | m_RequestedRegion |
Protected Attributes inherited from itk::LightObject | |
AtomicInt< int > | m_ReferenceCount |
typedef SmartPointer< const Self > itk::PointSet< TPixelType, VDimension, TMeshTraits >::ConstPointer |
Definition at line 91 of file itkPointSet.h.
typedef MeshTraits::CoordRepType itk::PointSet< TPixelType, VDimension, TMeshTraits >::CoordRepType |
Convenient typedefs obtained from TMeshTraits template parameter.
Definition at line 104 of file itkPointSet.h.
typedef TMeshTraits itk::PointSet< TPixelType, VDimension, TMeshTraits >::MeshTraits |
Hold on to the type information specified by the template parameters.
Definition at line 97 of file itkPointSet.h.
typedef MeshTraits::PixelType itk::PointSet< TPixelType, VDimension, TMeshTraits >::PixelType |
Definition at line 101 of file itkPointSet.h.
typedef MeshTraits::PointDataContainer itk::PointSet< TPixelType, VDimension, TMeshTraits >::PointDataContainer |
Definition at line 108 of file itkPointSet.h.
typedef PointDataContainer::ConstPointer itk::PointSet< TPixelType, VDimension, TMeshTraits >::PointDataContainerConstPointer |
Definition at line 118 of file itkPointSet.h.
typedef PointDataContainer::ConstIterator itk::PointSet< TPixelType, VDimension, TMeshTraits >::PointDataContainerIterator |
Definition at line 123 of file itkPointSet.h.
typedef PointDataContainer::Pointer itk::PointSet< TPixelType, VDimension, TMeshTraits >::PointDataContainerPointer |
Definition at line 117 of file itkPointSet.h.
typedef SmartPointer< Self > itk::PointSet< TPixelType, VDimension, TMeshTraits >::Pointer |
Definition at line 90 of file itkPointSet.h.
typedef MeshTraits::PointIdentifier itk::PointSet< TPixelType, VDimension, TMeshTraits >::PointIdentifier |
Definition at line 105 of file itkPointSet.h.
typedef MeshTraits::PointsContainer itk::PointSet< TPixelType, VDimension, TMeshTraits >::PointsContainer |
Definition at line 107 of file itkPointSet.h.
typedef PointsContainer::ConstIterator itk::PointSet< TPixelType, VDimension, TMeshTraits >::PointsContainerConstIterator |
Create types that are iterators for each of the container types.
Definition at line 121 of file itkPointSet.h.
typedef PointsContainer::ConstPointer itk::PointSet< TPixelType, VDimension, TMeshTraits >::PointsContainerConstPointer |
Definition at line 116 of file itkPointSet.h.
typedef PointsContainer::Iterator itk::PointSet< TPixelType, VDimension, TMeshTraits >::PointsContainerIterator |
Definition at line 122 of file itkPointSet.h.
typedef PointsContainer::Pointer itk::PointSet< TPixelType, VDimension, TMeshTraits >::PointsContainerPointer |
Create types that are pointers to each of the container types.
Definition at line 115 of file itkPointSet.h.
typedef MeshTraits::PointType itk::PointSet< TPixelType, VDimension, TMeshTraits >::PointType |
Definition at line 106 of file itkPointSet.h.
typedef long itk::PointSet< TPixelType, VDimension, TMeshTraits >::RegionType |
Type used to define Regions
Definition at line 126 of file itkPointSet.h.
typedef PointSet itk::PointSet< TPixelType, VDimension, TMeshTraits >::Self |
Standard class typedefs.
Definition at line 88 of file itkPointSet.h.
typedef DataObject itk::PointSet< TPixelType, VDimension, TMeshTraits >::Superclass |
Definition at line 89 of file itkPointSet.h.
|
protected |
Constructor for use by New() method.
|
inlineoverrideprotected |
Constructor for use by New() method.
Definition at line 211 of file itkPointSet.h.
|
overridevirtual |
Copy information from the specified data set. This method is part of the pipeline execution model. By default, a ProcessObject will copy meta-data from the first input to all of its outputs. See ProcessObject::GenerateOutputInformation(). Each subclass of DataObject is responsible for being able to copy whatever meta-data it needs from from another DataObject. The default implementation of this method is empty. If a subclass overrides this method, it should always call its superclass' version.
Reimplemented from itk::DataObject.
Reimplemented in itk::Mesh< TPixelType, VDimension, TMeshTraits >, itk::Mesh< TCoordType, 2, DefaultDynamicMeshTraits< TCoordType, 2, 2, TCoordType > >, itk::Mesh< TPixel, VDimension, TTraits >, itk::QuadEdgeMesh< TPixel, VDimension, TTraits >, and itk::SimplexMesh< TPixelType, VDimension, TMeshTraits >.
|
virtual |
Create an object from an instance, potentially deferring to a factory. This method allows you to create an instance of an object that is exactly the same type as the referring object. This is useful in cases where an object has been cast back to a base class.
Reimplemented from itk::Object.
Reimplemented in itk::Mesh< TPixelType, VDimension, TMeshTraits >, itk::Mesh< TCoordType, 2, DefaultDynamicMeshTraits< TCoordType, 2, 2, TCoordType > >, itk::Mesh< TPixel, VDimension, TTraits >, and itk::SimplexMesh< TPixelType, VDimension, TMeshTraits >.
|
virtual |
|
virtual |
Get the maximum number of regions that this data can be separated into.
|
virtual |
Standard part of every itk Object.
Reimplemented from itk::DataObject.
Reimplemented in itk::QuadEdgeMesh< TPixel, VDimension, TTraits >, itk::Mesh< TPixelType, VDimension, TMeshTraits >, itk::Mesh< TCoordType, 2, DefaultDynamicMeshTraits< TCoordType, 2, 2, TCoordType > >, itk::Mesh< TPixel, VDimension, TTraits >, itk::SimplexMesh< TPixelType, VDimension, TMeshTraits >, and itk::VoronoiDiagram2D< TCoordType >.
PointIdentifier itk::PointSet< TPixelType, VDimension, TMeshTraits >::GetNumberOfPoints | ( | ) | const |
bool itk::PointSet< TPixelType, VDimension, TMeshTraits >::GetPoint | ( | PointIdentifier | , |
PointType * | |||
) | const |
Access routines to fill the Points container, and get information from it.
PointType itk::PointSet< TPixelType, VDimension, TMeshTraits >::GetPoint | ( | PointIdentifier | ) | const |
Access routines to fill the Points container, and get information from it.
PointDataContainer* itk::PointSet< TPixelType, VDimension, TMeshTraits >::GetPointData | ( | ) |
const PointDataContainer* itk::PointSet< TPixelType, VDimension, TMeshTraits >::GetPointData | ( | ) | const |
bool itk::PointSet< TPixelType, VDimension, TMeshTraits >::GetPointData | ( | PointIdentifier | , |
PixelType * | |||
) | const |
Access routines to fill the PointData container, and get information from it.
PointsContainer* itk::PointSet< TPixelType, VDimension, TMeshTraits >::GetPoints | ( | ) |
const PointsContainer* itk::PointSet< TPixelType, VDimension, TMeshTraits >::GetPoints | ( | ) | const |
|
virtual |
|
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< TPixelType, VDimension, TMeshTraits >, itk::Mesh< TCoordType, 2, DefaultDynamicMeshTraits< TCoordType, 2, 2, TCoordType > >, itk::Mesh< TPixel, VDimension, TTraits >, and itk::QuadEdgeMesh< TPixel, VDimension, TTraits >.
|
overridevirtual |
Restore the data object to its initial state. This means releasing memory.
Reimplemented from itk::DataObject.
Reimplemented in itk::Mesh< TPixelType, VDimension, TMeshTraits >, itk::Mesh< TCoordType, 2, DefaultDynamicMeshTraits< TCoordType, 2, 2, TCoordType > >, itk::Mesh< TPixel, VDimension, TTraits >, and itk::QuadEdgeMesh< TPixel, VDimension, TTraits >.
|
static |
Method for creation through the object factory.
void itk::PointSet< TPixelType, VDimension, TMeshTraits >::PassStructure | ( | Self * | inputPointSet | ) |
PointSet-level operation interface.
|
overrideprotectedvirtual |
Constructor for use by New() method.
Reimplemented from itk::DataObject.
Reimplemented in itk::Mesh< TPixelType, VDimension, TMeshTraits >, itk::Mesh< TCoordType, 2, DefaultDynamicMeshTraits< TCoordType, 2, 2, TCoordType > >, itk::Mesh< TPixel, VDimension, TTraits >, itk::VoronoiDiagram2D< TCoordType >, and itk::SimplexMesh< TPixelType, VDimension, TMeshTraits >.
|
overridevirtual |
Determine whether the RequestedRegion is outside of the BufferedRegion. This method returns true if the RequestedRegion is outside the BufferedRegion (true if at least one pixel is outside). This is used by the pipeline mechanism to determine whether a filter needs to re-execute in order to satisfy the current request. If the current RequestedRegion is already inside the BufferedRegion from the previous execution (and the current filter is up to date), then a given filter does not need to re-execute
Reimplemented from itk::DataObject.
Reimplemented in itk::QuadEdgeMesh< TPixel, VDimension, TTraits >.
|
virtual |
Set/Get the Buffered region
void itk::PointSet< TPixelType, VDimension, TMeshTraits >::SetPoint | ( | PointIdentifier | , |
PointType | |||
) |
Access routines to fill the Points container, and get information from it.
void itk::PointSet< TPixelType, VDimension, TMeshTraits >::SetPointData | ( | PointDataContainer * | ) |
void itk::PointSet< TPixelType, VDimension, TMeshTraits >::SetPointData | ( | PointIdentifier | , |
PixelType | |||
) |
Access routines to fill the PointData container, and get information from it.
void itk::PointSet< TPixelType, VDimension, TMeshTraits >::SetPoints | ( | PointsContainer * | ) |
Define Set/Get access routines for each internal container. Methods also exist to add points, cells, etc. one at a time rather than through an entire container.
|
overridevirtual |
Set the requested region from this data object to match the requested region of the data object passed in as a parameter. This method implements the API from DataObject. The data object parameter must be castable to a PointSet.
Reimplemented from itk::DataObject.
|
virtual |
Set/Get the Requested region
|
overridevirtual |
Set the RequestedRegion to the LargestPossibleRegion. This forces a filter to produce all of the output in one execution (i.e. not streaming) on the next call to Update().
Reimplemented from itk::DataObject.
|
overridevirtual |
Methods to manage streaming.
Reimplemented from itk::DataObject.
|
overridevirtual |
Verify that the RequestedRegion is within the LargestPossibleRegion.
If the RequestedRegion is not within the LargestPossibleRegion, then the filter cannot possibly satisfy the request. This method returns true if the request can be satisfied (even if it will be necessary to process the entire LargestPossibleRegion) and returns false otherwise. This method is used by PropagateRequestedRegion(). PropagateRequestedRegion() throws a InvalidRequestedRegionError exception if the requested region is not within the LargestPossibleRegion. Default implementation simply returns true in order to support DataObjects that do not need regions (for instance itk::EquivalencyTable).
Reimplemented from itk::DataObject.
|
protected |
Definition at line 228 of file itkPointSet.h.
|
protected |
Definition at line 225 of file itkPointSet.h.
|
protected |
Definition at line 226 of file itkPointSet.h.
|
protected |
An object containing data associated with the mesh's points. Optionally, this can be ITK_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 141 of file itkPointSet.h.
|
protected |
An object containing points used by the mesh. Individual points are accessed through point identifiers.
Definition at line 130 of file itkPointSet.h.
|
protected |
Definition at line 227 of file itkPointSet.h.
|
protected |
Definition at line 229 of file itkPointSet.h.
|
static |
Convenient typedefs obtained from TMeshTraits template parameter.
Definition at line 112 of file itkPointSet.h.