ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itk::PolyData< TPixel, TCellPixel > Class Template Reference

#include <itkPolyData.h>

Detailed Description

template<typename TPixel, typename TCellPixel = TPixel>
class itk::PolyData< TPixel, TCellPixel >

Geometry class compatible with vtk.js PolyData.

Definition at line 35 of file itkPolyData.h.

+ Inheritance diagram for itk::PolyData< TPixel, TCellPixel >:
+ Collaboration diagram for itk::PolyData< TPixel, TCellPixel >:

Public Types

using CellDataContainer = typename MeshTraits::CellDataContainer
 
using CellIdentifier = typename MeshTraits::CellIdentifier
 
using CellPixelType = TCellPixel
 
using CellsContainer = VectorContainer<CellIdentifier, uint32_t>
 
using ConstPointer = SmartPointer<const Self>
 
using CoordinateType = typename MeshTraits::CoordinateType
 
using CoordRepType = CoordinateType
 
using MeshTraits = DefaultStaticMeshTraits<PixelType, PointDimension, PointDimension, float, float, CellPixelType>
 
using PixelType = TPixel
 
using PointDataContainer = typename MeshTraits::PointDataContainer
 
using Pointer = SmartPointer<Self>
 
using PointIdentifier = typename MeshTraits::PointIdentifier
 
using PointsContainer = typename MeshTraits::PointsContainer
 
using PointType = typename MeshTraits::PointType
 
using Self = PolyData
 
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
 

Public Member Functions

virtual::itk::LightObject::Pointer CreateAnother () const
 
CellDataContainer * GetCellData ()
 
const CellDataContainer * GetCellData () const
 
bool GetCellData (CellIdentifier, CellPixelType *) const
 
CellsContainer * GetLines ()
 
const CellsContainer * GetLines () const
 
virtual const char * GetNameOfClass () const
 
PointIdentifier GetNumberOfPoints () const
 
PointType GetPoint (PointIdentifier) const
 
bool GetPoint (PointIdentifier, PointType *) const
 
PointDataContainer * GetPointData ()
 
const PointDataContainer * GetPointData () const
 
bool GetPointData (PointIdentifier, PixelType *) const
 
PointsContainer * GetPoints ()
 
const PointsContainer * GetPoints () const
 
CellsContainer * GetPolygons ()
 
const CellsContainer * GetPolygons () const
 
CellsContainer * GetTriangleStrips ()
 
const CellsContainer * GetTriangleStrips () const
 
CellsContainer * GetVertices ()
 
const CellsContainer * GetVertices () const
 
void Initialize () override
 
void SetCellData (CellDataContainer *)
 
void SetCellData (CellIdentifier, CellPixelType)
 
void SetLines (CellsContainer *)
 
void SetPoint (PointIdentifier, PointType)
 
void SetPointData (PointDataContainer *)
 
void SetPointData (PointIdentifier, PixelType)
 
void SetPoints (PointsContainer *)
 
void SetPolygons (CellsContainer *)
 
void SetTriangleStrips (CellsContainer *)
 
void SetVertices (CellsContainer *)
 
- Public Member Functions inherited from itk::DataObject
virtual void CopyInformation (const DataObject *)
 
virtual void DataHasBeenGenerated ()
 
void DisconnectPipeline ()
 
bool GetDataReleased () const
 
virtual const bool & GetReleaseDataFlag () const
 
SmartPointer< ProcessObject > GetSource () const
 
DataObjectPointerArraySizeType GetSourceOutputIndex () const
 
const DataObjectIdentifierType & GetSourceOutputName () const
 
virtual ModifiedTimeType GetUpdateMTime () const
 
virtual void Graft (const DataObject *)
 
virtual void PrepareForNewData ()
 
virtual void PropagateRequestedRegion ()
 
void ReleaseData ()
 
virtual void ReleaseDataFlagOff ()
 
virtual void ReleaseDataFlagOn ()
 
virtual bool RequestedRegionIsOutsideOfTheBufferedRegion ()
 
virtual void ResetPipeline ()
 
void SetReleaseDataFlag (bool flag)
 
virtual void SetRequestedRegion (const DataObject *)
 
virtual void SetRequestedRegionToLargestPossibleRegion ()
 
bool ShouldIReleaseData () const
 
virtual void Update ()
 
virtual void UpdateOutputData ()
 
virtual void UpdateOutputInformation ()
 
void UpdateSource () const
 
virtual bool VerifyRequestedRegion ()
 
void SetPipelineMTime (ModifiedTimeType time)
 
virtual const ModifiedTimeType & GetPipelineMTime () const
 
virtual void SetRealTimeStamp (RealTimeStamp _arg)
 
virtual const RealTimeStamp & GetRealTimeStamp () const
 
- Public Member Functions inherited from itk::Object
unsigned long AddObserver (const EventObject &event, Command *cmd) const
 
unsigned long AddObserver (const EventObject &event, std::function< void(const EventObject &)> function) const
 
virtual void DebugOff () const
 
virtual void DebugOn () const
 
Command * GetCommand (unsigned long tag)
 
bool GetDebug () const
 
MetaDataDictionary & GetMetaDataDictionary ()
 
const MetaDataDictionary & GetMetaDataDictionary () const
 
virtual ModifiedTimeType GetMTime () const
 
virtual const TimeStamp & GetTimeStamp () const
 
bool HasObserver (const EventObject &event) const
 
void InvokeEvent (const EventObject &)
 
void InvokeEvent (const EventObject &) const
 
virtual void Modified () const
 
void Register () const override
 
void RemoveAllObservers ()
 
void RemoveObserver (unsigned long tag) const
 
void SetDebug (bool debugFlag) const
 
void SetReferenceCount (int) override
 
void UnRegister () const noexcept override
 
void SetMetaDataDictionary (const MetaDataDictionary &rhs)
 
void SetMetaDataDictionary (MetaDataDictionary &&rrhs)
 
virtual void SetObjectName (std::string _arg)
 
virtual const std::string & GetObjectName () const
 
- Public Member Functions inherited from itk::LightObject
Pointer Clone () const
 
virtual void Delete ()
 
virtual int GetReferenceCount () const
 
void Print (std::ostream &os, Indent indent=0) const
 

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 ()
 

Static Public Attributes

static constexpr unsigned int PointDimension = 3
 

Protected Member Functions

 PolyData ()
 
void PrintSelf (std::ostream &os, Indent indent) const override
 
 ~PolyData () override=default
 
- 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
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

CellDataContainer::Pointer m_CellDataContainer
 
CellsContainer::Pointer m_LinesContainer
 
PointDataContainer::Pointer m_PointDataContainer
 
PointsContainer::Pointer m_PointsContainer
 
CellsContainer::Pointer m_PolygonsContainer
 
CellsContainer::Pointer m_TriangleStripsContainer
 
CellsContainer::Pointer m_VerticesContainer
 
- Protected Attributes inherited from itk::LightObject
std::atomic< int > m_ReferenceCount {}
 

Member Typedef Documentation

◆ CellDataContainer

template<typename TPixel, typename TCellPixel = TPixel>
using itk::PolyData< TPixel, TCellPixel >::CellDataContainer = typename MeshTraits::CellDataContainer

Definition at line 67 of file itkPolyData.h.

◆ CellIdentifier

template<typename TPixel, typename TCellPixel = TPixel>
using itk::PolyData< TPixel, TCellPixel >::CellIdentifier = typename MeshTraits::CellIdentifier

Definition at line 66 of file itkPolyData.h.

◆ CellPixelType

template<typename TPixel, typename TCellPixel = TPixel>
using itk::PolyData< TPixel, TCellPixel >::CellPixelType = TCellPixel

Definition at line 56 of file itkPolyData.h.

◆ CellsContainer

template<typename TPixel, typename TCellPixel = TPixel>
using itk::PolyData< TPixel, TCellPixel >::CellsContainer = VectorContainer<CellIdentifier, uint32_t>

Definition at line 68 of file itkPolyData.h.

◆ ConstPointer

template<typename TPixel, typename TCellPixel = TPixel>
using itk::PolyData< TPixel, TCellPixel >::ConstPointer = SmartPointer<const Self>

Definition at line 43 of file itkPolyData.h.

◆ CoordinateType

template<typename TPixel, typename TCellPixel = TPixel>
using itk::PolyData< TPixel, TCellPixel >::CoordinateType = typename MeshTraits::CoordinateType

Convenient type alias obtained from TMeshTraits template parameter.

Definition at line 60 of file itkPolyData.h.

◆ CoordRepType

template<typename TPixel, typename TCellPixel = TPixel>
using itk::PolyData< TPixel, TCellPixel >::CoordRepType = CoordinateType

Definition at line 61 of file itkPolyData.h.

◆ MeshTraits

template<typename TPixel, typename TCellPixel = TPixel>
using itk::PolyData< TPixel, TCellPixel >::MeshTraits = DefaultStaticMeshTraits<PixelType, PointDimension, PointDimension, float, float, CellPixelType>

Definition at line 57 of file itkPolyData.h.

◆ PixelType

template<typename TPixel, typename TCellPixel = TPixel>
using itk::PolyData< TPixel, TCellPixel >::PixelType = TPixel

Type of PointData or CellData

Definition at line 55 of file itkPolyData.h.

◆ PointDataContainer

template<typename TPixel, typename TCellPixel = TPixel>
using itk::PolyData< TPixel, TCellPixel >::PointDataContainer = typename MeshTraits::PointDataContainer

Definition at line 65 of file itkPolyData.h.

◆ Pointer

template<typename TPixel, typename TCellPixel = TPixel>
using itk::PolyData< TPixel, TCellPixel >::Pointer = SmartPointer<Self>

Definition at line 42 of file itkPolyData.h.

◆ PointIdentifier

template<typename TPixel, typename TCellPixel = TPixel>
using itk::PolyData< TPixel, TCellPixel >::PointIdentifier = typename MeshTraits::PointIdentifier

Definition at line 62 of file itkPolyData.h.

◆ PointsContainer

template<typename TPixel, typename TCellPixel = TPixel>
using itk::PolyData< TPixel, TCellPixel >::PointsContainer = typename MeshTraits::PointsContainer

Definition at line 64 of file itkPolyData.h.

◆ PointType

template<typename TPixel, typename TCellPixel = TPixel>
using itk::PolyData< TPixel, TCellPixel >::PointType = typename MeshTraits::PointType

Definition at line 63 of file itkPolyData.h.

◆ Self

template<typename TPixel, typename TCellPixel = TPixel>
using itk::PolyData< TPixel, TCellPixel >::Self = PolyData

Definition at line 40 of file itkPolyData.h.

◆ Superclass

template<typename TPixel, typename TCellPixel = TPixel>
using itk::PolyData< TPixel, TCellPixel >::Superclass = DataObject

Definition at line 41 of file itkPolyData.h.

Constructor & Destructor Documentation

◆ PolyData()

template<typename TPixel, typename TCellPixel = TPixel>
itk::PolyData< TPixel, TCellPixel >::PolyData ( )
protected

◆ ~PolyData()

template<typename TPixel, typename TCellPixel = TPixel>
itk::PolyData< TPixel, TCellPixel >::~PolyData ( )
overrideprotecteddefault

Member Function Documentation

◆ CreateAnother()

template<typename TPixel, typename TCellPixel = TPixel>
virtual::itk::LightObject::Pointer itk::PolyData< TPixel, TCellPixel >::CreateAnother ( ) const
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.

◆ GetCellData() [1/3]

template<typename TPixel, typename TCellPixel = TPixel>
CellDataContainer * itk::PolyData< TPixel, TCellPixel >::GetCellData ( )

◆ GetCellData() [2/3]

template<typename TPixel, typename TCellPixel = TPixel>
const CellDataContainer * itk::PolyData< TPixel, TCellPixel >::GetCellData ( ) const

◆ GetCellData() [3/3]

template<typename TPixel, typename TCellPixel = TPixel>
bool itk::PolyData< TPixel, TCellPixel >::GetCellData ( CellIdentifier ,
CellPixelType *  ) const

◆ GetLines() [1/2]

template<typename TPixel, typename TCellPixel = TPixel>
CellsContainer * itk::PolyData< TPixel, TCellPixel >::GetLines ( )

◆ GetLines() [2/2]

template<typename TPixel, typename TCellPixel = TPixel>
const CellsContainer * itk::PolyData< TPixel, TCellPixel >::GetLines ( ) const

◆ GetNameOfClass()

template<typename TPixel, typename TCellPixel = TPixel>
virtual const char * itk::PolyData< TPixel, TCellPixel >::GetNameOfClass ( ) const
virtual

Run-time type information (and related methods).

Reimplemented from itk::DataObject.

◆ GetNumberOfPoints()

template<typename TPixel, typename TCellPixel = TPixel>
PointIdentifier itk::PolyData< TPixel, TCellPixel >::GetNumberOfPoints ( ) const

◆ GetPoint() [1/2]

template<typename TPixel, typename TCellPixel = TPixel>
PointType itk::PolyData< TPixel, TCellPixel >::GetPoint ( PointIdentifier ) const

◆ GetPoint() [2/2]

template<typename TPixel, typename TCellPixel = TPixel>
bool itk::PolyData< TPixel, TCellPixel >::GetPoint ( PointIdentifier ,
PointType *  ) const

◆ GetPointData() [1/3]

template<typename TPixel, typename TCellPixel = TPixel>
PointDataContainer * itk::PolyData< TPixel, TCellPixel >::GetPointData ( )

◆ GetPointData() [2/3]

template<typename TPixel, typename TCellPixel = TPixel>
const PointDataContainer * itk::PolyData< TPixel, TCellPixel >::GetPointData ( ) const

◆ GetPointData() [3/3]

template<typename TPixel, typename TCellPixel = TPixel>
bool itk::PolyData< TPixel, TCellPixel >::GetPointData ( PointIdentifier ,
PixelType *  ) const

◆ GetPoints() [1/2]

template<typename TPixel, typename TCellPixel = TPixel>
PointsContainer * itk::PolyData< TPixel, TCellPixel >::GetPoints ( )

◆ GetPoints() [2/2]

template<typename TPixel, typename TCellPixel = TPixel>
const PointsContainer * itk::PolyData< TPixel, TCellPixel >::GetPoints ( ) const

◆ GetPolygons() [1/2]

template<typename TPixel, typename TCellPixel = TPixel>
CellsContainer * itk::PolyData< TPixel, TCellPixel >::GetPolygons ( )

◆ GetPolygons() [2/2]

template<typename TPixel, typename TCellPixel = TPixel>
const CellsContainer * itk::PolyData< TPixel, TCellPixel >::GetPolygons ( ) const

◆ GetTriangleStrips() [1/2]

template<typename TPixel, typename TCellPixel = TPixel>
CellsContainer * itk::PolyData< TPixel, TCellPixel >::GetTriangleStrips ( )

◆ GetTriangleStrips() [2/2]

template<typename TPixel, typename TCellPixel = TPixel>
const CellsContainer * itk::PolyData< TPixel, TCellPixel >::GetTriangleStrips ( ) const

◆ GetVertices() [1/2]

template<typename TPixel, typename TCellPixel = TPixel>
CellsContainer * itk::PolyData< TPixel, TCellPixel >::GetVertices ( )

◆ GetVertices() [2/2]

template<typename TPixel, typename TCellPixel = TPixel>
const CellsContainer * itk::PolyData< TPixel, TCellPixel >::GetVertices ( ) const

◆ Initialize()

template<typename TPixel, typename TCellPixel = TPixel>
void itk::PolyData< TPixel, TCellPixel >::Initialize ( )
overridevirtual

Restore the data object to its initial state. This means releasing memory.

Reimplemented from itk::DataObject.

◆ New()

template<typename TPixel, typename TCellPixel = TPixel>
static Pointer itk::PolyData< TPixel, TCellPixel >::New ( )
static

Method for creation through the object factory.

◆ PrintSelf()

template<typename TPixel, typename TCellPixel = TPixel>
void itk::PolyData< TPixel, TCellPixel >::PrintSelf ( std::ostream & os,
Indent indent ) const
overrideprotectedvirtual

Methods invoked by Print() to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from itk::DataObject.

◆ SetCellData() [1/2]

template<typename TPixel, typename TCellPixel = TPixel>
void itk::PolyData< TPixel, TCellPixel >::SetCellData ( CellDataContainer * )

Access m_CellDataContainer, which contains data associated with the mesh's cells. Optionally, this can be nullptr, indicating that no data are associated with the cells. The data for a cell can be accessed through its cell identifier.

◆ SetCellData() [2/2]

template<typename TPixel, typename TCellPixel = TPixel>
void itk::PolyData< TPixel, TCellPixel >::SetCellData ( CellIdentifier ,
CellPixelType  )

Access routines to fill the CellData container, and get information from it.

◆ SetLines()

template<typename TPixel, typename TCellPixel = TPixel>
void itk::PolyData< TPixel, TCellPixel >::SetLines ( CellsContainer * )

Lines in format [nPointsLine1 pointIndex1 pointIndex2 nPointsLine2 pointIndex1 pointIndex2 ... ]

◆ SetPoint()

template<typename TPixel, typename TCellPixel = TPixel>
void itk::PolyData< TPixel, TCellPixel >::SetPoint ( PointIdentifier ,
PointType  )

Access routines to fill the Points container, and get information from it.

◆ SetPointData() [1/2]

template<typename TPixel, typename TCellPixel = TPixel>
void itk::PolyData< TPixel, TCellPixel >::SetPointData ( PointDataContainer * )

◆ SetPointData() [2/2]

template<typename TPixel, typename TCellPixel = TPixel>
void itk::PolyData< TPixel, TCellPixel >::SetPointData ( PointIdentifier ,
PixelType  )

Access routines to fill the PointData container, and get information from it.

◆ SetPoints()

template<typename TPixel, typename TCellPixel = TPixel>
void itk::PolyData< TPixel, TCellPixel >::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.

◆ SetPolygons()

template<typename TPixel, typename TCellPixel = TPixel>
void itk::PolyData< TPixel, TCellPixel >::SetPolygons ( CellsContainer * )

Polygons in format [nPointsPolygon1 pointIndex1 pointIndex2 nPointsPolygon2 pointIndex1 pointIndex2 ... ]

◆ SetTriangleStrips()

template<typename TPixel, typename TCellPixel = TPixel>
void itk::PolyData< TPixel, TCellPixel >::SetTriangleStrips ( CellsContainer * )

TriangleStrips in format [nPointsTriangleStrip1 pointIndex1 pointIndex2 nPointsTriangleStrip2 pointIndex1 pointIndex2 ... ]

◆ SetVertices()

template<typename TPixel, typename TCellPixel = TPixel>
void itk::PolyData< TPixel, TCellPixel >::SetVertices ( CellsContainer * )

Vertices in format [1 pointIndex1 1 pointIndex2 1 pointIndex3 ... ]

Member Data Documentation

◆ m_CellDataContainer

template<typename TPixel, typename TCellPixel = TPixel>
CellDataContainer::Pointer itk::PolyData< TPixel, TCellPixel >::m_CellDataContainer
protected

Definition at line 178 of file itkPolyData.h.

◆ m_LinesContainer

template<typename TPixel, typename TCellPixel = TPixel>
CellsContainer::Pointer itk::PolyData< TPixel, TCellPixel >::m_LinesContainer
protected

Definition at line 168 of file itkPolyData.h.

◆ m_PointDataContainer

template<typename TPixel, typename TCellPixel = TPixel>
PointDataContainer::Pointer itk::PolyData< TPixel, TCellPixel >::m_PointDataContainer
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 176 of file itkPolyData.h.

◆ m_PointsContainer

template<typename TPixel, typename TCellPixel = TPixel>
PointsContainer::Pointer itk::PolyData< TPixel, TCellPixel >::m_PointsContainer
protected

An object containing points used by the mesh. Individual points are accessed through point identifiers.

Definition at line 165 of file itkPolyData.h.

◆ m_PolygonsContainer

template<typename TPixel, typename TCellPixel = TPixel>
CellsContainer::Pointer itk::PolyData< TPixel, TCellPixel >::m_PolygonsContainer
protected

Definition at line 169 of file itkPolyData.h.

◆ m_TriangleStripsContainer

template<typename TPixel, typename TCellPixel = TPixel>
CellsContainer::Pointer itk::PolyData< TPixel, TCellPixel >::m_TriangleStripsContainer
protected

Definition at line 170 of file itkPolyData.h.

◆ m_VerticesContainer

template<typename TPixel, typename TCellPixel = TPixel>
CellsContainer::Pointer itk::PolyData< TPixel, TCellPixel >::m_VerticesContainer
protected

Definition at line 167 of file itkPolyData.h.

◆ PointDimension

template<typename TPixel, typename TCellPixel = TPixel>
unsigned int itk::PolyData< TPixel, TCellPixel >::PointDimension = 3
staticconstexpr

Definition at line 45 of file itkPolyData.h.


The documentation for this class was generated from the following file: