ITK  5.2.0
Insight Toolkit
Classes | Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Private Types | Private Attributes | List of all members
itk::AutomaticTopologyMeshSource< TOutputMesh > Class Template Reference

#include <itkAutomaticTopologyMeshSource.h>

+ Inheritance diagram for itk::AutomaticTopologyMeshSource< TOutputMesh >:
+ Collaboration diagram for itk::AutomaticTopologyMeshSource< TOutputMesh >:

Classes

class  IdentifierArrayEqualsFunction
 
class  IdentifierArrayHashFunction
 

Public Types

using CellAutoPointer = typename CellType::CellAutoPointer
 
using CellType = typename MeshType::CellType
 
using ConstPointer = SmartPointer< const Self >
 
using CoordinateType = typename PointType::CoordRepType
 
using HexahedronCell = ::itk::HexahedronCell< CellType >
 
using IdentifierArrayType = Array< IdentifierType >
 
using IdentifierType = ::itk::IdentifierType
 
using LineCell = ::itk::LineCell< CellType >
 
using MeshPointer = typename MeshType::Pointer
 
using MeshType = TOutputMesh
 
using Pointer = SmartPointer< Self >
 
using PointHashMap = std::unordered_map< PointType, IdentifierType, StructHashFunction< PointHashType > >
 
using PointHashType = typename MeshType::PointHashType
 
using PointType = typename MeshType::PointType
 
using QuadrilateralCell = ::itk::QuadrilateralCell< CellType >
 
using Self = AutomaticTopologyMeshSource
 
using Superclass = MeshSource< TOutputMesh >
 
using TetrahedronCell = ::itk::TetrahedronCell< CellType >
 
using TriangleCell = ::itk::TriangleCell< CellType >
 
using VertexCell = ::itk::VertexCell< CellType >
 
- Public Types inherited from itk::MeshSource< TOutputMesh >
using ConstPointer = SmartPointer< const Self >
 
using DataObjectIdentifierType = Superclass::DataObjectIdentifierType
 
using DataObjectPointer = DataObject::Pointer
 
using OutputMeshPointer = typename OutputMeshType::Pointer
 
using OutputMeshType = TOutputMesh
 
using Pointer = SmartPointer< Self >
 
using Self = MeshSource
 
using Superclass = ProcessObject
 
using DataObjectPointerArraySizeType = ProcessObject::DataObjectPointerArraySizeType
 
- Public Types inherited from itk::ProcessObject
using ConstPointer = SmartPointer< const Self >
 
using DataObjectIdentifierType = DataObject::DataObjectIdentifierType
 
using DataObjectPointer = DataObject::Pointer
 
using DataObjectPointerArray = std::vector< DataObjectPointer >
 
using DataObjectPointerArraySizeType = DataObjectPointerArray::size_type
 
using MultiThreaderType = MultiThreaderBase
 
using NameArray = std::vector< DataObjectIdentifierType >
 
using Pointer = SmartPointer< Self >
 
using Self = ProcessObject
 
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

IdentifierType AddHexahedron (const CoordinateType *p0, const CoordinateType *p1, const CoordinateType *p2, const CoordinateType *p3, const CoordinateType *p4, const CoordinateType *p5, const CoordinateType *p6, const CoordinateType *p7)
 
IdentifierType AddHexahedron (const IdentifierArrayType &pointIDs)
 
IdentifierType AddHexahedron (const PointType &p0, const PointType &p1, const PointType &p2, const PointType &p3, const PointType &p4, const PointType &p5, const PointType &p6, const PointType &p7)
 
IdentifierType AddHexahedron (IdentifierType pointId0, IdentifierType pointId1, IdentifierType pointId2, IdentifierType pointId3, IdentifierType pointId4, IdentifierType pointId5, IdentifierType pointId6, IdentifierType pointId7)
 
IdentifierType AddLine (const CoordinateType *p0, const CoordinateType *p1)
 
IdentifierType AddLine (const IdentifierArrayType &pointIDs)
 
IdentifierType AddLine (const PointType &p0, const PointType &p1)
 
IdentifierType AddLine (IdentifierType pointId0, IdentifierType pointId1)
 
IdentifierType AddPoint (const CoordinateType *p0)
 
IdentifierType AddPoint (const PointType &p0)
 
IdentifierType AddPoint (CoordinateType x0=0, CoordinateType x1=0, CoordinateType x2=0, CoordinateType x3=0, CoordinateType x4=0, CoordinateType x5=0)
 
IdentifierType AddQuadrilateral (const CoordinateType *p0, const CoordinateType *p1, const CoordinateType *p2, const CoordinateType *p3)
 
IdentifierType AddQuadrilateral (const IdentifierArrayType &pointIDs)
 
IdentifierType AddQuadrilateral (const PointType &p0, const PointType &p1, const PointType &p2, const PointType &p3)
 
IdentifierType AddQuadrilateral (IdentifierType pointId0, IdentifierType pointId1, IdentifierType pointId2, IdentifierType pointId3)
 
IdentifierType AddTetrahedron (const CoordinateType *p0, const CoordinateType *p1, const CoordinateType *p2, const CoordinateType *p3)
 
IdentifierType AddTetrahedron (const IdentifierArrayType &pointIDs)
 
IdentifierType AddTetrahedron (const PointType &p0, const PointType &p1, const PointType &p2, const PointType &p3)
 
IdentifierType AddTetrahedron (IdentifierType pointId0, IdentifierType pointId1, IdentifierType pointId2, IdentifierType pointId3)
 
IdentifierType AddTriangle (const CoordinateType *p0, const CoordinateType *p1, const CoordinateType *p2)
 
IdentifierType AddTriangle (const IdentifierArrayType &pointIDs)
 
IdentifierType AddTriangle (const PointType &p0, const PointType &p1, const PointType &p2)
 
IdentifierType AddTriangle (IdentifierType pointId0, IdentifierType pointId1, IdentifierType pointId2)
 
IdentifierType AddVertex (const CoordinateType *p0)
 
IdentifierType AddVertex (const IdentifierArrayType &pointIDs)
 
IdentifierType AddVertex (const PointType &p0)
 
IdentifierType AddVertex (IdentifierType pointId0)
 
virtual ::itk::LightObject::Pointer CreateAnother () const
 
virtual const char * GetNameOfClass () const
 
- Public Member Functions inherited from itk::MeshSource< TOutputMesh >
virtual ::itk::LightObject::Pointer CreateAnother () const
 
OutputMeshTypeGetOutput ()
 
OutputMeshTypeGetOutput (unsigned int idx)
 
void SetOutput (TOutputMesh *output)
 
virtual void GraftOutput (DataObject *graft)
 
virtual void GraftOutput (const DataObjectIdentifierType &key, DataObject *graft)
 
virtual void GraftNthOutput (unsigned int idx, DataObject *graft)
 
DataObjectPointer MakeOutput (DataObjectPointerArraySizeType idx) override
 
- Public Member Functions inherited from itk::ProcessObject
virtual void AbortGenerateDataOff ()
 
virtual void AbortGenerateDataOn ()
 
virtual void EnlargeOutputRequestedRegion (DataObject *)
 
virtual const bool & GetAbortGenerateData () const
 
DataObjectPointerArray GetIndexedInputs ()
 
DataObjectPointerArray GetIndexedOutputs ()
 
NameArray GetInputNames () const
 
DataObjectPointerArray GetInputs ()
 
DataObjectPointerArraySizeType GetNumberOfIndexedInputs () const
 
DataObjectPointerArraySizeType GetNumberOfIndexedOutputs () const
 
DataObjectPointerArraySizeType GetNumberOfInputs () const
 
DataObjectPointerArraySizeType GetNumberOfOutputs () const
 
virtual DataObjectPointerArraySizeType GetNumberOfValidRequiredInputs () const
 
NameArray GetOutputNames () const
 
DataObjectPointerArray GetOutputs ()
 
virtual float GetProgress () const
 
NameArray GetRequiredInputNames () const
 
bool HasInput (const DataObjectIdentifierType &key) const
 
bool HasOutput (const DataObjectIdentifierType &key) const
 
void IncrementProgress (float increment)
 
virtual DataObjectPointer MakeOutput (const DataObjectIdentifierType &)
 
virtual void PropagateRequestedRegion (DataObject *output)
 
virtual void ResetPipeline ()
 
virtual void SetAbortGenerateData (bool _arg)
 
virtual void Update ()
 
virtual void UpdateLargestPossibleRegion ()
 
virtual void UpdateOutputData (DataObject *output)
 
virtual void UpdateOutputInformation ()
 
void UpdateProgress (float progress)
 
virtual void SetReleaseDataFlag (bool val)
 
virtual bool GetReleaseDataFlag () const
 
void ReleaseDataFlagOn ()
 
void ReleaseDataFlagOff ()
 
virtual void SetReleaseDataBeforeUpdateFlag (bool _arg)
 
virtual const bool & GetReleaseDataBeforeUpdateFlag () const
 
virtual void ReleaseDataBeforeUpdateFlagOn ()
 
virtual void ReleaseDataBeforeUpdateFlagOff ()
 
virtual void SetNumberOfWorkUnits (ThreadIdType _arg)
 
virtual const ThreadIdTypeGetNumberOfWorkUnits () const
 
MultiThreaderTypeGetMultiThreader () const
 
void SetMultiThreader (MultiThreaderType *threader)
 
virtual void PrepareOutputs ()
 
- Public Member Functions inherited from itk::Object
unsigned long AddObserver (const EventObject &event, Command *)
 
unsigned long AddObserver (const EventObject &event, Command *) const
 
unsigned long AddObserver (const EventObject &event, std::function< void(const EventObject &)> function) 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
 
void Register () const override
 
void RemoveAllObservers ()
 
void RemoveObserver (unsigned long tag)
 
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::MeshSource< TOutputMesh >
static Pointer New ()
 
- 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 MaxTopologicalDimension = MeshType::MaxTopologicalDimension
 
static constexpr unsigned int PointDimension = MeshType::PointDimension
 

Protected Member Functions

 AutomaticTopologyMeshSource ()
 
void GenerateData () override
 
 ~AutomaticTopologyMeshSource () override=default
 
- Protected Member Functions inherited from itk::MeshSource< TOutputMesh >
 MeshSource ()
 
 ~MeshSource () override=default
 
void PrintSelf (std::ostream &os, Indent indent) const override
 
void GenerateInputRequestedRegion () override
 
- Protected Member Functions inherited from itk::ProcessObject
 ProcessObject ()
 
 ~ProcessObject () override
 
DataObjectGetInput (const DataObjectIdentifierType &key)
 
const DataObjectGetInput (const DataObjectIdentifierType &key) const
 
DataObjectGetInput (DataObjectPointerArraySizeType idx)
 
const DataObjectGetInput (DataObjectPointerArraySizeType idx) const
 
virtual void SetInput (const DataObjectIdentifierType &key, DataObject *input)
 
virtual void SetNthInput (DataObjectPointerArraySizeType idx, DataObject *input)
 
virtual void AddInput (DataObject *input)
 
virtual void PushBackInput (const DataObject *input)
 
virtual void PopBackInput ()
 
virtual void PushFrontInput (const DataObject *input)
 
virtual void PopFrontInput ()
 
virtual void RemoveInput (const DataObjectIdentifierType &key)
 
virtual void RemoveInput (DataObjectPointerArraySizeType)
 
DataObjectGetPrimaryInput ()
 
const DataObjectGetPrimaryInput () const
 
virtual void SetPrimaryInputName (const DataObjectIdentifierType &key)
 
virtual const char * GetPrimaryInputName () const
 
virtual void SetPrimaryInput (DataObject *object)
 
void SetNumberOfIndexedInputs (DataObjectPointerArraySizeType num)
 
virtual void SetNumberOfRequiredInputs (DataObjectPointerArraySizeType)
 
virtual const DataObjectPointerArraySizeTypeGetNumberOfRequiredInputs () const
 
bool RemoveRequiredInputName (const DataObjectIdentifierType &)
 
bool IsRequiredInputName (const DataObjectIdentifierType &) const
 
void SetRequiredInputNames (const NameArray &)
 
bool AddRequiredInputName (const DataObjectIdentifierType &)
 
bool AddRequiredInputName (const DataObjectIdentifierType &, DataObjectPointerArraySizeType idx)
 
void AddOptionalInputName (const DataObjectIdentifierType &)
 
void AddOptionalInputName (const DataObjectIdentifierType &, DataObjectPointerArraySizeType idx)
 
DataObjectGetOutput (const DataObjectIdentifierType &key)
 
const DataObjectGetOutput (const DataObjectIdentifierType &key) const
 
virtual void SetPrimaryOutputName (const DataObjectIdentifierType &key)
 
virtual const char * GetPrimaryOutputName () const
 
DataObjectGetOutput (DataObjectPointerArraySizeType i)
 
const DataObjectGetOutput (DataObjectPointerArraySizeType i) const
 
virtual void SetOutput (const DataObjectIdentifierType &name, DataObject *output)
 
virtual void RemoveOutput (const DataObjectIdentifierType &key)
 
DataObjectGetPrimaryOutput ()
 
const DataObjectGetPrimaryOutput () const
 
virtual void SetPrimaryOutput (DataObject *object)
 
virtual void SetNthOutput (DataObjectPointerArraySizeType idx, DataObject *output)
 
virtual void AddOutput (DataObject *output)
 
virtual void RemoveOutput (DataObjectPointerArraySizeType idx)
 
virtual void SetNumberOfRequiredOutputs (DataObjectPointerArraySizeType _arg)
 
virtual const DataObjectPointerArraySizeTypeGetNumberOfRequiredOutputs () const
 
void SetNumberOfIndexedOutputs (DataObjectPointerArraySizeType num)
 
DataObjectIdentifierType MakeNameFromInputIndex (DataObjectPointerArraySizeType idx) const
 
DataObjectIdentifierType MakeNameFromOutputIndex (DataObjectPointerArraySizeType idx) const
 
DataObjectPointerArraySizeType MakeIndexFromInputName (const DataObjectIdentifierType &name) const
 
DataObjectPointerArraySizeType MakeIndexFromOutputName (const DataObjectIdentifierType &name) const
 
bool IsIndexedInputName (const DataObjectIdentifierType &) const
 
bool IsIndexedOutputName (const DataObjectIdentifierType &) const
 
virtual void VerifyPreconditions () ITKv5_CONST
 
virtual void VerifyInputInformation () ITKv5_CONST
 
virtual void GenerateOutputRequestedRegion (DataObject *output)
 
virtual void GenerateOutputInformation ()
 
virtual void PropagateResetPipeline ()
 
virtual void ReleaseInputs ()
 
virtual void CacheInputReleaseDataFlags ()
 
virtual void RestoreInputReleaseDataFlags ()
 
virtual bool GetThreaderUpdateProgress () const
 
virtual void ThreaderUpdateProgressOn ()
 
virtual void ThreaderUpdateProgressOff ()
 
virtual void SetThreaderUpdateProgress (bool arg)
 
- Protected Member Functions inherited from itk::Object
 Object ()
 
 ~Object () override
 
bool PrintObservers (std::ostream &os, Indent indent) const
 
virtual void SetTimeStamp (const TimeStamp &timeStamp)
 
- 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 ()
 

Private Types

using CellHashMap = std::unordered_map< Array< IdentifierType >, IdentifierType, IdentifierArrayHashFunction, IdentifierArrayEqualsFunction >
 

Private Attributes

CellHashMap m_CellsHashTable
 
MeshPointer m_OutputMesh
 
PointHashMap m_PointsHashTable
 

Additional Inherited Members

- Static Protected Member Functions inherited from itk::ProcessObject
static constexpr float progressFixedToFloat (uint32_t fixed)
 
static uint32_t progressFloatToFixed (float f)
 
- Protected Attributes inherited from itk::ProcessObject
bool m_Updating
 
TimeStamp m_OutputInformationMTime
 
- Protected Attributes inherited from itk::LightObject
std::atomic< int > m_ReferenceCount
 

Detailed Description

template<typename TOutputMesh>
class itk::AutomaticTopologyMeshSource< TOutputMesh >

Convenience class for generating meshes.

This generates an N-dimensional mesh consisting of some combination of vertices, line segments, triangles, quadrilaterals, tetrahedra, and hexahedra. Identifiers for the cells are automatically added, and topological connectivity is automatically computed. When a cell is added, all of its boundary features are determined and added as well.

The main methods are of the form AddThing, where Thing can be Point, Vertex, Triangle, Quadrilateral, Tetrahedron, or Hexahedron. Each of these methods has several overloaded forms, permitting multiple ways to specify the object being added. When called, each of these methods first checks to see if the object has already been added. If it has not, then a new identifier is generated (the smallest one so far unused), the object is added with that identifier, and the ID is returned. If the object has already been added, then the ID it already has is returned and nothing else is done.

When a cell is added, all of its boundary elements are also added, and boundary assignments are set. A cell can be specified using IDs of points already added, or using Point objects that may or may not already be in the mesh. If a cell is specified using Point objects, then the points are added to the mesh if necessary.

The different ways of specifying a cell are

For meshes generated using this filter, only one cell can be added for any given set of vertices. If a, b, c, and d are identifiers for four points in R^3, then (a, b, c, d) and (a, c, d, b) determine two different quadrilaterals (at least one of which is either degenerate or nonplanar). If you call

AddQuadrilateral(a, b, c, d);
AddQuadrilateral(a, c, d, b);

then only the first quadrilateral will actually be added.

To add the topological information to an already constructed mesh (for efficiency of traversal), use this class to generate a copy of the original mesh.

Example: The following code generates a mesh consisting of two triangles sharing an edge.

MeshSourceType::Pointer meshSource = MeshSourceType::New();
meshSource->AddTriangle(
meshSource->AddPoint(0, 0, 0),
meshSource->AddPoint(1, 0, 0),
meshSource->AddPoint(0, 1, 0) );
meshSource->AddTriangle(
meshSource->AddPoint(0, 0, 0),
meshSource->AddPoint(1, 0, 0),
meshSource->AddPoint(0, 0, 1) );

This class inherits from itk::MeshSource so it fits conveniently into a pipeline, but GetOutput() is always valid after every Add[Something]() call, and Update() is a no-op. It is not thread safe.

Examples
Examples/DataRepresentation/Mesh/AutomaticMesh.cxx.

Definition at line 111 of file itkAutomaticTopologyMeshSource.h.

Member Typedef Documentation

◆ CellAutoPointer

template<typename TOutputMesh >
using itk::AutomaticTopologyMeshSource< TOutputMesh >::CellAutoPointer = typename CellType::CellAutoPointer

Definition at line 129 of file itkAutomaticTopologyMeshSource.h.

◆ CellHashMap

template<typename TOutputMesh >
using itk::AutomaticTopologyMeshSource< TOutputMesh >::CellHashMap = std:: unordered_map<Array<IdentifierType>, IdentifierType, IdentifierArrayHashFunction, IdentifierArrayEqualsFunction>
private

Definition at line 413 of file itkAutomaticTopologyMeshSource.h.

◆ CellType

template<typename TOutputMesh >
using itk::AutomaticTopologyMeshSource< TOutputMesh >::CellType = typename MeshType::CellType

Definition at line 126 of file itkAutomaticTopologyMeshSource.h.

◆ ConstPointer

template<typename TOutputMesh >
using itk::AutomaticTopologyMeshSource< TOutputMesh >::ConstPointer = SmartPointer<const Self>

Definition at line 120 of file itkAutomaticTopologyMeshSource.h.

◆ CoordinateType

template<typename TOutputMesh >
using itk::AutomaticTopologyMeshSource< TOutputMesh >::CoordinateType = typename PointType::CoordRepType

Definition at line 128 of file itkAutomaticTopologyMeshSource.h.

◆ HexahedronCell

template<typename TOutputMesh >
using itk::AutomaticTopologyMeshSource< TOutputMesh >::HexahedronCell = ::itk::HexahedronCell<CellType>

Definition at line 137 of file itkAutomaticTopologyMeshSource.h.

◆ IdentifierArrayType

template<typename TOutputMesh >
using itk::AutomaticTopologyMeshSource< TOutputMesh >::IdentifierArrayType = Array<IdentifierType>

Array of IdentifierType objects used to specify cells.

Definition at line 144 of file itkAutomaticTopologyMeshSource.h.

◆ IdentifierType

template<typename TOutputMesh >
using itk::AutomaticTopologyMeshSource< TOutputMesh >::IdentifierType = ::itk::IdentifierType

This class requires that the mesh being built use itk::IdentifierType as the identifier type for all its elements.

Definition at line 141 of file itkAutomaticTopologyMeshSource.h.

◆ LineCell

template<typename TOutputMesh >
using itk::AutomaticTopologyMeshSource< TOutputMesh >::LineCell = ::itk::LineCell<CellType>

Definition at line 133 of file itkAutomaticTopologyMeshSource.h.

◆ MeshPointer

template<typename TOutputMesh >
using itk::AutomaticTopologyMeshSource< TOutputMesh >::MeshPointer = typename MeshType::Pointer

Definition at line 127 of file itkAutomaticTopologyMeshSource.h.

◆ MeshType

template<typename TOutputMesh >
using itk::AutomaticTopologyMeshSource< TOutputMesh >::MeshType = TOutputMesh

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

Definition at line 123 of file itkAutomaticTopologyMeshSource.h.

◆ Pointer

template<typename TOutputMesh >
using itk::AutomaticTopologyMeshSource< TOutputMesh >::Pointer = SmartPointer<Self>

Definition at line 119 of file itkAutomaticTopologyMeshSource.h.

◆ PointHashMap

template<typename TOutputMesh >
using itk::AutomaticTopologyMeshSource< TOutputMesh >::PointHashMap = std::unordered_map<PointType, IdentifierType, StructHashFunction<PointHashType> >

hash_map type alias.

Definition at line 148 of file itkAutomaticTopologyMeshSource.h.

◆ PointHashType

template<typename TOutputMesh >
using itk::AutomaticTopologyMeshSource< TOutputMesh >::PointHashType = typename MeshType::PointHashType

Definition at line 124 of file itkAutomaticTopologyMeshSource.h.

◆ PointType

template<typename TOutputMesh >
using itk::AutomaticTopologyMeshSource< TOutputMesh >::PointType = typename MeshType::PointType

Definition at line 125 of file itkAutomaticTopologyMeshSource.h.

◆ QuadrilateralCell

template<typename TOutputMesh >
using itk::AutomaticTopologyMeshSource< TOutputMesh >::QuadrilateralCell = ::itk::QuadrilateralCell<CellType>

Definition at line 135 of file itkAutomaticTopologyMeshSource.h.

◆ Self

template<typename TOutputMesh >
using itk::AutomaticTopologyMeshSource< TOutputMesh >::Self = AutomaticTopologyMeshSource

Standard "Self" type alias.

Definition at line 117 of file itkAutomaticTopologyMeshSource.h.

◆ Superclass

template<typename TOutputMesh >
using itk::AutomaticTopologyMeshSource< TOutputMesh >::Superclass = MeshSource<TOutputMesh>

Definition at line 118 of file itkAutomaticTopologyMeshSource.h.

◆ TetrahedronCell

template<typename TOutputMesh >
using itk::AutomaticTopologyMeshSource< TOutputMesh >::TetrahedronCell = ::itk::TetrahedronCell<CellType>

Definition at line 136 of file itkAutomaticTopologyMeshSource.h.

◆ TriangleCell

template<typename TOutputMesh >
using itk::AutomaticTopologyMeshSource< TOutputMesh >::TriangleCell = ::itk::TriangleCell<CellType>

Definition at line 134 of file itkAutomaticTopologyMeshSource.h.

◆ VertexCell

template<typename TOutputMesh >
using itk::AutomaticTopologyMeshSource< TOutputMesh >::VertexCell = ::itk::VertexCell<CellType>

Different kinds of cells.

Definition at line 132 of file itkAutomaticTopologyMeshSource.h.

Constructor & Destructor Documentation

◆ AutomaticTopologyMeshSource()

template<typename TOutputMesh >
itk::AutomaticTopologyMeshSource< TOutputMesh >::AutomaticTopologyMeshSource ( )
protected

◆ ~AutomaticTopologyMeshSource()

template<typename TOutputMesh >
itk::AutomaticTopologyMeshSource< TOutputMesh >::~AutomaticTopologyMeshSource ( )
overrideprotecteddefault

Member Function Documentation

◆ AddHexahedron() [1/4]

template<typename TOutputMesh >
IdentifierType itk::AutomaticTopologyMeshSource< TOutputMesh >::AddHexahedron ( const CoordinateType p0,
const CoordinateType p1,
const CoordinateType p2,
const CoordinateType p3,
const CoordinateType p4,
const CoordinateType p5,
const CoordinateType p6,
const CoordinateType p7 
)

◆ AddHexahedron() [2/4]

template<typename TOutputMesh >
IdentifierType itk::AutomaticTopologyMeshSource< TOutputMesh >::AddHexahedron ( const IdentifierArrayType pointIDs)

Add the hexahedron specified by the four points, and return its ID. If the points are p0, p1, p2, and p3, then the following additional cells (represented here as ordered tuples) are created (if they don't already exist) and associated as boundaries, in the order given:

Vertices: (p0), (p1), (p2), (p3), (p4), (p5), (p6), (p7).

Lines: (p0, p1), (p2, p3), (p4, p5), (p6, p7), (p0, p2), (p1, p3), (p4, p6), (p5, p7), (p0, p4), (p1, p5), (p2, p6), (p3, p7).

Quadrilaterals: (0, 1, 2, 3), (4, 5, 6, 7), (0, 1, 4, 5), (2, 3, 6, 7), (0, 2, 4, 6), (1, 3, 5, 7),

In particular, if the points are connected topologically as follows

  p4------------p5
  | \          / |
  |  p0------p1  |
  |  |       |   |
  |  |       |   |
  |  p2------p3  |
  | /          \ |
  p6------------p7

then you would call, for instance, meshSource->AddQuadrilateral(p0, p1, p2, p3, p4, p5, p6, p7).

◆ AddHexahedron() [3/4]

template<typename TOutputMesh >
IdentifierType itk::AutomaticTopologyMeshSource< TOutputMesh >::AddHexahedron ( const PointType p0,
const PointType p1,
const PointType p2,
const PointType p3,
const PointType p4,
const PointType p5,
const PointType p6,
const PointType p7 
)

◆ AddHexahedron() [4/4]

template<typename TOutputMesh >
IdentifierType itk::AutomaticTopologyMeshSource< TOutputMesh >::AddHexahedron ( IdentifierType  pointId0,
IdentifierType  pointId1,
IdentifierType  pointId2,
IdentifierType  pointId3,
IdentifierType  pointId4,
IdentifierType  pointId5,
IdentifierType  pointId6,
IdentifierType  pointId7 
)

◆ AddLine() [1/4]

template<typename TOutputMesh >
IdentifierType itk::AutomaticTopologyMeshSource< TOutputMesh >::AddLine ( const CoordinateType p0,
const CoordinateType p1 
)

◆ AddLine() [2/4]

template<typename TOutputMesh >
IdentifierType itk::AutomaticTopologyMeshSource< TOutputMesh >::AddLine ( const IdentifierArrayType pointIDs)

Add the line specified by the two points, and return its ID. The endpoints and their associated vertices are associated to the line in the order that they are specified the first time the function is called.

◆ AddLine() [3/4]

template<typename TOutputMesh >
IdentifierType itk::AutomaticTopologyMeshSource< TOutputMesh >::AddLine ( const PointType p0,
const PointType p1 
)

◆ AddLine() [4/4]

template<typename TOutputMesh >
IdentifierType itk::AutomaticTopologyMeshSource< TOutputMesh >::AddLine ( IdentifierType  pointId0,
IdentifierType  pointId1 
)

◆ AddPoint() [1/3]

template<typename TOutputMesh >
IdentifierType itk::AutomaticTopologyMeshSource< TOutputMesh >::AddPoint ( const CoordinateType p0)

◆ AddPoint() [2/3]

template<typename TOutputMesh >
IdentifierType itk::AutomaticTopologyMeshSource< TOutputMesh >::AddPoint ( const PointType p0)

Add the point p0 if it's not already there, and return its ID.

◆ AddPoint() [3/3]

template<typename TOutputMesh >
IdentifierType itk::AutomaticTopologyMeshSource< TOutputMesh >::AddPoint ( CoordinateType  x0 = 0,
CoordinateType  x1 = 0,
CoordinateType  x2 = 0,
CoordinateType  x3 = 0,
CoordinateType  x4 = 0,
CoordinateType  x5 = 0 
)

Add the point with coordinates (x0, ..., xN) where N = PointDimension - 1. If N < 5, then any parameters after xN are ignored. If PointDimension > 6, then a point is generated with the first six coordinates equal to x0, ..., x5, and the rest set to 0.

◆ AddQuadrilateral() [1/4]

template<typename TOutputMesh >
IdentifierType itk::AutomaticTopologyMeshSource< TOutputMesh >::AddQuadrilateral ( const CoordinateType p0,
const CoordinateType p1,
const CoordinateType p2,
const CoordinateType p3 
)

◆ AddQuadrilateral() [2/4]

template<typename TOutputMesh >
IdentifierType itk::AutomaticTopologyMeshSource< TOutputMesh >::AddQuadrilateral ( const IdentifierArrayType pointIDs)

Add the quadrilateral specified by the four points, and return its ID. If the points are p0, p1, p2, and p3, then the following additional cells (represented here as ordered tuples) are created (if they don't already exist) and associated as boundaries, in the order given:

Vertices: (p0), (p1), (p2), (p3).

Lines: (p0, p1), (p2, p3), (p0, p2), (p1, p3).

In particular, if the points are arranged geometrically as follows

  p0  p1

  p2  p3

then you would call, for instance, meshSource->AddQuadrilateral(p0, p1, p2, p3).

◆ AddQuadrilateral() [3/4]

template<typename TOutputMesh >
IdentifierType itk::AutomaticTopologyMeshSource< TOutputMesh >::AddQuadrilateral ( const PointType p0,
const PointType p1,
const PointType p2,
const PointType p3 
)

◆ AddQuadrilateral() [4/4]

template<typename TOutputMesh >
IdentifierType itk::AutomaticTopologyMeshSource< TOutputMesh >::AddQuadrilateral ( IdentifierType  pointId0,
IdentifierType  pointId1,
IdentifierType  pointId2,
IdentifierType  pointId3 
)

◆ AddTetrahedron() [1/4]

template<typename TOutputMesh >
IdentifierType itk::AutomaticTopologyMeshSource< TOutputMesh >::AddTetrahedron ( const CoordinateType p0,
const CoordinateType p1,
const CoordinateType p2,
const CoordinateType p3 
)

◆ AddTetrahedron() [2/4]

template<typename TOutputMesh >
IdentifierType itk::AutomaticTopologyMeshSource< TOutputMesh >::AddTetrahedron ( const IdentifierArrayType pointIDs)

Add the tetrahedron specified by the three points, and return its ID. If the points are p0, p1, and p2, then the following additional cells (represented here as ordered tuples) are created (if they don't already exist) and associated as boundaries, in the order given:

Vertices: (p0), (p1), (p2), (p3).

Lines: (p0, p1), (p0, p2), (p0, p3), (p1, p2), (p1, p3), (p2, p3).

Triangles: (p0, p1, p2), (p0, p1, p3), (p0, p2, p3), (p1, p2, * p3).

◆ AddTetrahedron() [3/4]

template<typename TOutputMesh >
IdentifierType itk::AutomaticTopologyMeshSource< TOutputMesh >::AddTetrahedron ( const PointType p0,
const PointType p1,
const PointType p2,
const PointType p3 
)

◆ AddTetrahedron() [4/4]

template<typename TOutputMesh >
IdentifierType itk::AutomaticTopologyMeshSource< TOutputMesh >::AddTetrahedron ( IdentifierType  pointId0,
IdentifierType  pointId1,
IdentifierType  pointId2,
IdentifierType  pointId3 
)

◆ AddTriangle() [1/4]

template<typename TOutputMesh >
IdentifierType itk::AutomaticTopologyMeshSource< TOutputMesh >::AddTriangle ( const CoordinateType p0,
const CoordinateType p1,
const CoordinateType p2 
)

◆ AddTriangle() [2/4]

template<typename TOutputMesh >
IdentifierType itk::AutomaticTopologyMeshSource< TOutputMesh >::AddTriangle ( const IdentifierArrayType pointIDs)

Add the triangle specified by the three points, and return its ID. If the points are p0, p1, and p2, then the following additional cells (represented here as ordered tuples) are created (if they don't already exist) and associated as boundaries, in the order given:

Vertices: (p0), (p1), (p2).

Lines: (p0, p1), (p1, p2), (p2, p0).

◆ AddTriangle() [3/4]

template<typename TOutputMesh >
IdentifierType itk::AutomaticTopologyMeshSource< TOutputMesh >::AddTriangle ( const PointType p0,
const PointType p1,
const PointType p2 
)

◆ AddTriangle() [4/4]

template<typename TOutputMesh >
IdentifierType itk::AutomaticTopologyMeshSource< TOutputMesh >::AddTriangle ( IdentifierType  pointId0,
IdentifierType  pointId1,
IdentifierType  pointId2 
)

◆ AddVertex() [1/4]

template<typename TOutputMesh >
IdentifierType itk::AutomaticTopologyMeshSource< TOutputMesh >::AddVertex ( const CoordinateType p0)

◆ AddVertex() [2/4]

template<typename TOutputMesh >
IdentifierType itk::AutomaticTopologyMeshSource< TOutputMesh >::AddVertex ( const IdentifierArrayType pointIDs)

Add a vertex located at the given point, and return its ID.

◆ AddVertex() [3/4]

template<typename TOutputMesh >
IdentifierType itk::AutomaticTopologyMeshSource< TOutputMesh >::AddVertex ( const PointType p0)

◆ AddVertex() [4/4]

template<typename TOutputMesh >
IdentifierType itk::AutomaticTopologyMeshSource< TOutputMesh >::AddVertex ( IdentifierType  pointId0)

◆ CreateAnother()

template<typename TOutputMesh >
virtual::itk::LightObject::Pointer itk::AutomaticTopologyMeshSource< TOutputMesh >::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.

◆ GenerateData()

template<typename TOutputMesh >
void itk::AutomaticTopologyMeshSource< TOutputMesh >::GenerateData ( )
inlineoverrideprotectedvirtual

This method causes the filter to generate its output.

Reimplemented from itk::ProcessObject.

Definition at line 407 of file itkAutomaticTopologyMeshSource.h.

◆ GetNameOfClass()

template<typename TOutputMesh >
virtual const char* itk::AutomaticTopologyMeshSource< TOutputMesh >::GetNameOfClass ( ) const
virtual

Run-time type information (and related methods).

Reimplemented from itk::MeshSource< TOutputMesh >.

◆ New()

template<typename TOutputMesh >
static Pointer itk::AutomaticTopologyMeshSource< TOutputMesh >::New ( )
static

Method for creation through the object factory.

Member Data Documentation

◆ m_CellsHashTable

template<typename TOutputMesh >
CellHashMap itk::AutomaticTopologyMeshSource< TOutputMesh >::m_CellsHashTable
private

Definition at line 416 of file itkAutomaticTopologyMeshSource.h.

◆ m_OutputMesh

template<typename TOutputMesh >
MeshPointer itk::AutomaticTopologyMeshSource< TOutputMesh >::m_OutputMesh
private

Definition at line 417 of file itkAutomaticTopologyMeshSource.h.

◆ m_PointsHashTable

template<typename TOutputMesh >
PointHashMap itk::AutomaticTopologyMeshSource< TOutputMesh >::m_PointsHashTable
private

Definition at line 415 of file itkAutomaticTopologyMeshSource.h.

◆ MaxTopologicalDimension

template<typename TOutputMesh >
constexpr unsigned int itk::AutomaticTopologyMeshSource< TOutputMesh >::MaxTopologicalDimension = MeshType::MaxTopologicalDimension
staticconstexpr

Definition at line 152 of file itkAutomaticTopologyMeshSource.h.

◆ PointDimension

template<typename TOutputMesh >
constexpr unsigned int itk::AutomaticTopologyMeshSource< TOutputMesh >::PointDimension = MeshType::PointDimension
staticconstexpr

The dimension of the output mesh.

Definition at line 151 of file itkAutomaticTopologyMeshSource.h.


The documentation for this class was generated from the following file:
itk::AutomaticTopologyMeshSource::AddQuadrilateral
IdentifierType AddQuadrilateral(const IdentifierArrayType &pointIDs)
itk::AutomaticTopologyMeshSource
Convenience class for generating meshes.
Definition: itkAutomaticTopologyMeshSource.h:111