ITK  4.8.0
Insight Segmentation and Registration Toolkit
Classes | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | List of all members
itk::Mesh< TPixelType, VDimension, TMeshTraits > Class Template Reference

#include <itkMesh.h>

+ Inheritance diagram for itk::Mesh< TPixelType, VDimension, TMeshTraits >:
+ Collaboration diagram for itk::Mesh< TPixelType, VDimension, TMeshTraits >:

Detailed Description

template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
class itk::Mesh< TPixelType, VDimension, TMeshTraits >

Implements the N-dimensional mesh structure.

Overview
Mesh implements the N-dimensional mesh structure for ITK. It provides an API to perform operations on points, cells, boundaries, etc., but does not tie down the underlying implementation and storage. A "MeshTraits" structure is used to define the container and identifier types that will be used to access the mesh. 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.

Mesh is an adaptive, evolving structure. Typically points and cells are created, with the cells referring to their defining points. If additional topological information is required, then BuildCellLinks() is called and links from the points back to the cells that use them are created. This allows implicit topological information about the faces and edges of the cells to be determined. (For example, a "face" neighbor to a cell can be determined by intersection the sets of cells that use the points defining the face. This is an inherent assumption on the manifold relationship of the cells in the mesh.) In some cases, either because the mesh is non-manifold, because we wish to explicitly store information with the faces and edges of the mesh, or because performance requirements demand that boundaries are explicitly represented (the set intersection does not need to be performed); then Mesh can be further extended by adding explicit boundary assignments.

Usage
Mesh has three template parameters. The first is the pixel type, or the type of data stored (optionally) with points, cells, and/or boundaries. The second is the geometric dimension of the points defining the mesh. This also limits the maximum topological dimension of the cells that can be inserted. The third template parameter is the "MeshTraits" structure controlling type information for the mesh. Most users will be happy with the defaults, and will not have to worry about this third argument.

One of the most important parts of using this mesh is how to create cells to insert into it. The cells for the mesh take two template parameters. The first is the pixel type, and should correspond exactly to that type given to the mesh. The second is a "CellTraits" which holds a sub-set of the "MeshTraits" structure definitions, and is also a member of them. Any cell which is to be inserted to a mesh should have MeshTraits::CellTraits as its second template parameter.

Template parameters for Mesh:

TPixelType = The type stored as data for an entity (cell, point, or boundary).

TMeshTraits = Type information structure for the mesh.

References
No reference information is available.
Examples:
Examples/DataRepresentation/Mesh/AutomaticMesh.cxx, Examples/DataRepresentation/Mesh/Mesh1.cxx, Examples/DataRepresentation/Mesh/Mesh2.cxx, Examples/DataRepresentation/Mesh/Mesh3.cxx, Examples/DataRepresentation/Mesh/MeshCellsIteration.cxx, Examples/DataRepresentation/Mesh/MeshCellVisitor.cxx, Examples/DataRepresentation/Mesh/MeshCellVisitor2.cxx, Examples/DataRepresentation/Mesh/MeshKComplex.cxx, Examples/DataRepresentation/Mesh/MeshPolyLine.cxx, Examples/DataRepresentation/Mesh/MeshTraits.cxx, Examples/Filtering/SurfaceExtraction.cxx, Examples/SpatialObjects/MeshSpatialObject.cxx, SphinxExamples/src/Core/Common/ReadAPointSet/Code.cxx, SphinxExamples/src/Core/Mesh/ConvertTriangleMeshToBinaryImage/Code.cxx, SphinxExamples/src/Core/Mesh/ExtractIsoSurface/Code.cxx, SphinxExamples/src/Core/Mesh/TranslateOneMesh/Code.cxx, SphinxExamples/src/IO/Mesh/ReadMesh/Code.cxx, WikiExamples/Meshes/AddPointsAndEdges.cxx, WikiExamples/Meshes/ConvertToVTK.cxx, WikiExamples/Meshes/ReadWrite.cxx, WikiExamples/Meshes/WishList/VTKPolyDataWriter.cxx, and WikiExamples/PointSet/ReadPointSet.cxx.

Definition at line 108 of file itkMesh.h.

Classes

class  BoundaryAssignmentIdentifier
 

Public Types

typedef MapContainer
< BoundaryAssignmentIdentifier,
CellIdentifier
BoundaryAssignmentsContainer
 
typedef
BoundaryAssignmentsContainer::Pointer 
BoundaryAssignmentsContainerPointer
 
typedef std::vector
< BoundaryAssignmentsContainerPointer
BoundaryAssignmentsContainerVector
 
typedef BoundingBoxType::Pointer BoundingBoxPointer
 
typedef BoundingBox
< PointIdentifier,
itkGetStaticConstMacro(PointDimension),
CoordRepType, PointsContainer
BoundingBoxType
 
typedef CellType::CellAutoPointer CellAutoPointer
 
typedef
MeshTraits::CellDataContainer 
CellDataContainer
 
typedef
CellDataContainer::ConstPointer 
CellDataContainerConstPointer
 
typedef
CellDataContainer::ConstIterator 
CellDataContainerIterator
 
typedef CellDataContainer::Pointer CellDataContainerPointer
 
typedef CellFeatureIdentifier CellFeatureCount
 
typedef
MeshTraits::CellFeatureIdentifier 
CellFeatureIdentifier
 
typedef MeshTraits::CellIdentifier CellIdentifier
 
typedef
MeshTraits::CellLinksContainer 
CellLinksContainer
 
typedef
CellLinksContainer::ConstPointer 
CellLinksContainerConstPointer
 
typedef
CellLinksContainer::ConstIterator 
CellLinksContainerIterator
 
typedef CellLinksContainer::Pointer CellLinksContainerPointer
 
typedef CellType::MultiVisitor CellMultiVisitorType
 
typedef MeshTraits::CellPixelType CellPixelType
 
enum  CellsAllocationMethodType {
  CellsAllocationMethodUndefined,
  CellsAllocatedAsStaticArray,
  CellsAllocatedAsADynamicArray,
  CellsAllocatedDynamicallyCellByCell
}
 
typedef MeshTraits::CellsContainer CellsContainer
 
typedef
CellsContainer::ConstIterator 
CellsContainerConstIterator
 
typedef
CellsContainer::ConstPointer 
CellsContainerConstPointer
 
typedef CellsContainer::Iterator CellsContainerIterator
 
typedef CellsContainer::Pointer CellsContainerPointer
 
typedef MeshTraits::CellTraits CellTraits
 
typedef CellInterface
< CellPixelType, CellTraits
CellType
 
typedef SmartPointer< const SelfConstPointer
 
typedef MeshTraits::CoordRepType CoordRepType
 
typedef
MeshTraits::InterpolationWeightType 
InterpolationWeightType
 
typedef TMeshTraits MeshTraits
 
typedef MeshTraits::PixelType PixelType
 
typedef
MeshTraits::PointCellLinksContainer 
PointCellLinksContainer
 
typedef
PointCellLinksContainer::const_iterator 
PointCellLinksContainerIterator
 
typedef
MeshTraits::PointDataContainer 
PointDataContainer
 
typedef
PointDataContainer::ConstIterator 
PointDataContainerIterator
 
typedef PointDataContainer::Pointer PointDataContainerPointer
 
typedef SmartPointer< SelfPointer
 
typedef MeshTraits::PointHashType PointHashType
 
typedef MeshTraits::PointIdentifier PointIdentifier
 
typedef MeshTraits::PointsContainer PointsContainer
 
typedef
PointsContainer::ConstIterator 
PointsContainerConstIterator
 
typedef PointsContainer::Iterator PointsContainerIterator
 
typedef PointsContainer::Pointer PointsContainerPointer
 
typedef MeshTraits::PointType PointType
 
typedef Superclass::RegionType RegionType
 
typedef Mesh Self
 
typedef PointSet< TPixelType,
VDimension, TMeshTraits > 
Superclass
 
- Public Types inherited from itk::PointSet< TPixelType, VDimension, TMeshTraits >
typedef SmartPointer< const SelfConstPointer
 
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< SelfPointer
 
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 SelfConstPointer
 
typedef std::string DataObjectIdentifierType
 
typedef std::vector< Pointer >
::size_type 
DataObjectPointerArraySizeType
 
typedef SmartPointer< SelfPointer
 
typedef DataObject Self
 
typedef Object Superclass
 
- Public Types inherited from itk::Object
typedef SmartPointer< const SelfConstPointer
 
typedef SmartPointer< SelfPointer
 
typedef Object Self
 
typedef LightObject Superclass
 
- Public Types inherited from itk::LightObject
typedef SmartPointer< const SelfConstPointer
 
typedef SmartPointer< SelfPointer
 
typedef LightObject Self
 

Public Member Functions

virtual void Accept (CellMultiVisitorType *mv) const
 
void BuildCellLinks () const
 
virtual void CopyInformation (const DataObject *data) override
 
virtual ::itk::LightObject::Pointer CreateAnother () const
 
bool GetAssignedCellBoundaryIfOneExists (int dimension, CellIdentifier, CellFeatureIdentifier, CellAutoPointer &) const
 
bool GetBoundaryAssignment (int dimension, CellIdentifier cellId, CellFeatureIdentifier featureId, CellIdentifier *boundaryId) const
 
BoundaryAssignmentsContainerPointer GetBoundaryAssignments (int dimension)
 
const
BoundaryAssignmentsContainerPointer 
GetBoundaryAssignments (int dimension) const
 
const BoundingBoxTypeGetBoundingBox () const
 
bool GetCell (CellIdentifier, CellAutoPointer &) const
 
bool GetCellBoundaryFeature (int dimension, CellIdentifier, CellFeatureIdentifier, CellAutoPointer &) const
 
CellIdentifier GetCellBoundaryFeatureNeighbors (int dimension, CellIdentifier, CellFeatureIdentifier, std::set< CellIdentifier > *cellSet)
 
CellDataContainerGetCellData ()
 
const CellDataContainerGetCellData () const
 
CellLinksContainerGetCellLinks ()
 
const CellLinksContainerGetCellLinks () const
 
CellIdentifier GetCellNeighbors (CellIdentifier cellId, std::set< CellIdentifier > *cellSet)
 
CellsContainerGetCells ()
 
const CellsContainerGetCells () const
 
virtual const char * GetNameOfClass () const
 
CellFeatureCount GetNumberOfCellBoundaryFeatures (int dimension, CellIdentifier) const
 
CellIdentifier GetNumberOfCells () const
 
virtual void Graft (const DataObject *data) override
 
virtual void Initialize () override
 
void PassStructure (Self *inputMesh)
 
bool RemoveBoundaryAssignment (int dimension, CellIdentifier cellId, CellFeatureIdentifier featureId)
 
void SetBoundaryAssignment (int dimension, CellIdentifier cellId, CellFeatureIdentifier featureId, CellIdentifier boundaryId)
 
void SetBoundaryAssignments (int dimension, BoundaryAssignmentsContainer *)
 
void SetCell (CellIdentifier, CellAutoPointer &)
 
void SetCellData (CellDataContainer *)
 
void SetCellLinks (CellLinksContainer *)
 
void SetCells (CellsContainer *)
 
void SetCellData (CellIdentifier, CellPixelType)
 
bool GetCellData (CellIdentifier, CellPixelType *) const
 
virtual void SetCellsAllocationMethod (CellsAllocationMethodType _arg)
 
virtual const
CellsAllocationMethodType
GetCellsAllocationMethod () const
 
- Public Member Functions inherited from itk::PointSet< TPixelType, VDimension, TMeshTraits >
virtual RegionType GetBufferedRegion () const
 
virtual RegionType GetMaximumNumberOfRegions () const
 
PointIdentifier GetNumberOfPoints () const
 
PointDataContainerGetPointData ()
 
const PointDataContainerGetPointData () const
 
PointsContainerGetPoints ()
 
const PointsContainerGetPoints () const
 
virtual RegionType GetRequestedRegion () const
 
void PassStructure (Self *inputPointSet)
 
virtual bool RequestedRegionIsOutsideOfTheBufferedRegion () override
 
virtual void SetBufferedRegion (const RegionType &region)
 
void SetPointData (PointDataContainer *)
 
void SetPoints (PointsContainer *)
 
virtual void SetRequestedRegion (const DataObject *data) override
 
virtual void SetRequestedRegion (const RegionType &region)
 
virtual void SetRequestedRegionToLargestPossibleRegion () override
 
virtual void UpdateOutputInformation () override
 
virtual bool VerifyRequestedRegion () override
 
void SetPoint (PointIdentifier, PointType)
 
bool GetPoint (PointIdentifier, PointType *) const
 
PointType GetPoint (PointIdentifier) const
 
void SetPointData (PointIdentifier, PixelType)
 
bool GetPointData (PointIdentifier, PixelType *) const
 
- Public Member Functions inherited from itk::DataObject
virtual void DataHasBeenGenerated ()
 
void DisconnectPipeline ()
 
bool GetDataReleased () const
 
virtual const bool & GetReleaseDataFlag () const
 
SmartPointerForwardReference
< ProcessObject
GetSource () const
 
DataObjectPointerArraySizeType GetSourceOutputIndex () const
 
const DataObjectIdentifierTypeGetSourceOutputName () const
 
virtual ModifiedTimeType GetUpdateMTime () const
 
virtual void PrepareForNewData ()
 
virtual void PropagateRequestedRegion ()
 
void ReleaseData ()
 
virtual void ReleaseDataFlagOff ()
 
virtual void ReleaseDataFlagOn ()
 
virtual void ResetPipeline ()
 
void SetReleaseDataFlag (bool flag)
 
bool ShouldIReleaseData () const
 
virtual void Update ()
 
virtual void UpdateOutputData ()
 
void SetPipelineMTime (ModifiedTimeType time)
 
virtual const ModifiedTimeTypeGetPipelineMTime () const
 
virtual void SetRealTimeStamp (RealTimeStamp _arg)
 
virtual const RealTimeStampGetRealTimeStamp () const
 
- Public Member Functions inherited from itk::Object
unsigned long AddObserver (const EventObject &event, Command *)
 
unsigned long AddObserver (const EventObject &event, Command *) const
 
virtual void DebugOff () const
 
virtual void DebugOn () const
 
CommandGetCommand (unsigned long tag)
 
bool GetDebug () const
 
MetaDataDictionaryGetMetaDataDictionary ()
 
const MetaDataDictionaryGetMetaDataDictionary () const
 
virtual ModifiedTimeType GetMTime () const
 
virtual const TimeStampGetTimeStamp () const
 
bool HasObserver (const EventObject &event) const
 
void InvokeEvent (const EventObject &)
 
void InvokeEvent (const EventObject &) const
 
virtual void Modified () const
 
virtual void Register () const override
 
void RemoveAllObservers ()
 
void RemoveObserver (unsigned long tag)
 
void SetDebug (bool debugFlag) const
 
void SetMetaDataDictionary (const MetaDataDictionary &rhs)
 
virtual void SetReferenceCount (int) override
 
virtual void UnRegister () const noexceptoverride
 
virtual void SetObjectName (std::string _arg)
 
virtual const std::string & GetObjectName () const
 
- Public Member Functions inherited from itk::LightObject
virtual void Delete ()
 
virtual int GetReferenceCount () const
 
 itkCloneMacro (Self)
 
void Print (std::ostream &os, Indent indent=0) const
 

Static Public Member Functions

static Pointer New ()
 
- Static Public Member Functions inherited from itk::PointSet< TPixelType, VDimension, TMeshTraits >
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
 
static const unsigned int MaxTopologicalDimension = TMeshTraits::MaxTopologicalDimension
 
- Static Public Attributes inherited from itk::PointSet< TPixelType, VDimension, TMeshTraits >
static const unsigned int PointDimension = TMeshTraits::PointDimension
 

Protected Member Functions

void ReleaseCellsMemory ()
 
 Mesh ()
 
 ~Mesh ()
 
void PrintSelf (std::ostream &os, Indent indent) const override
 
- Protected Member Functions inherited from itk::PointSet< TPixelType, VDimension, TMeshTraits >
 PointSet ()
 
 ~PointSet ()
 
- Protected Member Functions inherited from itk::DataObject
 DataObject ()
 
virtual void PropagateResetPipeline ()
 
 ~DataObject ()
 
- Protected Member Functions inherited from itk::Object
 Object ()
 
bool PrintObservers (std::ostream &os, Indent indent) const
 
virtual void SetTimeStamp (const TimeStamp &time)
 
virtual ~Object ()
 
- 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

BoundaryAssignmentsContainerVector m_BoundaryAssignmentsContainers
 
BoundingBoxPointer m_BoundingBox
 
CellDataContainerPointer m_CellDataContainer
 
CellLinksContainerPointer m_CellLinksContainer
 
CellsContainerPointer m_CellsContainer
 
- Protected Attributes inherited from itk::PointSet< TPixelType, VDimension, TMeshTraits >
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
 

Private Member Functions

 Mesh (const Self &)
 
void operator= (const Self &)
 

Private Attributes

CellsAllocationMethodType m_CellsAllocationMethod
 

Member Typedef Documentation

template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
typedef MapContainer< BoundaryAssignmentIdentifier, CellIdentifier > itk::Mesh< TPixelType, VDimension, TMeshTraits >::BoundaryAssignmentsContainer

Used for manipulating boundaries and boundary attributes. A BoundaryAssignmentsContainerVector is indexed by dimension. For each dimension, it points to a MapContainer indexed by a BoundaryAssignmentIdentifier, which encapsulates a cell identifier and a boundary feature identifier. The boundary feature identifier distinguishes different boundary features for a given cell at a given dimension.

Definition at line 250 of file itkMesh.h.

template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
typedef BoundaryAssignmentsContainer::Pointer itk::Mesh< TPixelType, VDimension, TMeshTraits >::BoundaryAssignmentsContainerPointer

Definition at line 252 of file itkMesh.h.

template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
typedef std::vector< BoundaryAssignmentsContainerPointer > itk::Mesh< TPixelType, VDimension, TMeshTraits >::BoundaryAssignmentsContainerVector

Definition at line 254 of file itkMesh.h.

template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
typedef BoundingBoxType::Pointer itk::Mesh< TPixelType, VDimension, TMeshTraits >::BoundingBoxPointer

Definition at line 172 of file itkMesh.h.

template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
typedef BoundingBox< PointIdentifier, itkGetStaticConstMacro(PointDimension), CoordRepType, PointsContainer > itk::Mesh< TPixelType, VDimension, TMeshTraits >::BoundingBoxType

Used to support geometric operations on the toolkit.

Definition at line 162 of file itkMesh.h.

template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
typedef CellType::CellAutoPointer itk::Mesh< TPixelType, VDimension, TMeshTraits >::CellAutoPointer

Definition at line 190 of file itkMesh.h.

template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
typedef MeshTraits::CellDataContainer itk::Mesh< TPixelType, VDimension, TMeshTraits >::CellDataContainer

Definition at line 158 of file itkMesh.h.

template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
typedef CellDataContainer::ConstPointer itk::Mesh< TPixelType, VDimension, TMeshTraits >::CellDataContainerConstPointer

Definition at line 171 of file itkMesh.h.

template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
typedef CellDataContainer::ConstIterator itk::Mesh< TPixelType, VDimension, TMeshTraits >::CellDataContainerIterator

Definition at line 182 of file itkMesh.h.

template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
typedef CellDataContainer::Pointer itk::Mesh< TPixelType, VDimension, TMeshTraits >::CellDataContainerPointer

Definition at line 170 of file itkMesh.h.

template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
typedef CellFeatureIdentifier itk::Mesh< TPixelType, VDimension, TMeshTraits >::CellFeatureCount

A useful rename.

Definition at line 186 of file itkMesh.h.

template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
typedef MeshTraits::CellFeatureIdentifier itk::Mesh< TPixelType, VDimension, TMeshTraits >::CellFeatureIdentifier

Definition at line 149 of file itkMesh.h.

template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
typedef MeshTraits::CellIdentifier itk::Mesh< TPixelType, VDimension, TMeshTraits >::CellIdentifier

Definition at line 148 of file itkMesh.h.

template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
typedef MeshTraits::CellLinksContainer itk::Mesh< TPixelType, VDimension, TMeshTraits >::CellLinksContainer

Definition at line 156 of file itkMesh.h.

template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
typedef CellLinksContainer::ConstPointer itk::Mesh< TPixelType, VDimension, TMeshTraits >::CellLinksContainerConstPointer

Definition at line 173 of file itkMesh.h.

template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
typedef CellLinksContainer::ConstIterator itk::Mesh< TPixelType, VDimension, TMeshTraits >::CellLinksContainerIterator

Definition at line 180 of file itkMesh.h.

template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
typedef CellLinksContainer::Pointer itk::Mesh< TPixelType, VDimension, TMeshTraits >::CellLinksContainerPointer

Definition at line 168 of file itkMesh.h.

template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
typedef CellType::MultiVisitor itk::Mesh< TPixelType, VDimension, TMeshTraits >::CellMultiVisitorType

Visiting cells.

Definition at line 193 of file itkMesh.h.

template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
typedef MeshTraits::CellPixelType itk::Mesh< TPixelType, VDimension, TMeshTraits >::CellPixelType

Definition at line 128 of file itkMesh.h.

template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
typedef MeshTraits::CellsContainer itk::Mesh< TPixelType, VDimension, TMeshTraits >::CellsContainer

Definition at line 154 of file itkMesh.h.

template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
typedef CellsContainer::ConstIterator itk::Mesh< TPixelType, VDimension, TMeshTraits >::CellsContainerConstIterator

Definition at line 178 of file itkMesh.h.

template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
typedef CellsContainer::ConstPointer itk::Mesh< TPixelType, VDimension, TMeshTraits >::CellsContainerConstPointer

Definition at line 167 of file itkMesh.h.

template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
typedef CellsContainer::Iterator itk::Mesh< TPixelType, VDimension, TMeshTraits >::CellsContainerIterator

Definition at line 179 of file itkMesh.h.

template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
typedef CellsContainer::Pointer itk::Mesh< TPixelType, VDimension, TMeshTraits >::CellsContainerPointer

Definition at line 166 of file itkMesh.h.

template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
typedef MeshTraits::CellTraits itk::Mesh< TPixelType, VDimension, TMeshTraits >::CellTraits

Definition at line 153 of file itkMesh.h.

template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
typedef CellInterface< CellPixelType, CellTraits > itk::Mesh< TPixelType, VDimension, TMeshTraits >::CellType

The base cell type for cells in this mesh.

Definition at line 189 of file itkMesh.h.

template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
typedef SmartPointer< const Self > itk::Mesh< TPixelType, VDimension, TMeshTraits >::ConstPointer

Definition at line 115 of file itkMesh.h.

template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
typedef MeshTraits::CoordRepType itk::Mesh< TPixelType, VDimension, TMeshTraits >::CoordRepType

Convenient typedefs obtained from TMeshTraits template parameter.

Definition at line 145 of file itkMesh.h.

template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
typedef MeshTraits::InterpolationWeightType itk::Mesh< TPixelType, VDimension, TMeshTraits >::InterpolationWeightType

Definition at line 146 of file itkMesh.h.

template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
typedef TMeshTraits itk::Mesh< TPixelType, VDimension, TMeshTraits >::MeshTraits

Hold on to the type information specified by the template parameters.

Definition at line 123 of file itkMesh.h.

template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
typedef MeshTraits::PixelType itk::Mesh< TPixelType, VDimension, TMeshTraits >::PixelType

Definition at line 127 of file itkMesh.h.

template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
typedef MeshTraits::PointCellLinksContainer itk::Mesh< TPixelType, VDimension, TMeshTraits >::PointCellLinksContainer

Definition at line 155 of file itkMesh.h.

template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
typedef PointCellLinksContainer::const_iterator itk::Mesh< TPixelType, VDimension, TMeshTraits >::PointCellLinksContainerIterator

Definition at line 183 of file itkMesh.h.

template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
typedef MeshTraits::PointDataContainer itk::Mesh< TPixelType, VDimension, TMeshTraits >::PointDataContainer

Definition at line 157 of file itkMesh.h.

template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
typedef PointDataContainer::ConstIterator itk::Mesh< TPixelType, VDimension, TMeshTraits >::PointDataContainerIterator

Definition at line 181 of file itkMesh.h.

template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
typedef PointDataContainer::Pointer itk::Mesh< TPixelType, VDimension, TMeshTraits >::PointDataContainerPointer

Definition at line 169 of file itkMesh.h.

template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
typedef SmartPointer< Self > itk::Mesh< TPixelType, VDimension, TMeshTraits >::Pointer

Definition at line 114 of file itkMesh.h.

template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
typedef MeshTraits::PointHashType itk::Mesh< TPixelType, VDimension, TMeshTraits >::PointHashType

Definition at line 150 of file itkMesh.h.

template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
typedef MeshTraits::PointIdentifier itk::Mesh< TPixelType, VDimension, TMeshTraits >::PointIdentifier

Definition at line 147 of file itkMesh.h.

template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
typedef MeshTraits::PointsContainer itk::Mesh< TPixelType, VDimension, TMeshTraits >::PointsContainer

Definition at line 152 of file itkMesh.h.

template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
typedef PointsContainer::ConstIterator itk::Mesh< TPixelType, VDimension, TMeshTraits >::PointsContainerConstIterator

Create types that are iterators for each of the container types.

Definition at line 176 of file itkMesh.h.

template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
typedef PointsContainer::Iterator itk::Mesh< TPixelType, VDimension, TMeshTraits >::PointsContainerIterator

Definition at line 177 of file itkMesh.h.

template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
typedef PointsContainer::Pointer itk::Mesh< TPixelType, VDimension, TMeshTraits >::PointsContainerPointer

Create types that are pointers to each of the container types.

Definition at line 165 of file itkMesh.h.

template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
typedef MeshTraits::PointType itk::Mesh< TPixelType, VDimension, TMeshTraits >::PointType

Definition at line 151 of file itkMesh.h.

template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
typedef Superclass::RegionType itk::Mesh< TPixelType, VDimension, TMeshTraits >::RegionType

Definition at line 117 of file itkMesh.h.

template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
typedef Mesh itk::Mesh< TPixelType, VDimension, TMeshTraits >::Self

Standard typedefs.

Definition at line 112 of file itkMesh.h.

template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
typedef PointSet< TPixelType, VDimension, TMeshTraits > itk::Mesh< TPixelType, VDimension, TMeshTraits >::Superclass

Definition at line 113 of file itkMesh.h.

Member Enumeration Documentation

template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
enum itk::Mesh::CellsAllocationMethodType

Enum defining the possible methods used to allocate memory for the Cells

Enumerator
CellsAllocationMethodUndefined 
CellsAllocatedAsStaticArray 
CellsAllocatedAsADynamicArray 
CellsAllocatedDynamicallyCellByCell 

Definition at line 139 of file itkMesh.h.

Constructor & Destructor Documentation

template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
itk::Mesh< TPixelType, VDimension, TMeshTraits >::Mesh ( )
protected

Constructor for use by New() method.

template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
itk::Mesh< TPixelType, VDimension, TMeshTraits >::~Mesh ( )
protected

Constructor for use by New() method.

template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
itk::Mesh< TPixelType, VDimension, TMeshTraits >::Mesh ( const Self )
private

Member Function Documentation

template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
virtual void itk::Mesh< TPixelType, VDimension, TMeshTraits >::Accept ( CellMultiVisitorType mv) const
virtual

This method iterates over all the cells in the mesh and has each cell Accept the MultiVisitor. See MultiVisitor for more information. (Note, this follows the Visitor Design Pattern.)

template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
void itk::Mesh< TPixelType, VDimension, TMeshTraits >::BuildCellLinks ( ) const

Dynamically build the links from points back to their using cells. This information is stored in the cell links container, not in the points.

template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
virtual void itk::Mesh< TPixelType, VDimension, TMeshTraits >::CopyInformation ( const DataObject data)
overridevirtual

Methods for managing Mesh filters that have internal mini-pipelines

Reimplemented from itk::PointSet< TPixelType, VDimension, TMeshTraits >.

Reimplemented in itk::QuadEdgeMesh< TPixel, VDimension, TTraits >, and itk::SimplexMesh< TPixelType, VDimension, TMeshTraits >.

template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
virtual::itk::LightObject::Pointer itk::Mesh< TPixelType, VDimension, TMeshTraits >::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::PointSet< TPixelType, VDimension, TMeshTraits >.

Reimplemented in itk::SimplexMesh< TPixelType, VDimension, TMeshTraits >.

template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
bool itk::Mesh< TPixelType, VDimension, TMeshTraits >::GetAssignedCellBoundaryIfOneExists ( int  dimension,
CellIdentifier  ,
CellFeatureIdentifier  ,
CellAutoPointer  
) const

Check if there is an explicitly assigned boundary feature for the given dimension and cell- and cell-feature-identifiers. If there is, a pointer to it is given back through boundary (if boundary != ITK_NULLPTR) and true is returned. Otherwise, false is returned.

template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
bool itk::Mesh< TPixelType, VDimension, TMeshTraits >::GetBoundaryAssignment ( int  dimension,
CellIdentifier  cellId,
CellFeatureIdentifier  featureId,
CellIdentifier boundaryId 
) const

For the given cellId, get the identifier of a particular boundary feature of the given dimension. The featureId determines which boundary feature of the specified dimension is returned. For instance, if dimension is 1 and featureId is 0, then GetBoundaryAssignment finds the 0th edge of the given cell. The return value indicates whether a feature of the appropriate dimension and featureId exists. If it does not, the BoundaryIdentifier pointer is left unchanged.

template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
BoundaryAssignmentsContainerPointer itk::Mesh< TPixelType, VDimension, TMeshTraits >::GetBoundaryAssignments ( int  dimension)
template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
const BoundaryAssignmentsContainerPointer itk::Mesh< TPixelType, VDimension, TMeshTraits >::GetBoundaryAssignments ( int  dimension) const
template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
const BoundingBoxType* itk::Mesh< TPixelType, VDimension, TMeshTraits >::GetBoundingBox ( ) const

Get the bounding box of the mesh. The methods return a pointer to the user-supplied bounding box as a convenience.

template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
bool itk::Mesh< TPixelType, VDimension, TMeshTraits >::GetCell ( CellIdentifier  ,
CellAutoPointer  
) const
template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
bool itk::Mesh< TPixelType, VDimension, TMeshTraits >::GetCellBoundaryFeature ( int  dimension,
CellIdentifier  ,
CellFeatureIdentifier  ,
CellAutoPointer  
) const

Get the boundary feature of the given dimension of the given cell corresponding to the given feature identifier.

template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
CellIdentifier itk::Mesh< TPixelType, VDimension, TMeshTraits >::GetCellBoundaryFeatureNeighbors ( int  dimension,
CellIdentifier  ,
CellFeatureIdentifier  ,
std::set< CellIdentifier > *  cellSet 
)

Get the set of cells neighboring the given cell across the given boundary feature. Returns the number of neighbors found. If cellSet is not ITK_NULLPTR, the set of cell pointers is filled in with identifiers of the neighboring cells.

template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
CellDataContainer* itk::Mesh< TPixelType, VDimension, TMeshTraits >::GetCellData ( )
template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
const CellDataContainer* itk::Mesh< TPixelType, VDimension, TMeshTraits >::GetCellData ( ) const
template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
bool itk::Mesh< TPixelType, VDimension, TMeshTraits >::GetCellData ( CellIdentifier  ,
CellPixelType  
) const

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

template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
CellLinksContainer* itk::Mesh< TPixelType, VDimension, TMeshTraits >::GetCellLinks ( )
template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
const CellLinksContainer* itk::Mesh< TPixelType, VDimension, TMeshTraits >::GetCellLinks ( ) const
template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
CellIdentifier itk::Mesh< TPixelType, VDimension, TMeshTraits >::GetCellNeighbors ( CellIdentifier  cellId,
std::set< CellIdentifier > *  cellSet 
)

Get the set of cells having the given cell as part of their boundary. Returns the number of neighbors found. If cellSet is not ITK_NULLPTR, the set of cell pointers is filled in with identifiers of the neighboring cells.

template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
CellsContainer* itk::Mesh< TPixelType, VDimension, TMeshTraits >::GetCells ( )
template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
const CellsContainer* itk::Mesh< TPixelType, VDimension, TMeshTraits >::GetCells ( ) const
template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
virtual const CellsAllocationMethodType& itk::Mesh< TPixelType, VDimension, TMeshTraits >::GetCellsAllocationMethod ( ) const
virtual

Set/Get the identification of the method used to allocate cells

Warning
Failure to call this method correctly will lead to memory leaks and/or segmentation faults because the cell memory will not be erased or will be erased with an improper method.
template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
virtual const char* itk::Mesh< TPixelType, VDimension, TMeshTraits >::GetNameOfClass ( ) const
virtual
template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
CellFeatureCount itk::Mesh< TPixelType, VDimension, TMeshTraits >::GetNumberOfCellBoundaryFeatures ( int  dimension,
CellIdentifier   
) const

Interface to cells.

template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
CellIdentifier itk::Mesh< TPixelType, VDimension, TMeshTraits >::GetNumberOfCells ( ) const

Mesh-level operation interface.

template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
virtual void itk::Mesh< TPixelType, VDimension, TMeshTraits >::Graft ( const DataObject )
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::PointSet< TPixelType, VDimension, TMeshTraits >.

Reimplemented in itk::QuadEdgeMesh< TPixel, VDimension, TTraits >.

template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
virtual void itk::Mesh< TPixelType, VDimension, TMeshTraits >::Initialize ( )
overridevirtual

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

Reimplemented from itk::PointSet< TPixelType, VDimension, TMeshTraits >.

Reimplemented in itk::QuadEdgeMesh< TPixel, VDimension, TTraits >.

template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
static Pointer itk::Mesh< TPixelType, VDimension, TMeshTraits >::New ( )
static

Method for creation through the object factory.

template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
void itk::Mesh< TPixelType, VDimension, TMeshTraits >::operator= ( const Self )
private
template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
void itk::Mesh< TPixelType, VDimension, TMeshTraits >::PassStructure ( Self inputMesh)
template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
void itk::Mesh< TPixelType, VDimension, TMeshTraits >::PrintSelf ( std::ostream &  os,
Indent  indent 
) const
overrideprotectedvirtual
template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
void itk::Mesh< TPixelType, VDimension, TMeshTraits >::ReleaseCellsMemory ( )
protected

Release the memory allocated for the cells pointers. This is done based on information provided by the user through the method SetCellsAllocationMethod()

template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
bool itk::Mesh< TPixelType, VDimension, TMeshTraits >::RemoveBoundaryAssignment ( int  dimension,
CellIdentifier  cellId,
CellFeatureIdentifier  featureId 
)
template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
void itk::Mesh< TPixelType, VDimension, TMeshTraits >::SetBoundaryAssignment ( int  dimension,
CellIdentifier  cellId,
CellFeatureIdentifier  featureId,
CellIdentifier  boundaryId 
)

Explicitly assign boundaryId as a part of the boundary of cellId. The identifiers boundaryId and cellId must identify cell objects already in the mesh. The dimension of boundaryId must be specified by dimension, and a unique CellFeatureIdentifier featureId must be assigned for each distinct boundary feature of a given dimension. CellFeatureIdentifier is equivalent to IdentifierType by default, and this typedef will not typically need to be changed. The UsingCells list of boundaryId is automatically updated to include cellId.

template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
void itk::Mesh< TPixelType, VDimension, TMeshTraits >::SetBoundaryAssignments ( int  dimension,
BoundaryAssignmentsContainer  
)

Set/get the BoundaryAssignmentsContainer for a given dimension. The BoundaryAssignmentsContainer is a MapContainer indexed by a BoundaryAssignmentIdentifier, which encapsulates a cell identifier and a boundary feature identifier. The boundary feature identifier distinguishes different boundary features for a given cell at a given dimension.

template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
void itk::Mesh< TPixelType, VDimension, TMeshTraits >::SetCell ( CellIdentifier  ,
CellAutoPointer  
)

Access routines to fill the Cells container (m_CellsContainer), and get information from it. If SetCell is used to overwrite a cell currently in the mesh, it is the caller's responsibility to release the memory for the cell currently at the CellIdentifier position prior to calling SetCell.

template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
void itk::Mesh< TPixelType, VDimension, TMeshTraits >::SetCellData ( CellDataContainer )

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

template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
void itk::Mesh< TPixelType, VDimension, TMeshTraits >::SetCellData ( CellIdentifier  ,
CellPixelType   
)

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

template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
void itk::Mesh< TPixelType, VDimension, TMeshTraits >::SetCellLinks ( CellLinksContainer )

Access m_CellsLinksContainer, which contains parent cell links for each point. Since a point can be used by multiple cells, each point identifier accesses another container which holds the cell identifiers

template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
void itk::Mesh< TPixelType, VDimension, TMeshTraits >::SetCells ( CellsContainer )

Access m_CellsContainer, which holds cells used by the mesh. Individual cells are accessed through cell identifiers.

template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
virtual void itk::Mesh< TPixelType, VDimension, TMeshTraits >::SetCellsAllocationMethod ( CellsAllocationMethodType  _arg)
virtual

Set/Get the identification of the method used to allocate cells

Warning
Failure to call this method correctly will lead to memory leaks and/or segmentation faults because the cell memory will not be erased or will be erased with an improper method.

Member Data Documentation

template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
BoundaryAssignmentsContainerVector itk::Mesh< TPixelType, VDimension, TMeshTraits >::m_BoundaryAssignmentsContainers
protected

A vector of objects containing explicit cell boundary assignments. The vector is indexed by the topological dimension of the cell boundary. The container for each topological dimension holds boundary identifiers of the assigned boundaries. The containers are keyed by BoundaryAssignmentIdentifier objects (see above). The boundary identifiers can be used to access the boundaries themselves in the containers stored in the Boundaries vector. They can also be used to access the data stored by a particular boundary through the containers in the BoundaryData vector.

Definition at line 282 of file itkMesh.h.

template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
BoundingBoxPointer itk::Mesh< TPixelType, VDimension, TMeshTraits >::m_BoundingBox
protected

The bounding box (xmin,xmax, ymin,ymax, ...) of the mesh. The bounding box is used for searching, picking, display, etc.

Definition at line 459 of file itkMesh.h.

template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
CellDataContainerPointer itk::Mesh< TPixelType, VDimension, TMeshTraits >::m_CellDataContainer
protected

An object containing data associated with the mesh's cells. Optionally, this can be ITK_NULLPTR, indicating that no data are associated with the cells. The data for a cell can be accessed through its cell identifier.

Definition at line 266 of file itkMesh.h.

template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
CellLinksContainerPointer itk::Mesh< TPixelType, VDimension, TMeshTraits >::m_CellLinksContainer
mutableprotected

An object containing parent cell links for each point. Since a point can be used by multiple cells, each point identifier accesses another container which holds the cell identifiers

Definition at line 271 of file itkMesh.h.

template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
CellsAllocationMethodType itk::Mesh< TPixelType, VDimension, TMeshTraits >::m_CellsAllocationMethod
private

Definition at line 465 of file itkMesh.h.

template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
CellsContainerPointer itk::Mesh< TPixelType, VDimension, TMeshTraits >::m_CellsContainer
protected

Holds cells used by the mesh. Individual cells are accessed through cell identifiers.

Definition at line 260 of file itkMesh.h.

template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
const unsigned int itk::Mesh< TPixelType, VDimension, TMeshTraits >::MaxTopologicalDimension = TMeshTraits::MaxTopologicalDimension
static

Convenient constants obtained from TMeshTraits template parameter.

Definition at line 134 of file itkMesh.h.

template<typename TPixelType, unsigned int VDimension = 3, typename TMeshTraits = DefaultStaticMeshTraits< TPixelType, VDimension, VDimension >>
const unsigned int itk::Mesh< TPixelType, VDimension, TMeshTraits >::PointDimension = TMeshTraits::PointDimension
static

Convenient constants obtained from TMeshTraits template parameter.

Definition at line 132 of file itkMesh.h.


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