ITK  6.0.0
Insight Toolkit
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Types | Private Attributes | List of all members
itk::QuadEdgeMeshTopologyChecker< TMesh > Class Template Reference

#include <itkQuadEdgeMeshTopologyChecker.h>

Detailed Description

template<typename TMesh>
class itk::QuadEdgeMeshTopologyChecker< TMesh >

Make some basic checks in order to verify that the considered mesh is not degenerated and correctly represents a surface with a potential boundary.

We check that they are no isolated vertices, no isolated edges and that the Euler formula is possible.

Author
Alexandre Gouaillard, Leonardo Florez-Valencia, Eric Boix

This implementation was contributed as a paper to the Insight Journal https://doi.org/10.54294/4mx7kk

Definition at line 42 of file itkQuadEdgeMeshTopologyChecker.h.

+ Inheritance diagram for itk::QuadEdgeMeshTopologyChecker< TMesh >:
+ Collaboration diagram for itk::QuadEdgeMeshTopologyChecker< TMesh >:

Public Types

using BoundaryEdges = QuadEdgeMeshBoundaryEdgesMeshFunction< MeshType >
 
using CellIdentifier = typename MeshType::CellIdentifier
 
using CellsContainerConstIterator = typename MeshType::CellsContainerConstIterator
 
using ConstPointer = SmartPointer< const Self >
 
using EdgeCellType = typename MeshType::EdgeCellType
 
using IdentifierType = itk::IdentifierType
 
using MeshType = TMesh
 
using OffsetValueType = itk::OffsetValueType
 
using Pointer = SmartPointer< Self >
 
using PointIdentifier = typename MeshType::PointIdentifier
 
using QEPrimal = typename MeshType::QEPrimal
 
using Self = QuadEdgeMeshTopologyChecker
 
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

const char * GetNameOfClass () const override
 
virtual void SetExpectedGenus (OffsetValueType _arg)
 
virtual void SetExpectedNumberOfBoundaries (CellIdentifier _arg)
 
virtual void SetExpectedNumberOfEdges (CellIdentifier _arg)
 
virtual void SetExpectedNumberOfFaces (CellIdentifier _arg)
 
virtual void SetExpectedNumberOfPoints (PointIdentifier _arg)
 
virtual void SetMesh (const MeshType *_arg)
 
bool ValidateEulerCharacteristic () 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
 
LightObject::Pointer CreateAnother () const override
 
virtual void DebugOff () const
 
virtual void DebugOn () const
 
CommandGetCommand (unsigned long tag)
 
bool GetDebug () const
 
MetaDataDictionaryGetMetaDataDictionary ()
 
const MetaDataDictionaryGetMetaDataDictionary () const
 
virtual ModifiedTimeType GetMTime () const
 
const char * GetNameOfClass () const override
 
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) 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 Pointer CreateAnother () const
 
virtual void Delete ()
 
virtual const char * GetNameOfClass () const
 
virtual int GetReferenceCount () const
 
void Print (std::ostream &os, Indent indent=0) const
 
virtual void Register () const
 
virtual void SetReferenceCount (int)
 
virtual void UnRegister () const noexcept
 

Static Public Member Functions

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

Protected Member Functions

void PrintSelf (std::ostream &os, Indent indent) const override
 
 QuadEdgeMeshTopologyChecker ()
 
 ~QuadEdgeMeshTopologyChecker () override=default
 
- Protected Member Functions inherited from itk::Object
 Object ()
 
bool PrintObservers (std::ostream &os, Indent indent) const
 
void PrintSelf (std::ostream &os, Indent indent) const override
 
virtual void SetTimeStamp (const TimeStamp &timeStamp)
 
 ~Object () override
 
- Protected Member Functions inherited from itk::LightObject
virtual LightObject::Pointer InternalClone () const
 
 LightObject ()
 
virtual void PrintHeader (std::ostream &os, Indent indent) const
 
virtual void PrintSelf (std::ostream &os, Indent indent) const
 
virtual void PrintTrailer (std::ostream &os, Indent indent) const
 
virtual ~LightObject ()
 

Private Types

using MeshPointer = typename MeshType::ConstPointer
 

Private Attributes

OffsetValueType m_ExpectedGenus {}
 
CellIdentifier m_ExpectedNumberOfBoundaries {}
 
CellIdentifier m_ExpectedNumberOfEdges {}
 
CellIdentifier m_ExpectedNumberOfFaces {}
 
PointIdentifier m_ExpectedNumberOfPoints {}
 
MeshPointer m_Mesh {}
 

Additional Inherited Members

- Protected Attributes inherited from itk::LightObject
std::atomic< int > m_ReferenceCount {}
 

Member Typedef Documentation

◆ BoundaryEdges

template<typename TMesh >
using itk::QuadEdgeMeshTopologyChecker< TMesh >::BoundaryEdges = QuadEdgeMeshBoundaryEdgesMeshFunction<MeshType>

Definition at line 57 of file itkQuadEdgeMeshTopologyChecker.h.

◆ CellIdentifier

template<typename TMesh >
using itk::QuadEdgeMeshTopologyChecker< TMesh >::CellIdentifier = typename MeshType::CellIdentifier

Definition at line 60 of file itkQuadEdgeMeshTopologyChecker.h.

◆ CellsContainerConstIterator

template<typename TMesh >
using itk::QuadEdgeMeshTopologyChecker< TMesh >::CellsContainerConstIterator = typename MeshType::CellsContainerConstIterator

Definition at line 56 of file itkQuadEdgeMeshTopologyChecker.h.

◆ ConstPointer

template<typename TMesh >
using itk::QuadEdgeMeshTopologyChecker< TMesh >::ConstPointer = SmartPointer<const Self>

Definition at line 51 of file itkQuadEdgeMeshTopologyChecker.h.

◆ EdgeCellType

template<typename TMesh >
using itk::QuadEdgeMeshTopologyChecker< TMesh >::EdgeCellType = typename MeshType::EdgeCellType

Definition at line 55 of file itkQuadEdgeMeshTopologyChecker.h.

◆ IdentifierType

template<typename TMesh >
using itk::QuadEdgeMeshTopologyChecker< TMesh >::IdentifierType = itk::IdentifierType

Definition at line 68 of file itkQuadEdgeMeshTopologyChecker.h.

◆ MeshPointer

template<typename TMesh >
using itk::QuadEdgeMeshTopologyChecker< TMesh >::MeshPointer = typename MeshType::ConstPointer
private

Definition at line 87 of file itkQuadEdgeMeshTopologyChecker.h.

◆ MeshType

template<typename TMesh >
using itk::QuadEdgeMeshTopologyChecker< TMesh >::MeshType = TMesh

Definition at line 53 of file itkQuadEdgeMeshTopologyChecker.h.

◆ OffsetValueType

template<typename TMesh >
using itk::QuadEdgeMeshTopologyChecker< TMesh >::OffsetValueType = itk::OffsetValueType

Definition at line 69 of file itkQuadEdgeMeshTopologyChecker.h.

◆ Pointer

template<typename TMesh >
using itk::QuadEdgeMeshTopologyChecker< TMesh >::Pointer = SmartPointer<Self>

Definition at line 50 of file itkQuadEdgeMeshTopologyChecker.h.

◆ PointIdentifier

template<typename TMesh >
using itk::QuadEdgeMeshTopologyChecker< TMesh >::PointIdentifier = typename MeshType::PointIdentifier

Definition at line 59 of file itkQuadEdgeMeshTopologyChecker.h.

◆ QEPrimal

template<typename TMesh >
using itk::QuadEdgeMeshTopologyChecker< TMesh >::QEPrimal = typename MeshType::QEPrimal

Definition at line 54 of file itkQuadEdgeMeshTopologyChecker.h.

◆ Self

template<typename TMesh >
using itk::QuadEdgeMeshTopologyChecker< TMesh >::Self = QuadEdgeMeshTopologyChecker

Definition at line 48 of file itkQuadEdgeMeshTopologyChecker.h.

◆ Superclass

template<typename TMesh >
using itk::QuadEdgeMeshTopologyChecker< TMesh >::Superclass = Object

Definition at line 49 of file itkQuadEdgeMeshTopologyChecker.h.

Constructor & Destructor Documentation

◆ QuadEdgeMeshTopologyChecker()

template<typename TMesh >
itk::QuadEdgeMeshTopologyChecker< TMesh >::QuadEdgeMeshTopologyChecker ( )
protected

◆ ~QuadEdgeMeshTopologyChecker()

template<typename TMesh >
itk::QuadEdgeMeshTopologyChecker< TMesh >::~QuadEdgeMeshTopologyChecker ( )
overrideprotecteddefault

Member Function Documentation

◆ GetNameOfClass()

template<typename TMesh >
const char * itk::QuadEdgeMeshTopologyChecker< TMesh >::GetNameOfClass ( ) const
overridevirtual
See also
LightObject::GetNameOfClass()

Reimplemented from itk::Object.

◆ New()

template<typename TMesh >
static Pointer itk::QuadEdgeMeshTopologyChecker< TMesh >::New ( )
static

◆ PrintSelf()

template<typename TMesh >
void itk::QuadEdgeMeshTopologyChecker< TMesh >::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::Object.

◆ SetExpectedGenus()

template<typename TMesh >
virtual void itk::QuadEdgeMeshTopologyChecker< TMesh >::SetExpectedGenus ( OffsetValueType  _arg)
virtual

◆ SetExpectedNumberOfBoundaries()

template<typename TMesh >
virtual void itk::QuadEdgeMeshTopologyChecker< TMesh >::SetExpectedNumberOfBoundaries ( CellIdentifier  _arg)
virtual

◆ SetExpectedNumberOfEdges()

template<typename TMesh >
virtual void itk::QuadEdgeMeshTopologyChecker< TMesh >::SetExpectedNumberOfEdges ( CellIdentifier  _arg)
virtual

◆ SetExpectedNumberOfFaces()

template<typename TMesh >
virtual void itk::QuadEdgeMeshTopologyChecker< TMesh >::SetExpectedNumberOfFaces ( CellIdentifier  _arg)
virtual

◆ SetExpectedNumberOfPoints()

template<typename TMesh >
virtual void itk::QuadEdgeMeshTopologyChecker< TMesh >::SetExpectedNumberOfPoints ( PointIdentifier  _arg)
virtual

◆ SetMesh()

template<typename TMesh >
virtual void itk::QuadEdgeMeshTopologyChecker< TMesh >::SetMesh ( const MeshType _arg)
virtual

◆ ValidateEulerCharacteristic()

template<typename TMesh >
bool itk::QuadEdgeMeshTopologyChecker< TMesh >::ValidateEulerCharacteristic ( ) const

Member Data Documentation

◆ m_ExpectedGenus

template<typename TMesh >
OffsetValueType itk::QuadEdgeMeshTopologyChecker< TMesh >::m_ExpectedGenus {}
private

Definition at line 95 of file itkQuadEdgeMeshTopologyChecker.h.

◆ m_ExpectedNumberOfBoundaries

template<typename TMesh >
CellIdentifier itk::QuadEdgeMeshTopologyChecker< TMesh >::m_ExpectedNumberOfBoundaries {}
private

Definition at line 94 of file itkQuadEdgeMeshTopologyChecker.h.

◆ m_ExpectedNumberOfEdges

template<typename TMesh >
CellIdentifier itk::QuadEdgeMeshTopologyChecker< TMesh >::m_ExpectedNumberOfEdges {}
private

Definition at line 92 of file itkQuadEdgeMeshTopologyChecker.h.

◆ m_ExpectedNumberOfFaces

template<typename TMesh >
CellIdentifier itk::QuadEdgeMeshTopologyChecker< TMesh >::m_ExpectedNumberOfFaces {}
private

Definition at line 93 of file itkQuadEdgeMeshTopologyChecker.h.

◆ m_ExpectedNumberOfPoints

template<typename TMesh >
PointIdentifier itk::QuadEdgeMeshTopologyChecker< TMesh >::m_ExpectedNumberOfPoints {}
private

Definition at line 91 of file itkQuadEdgeMeshTopologyChecker.h.

◆ m_Mesh

template<typename TMesh >
MeshPointer itk::QuadEdgeMeshTopologyChecker< TMesh >::m_Mesh {}
private

Definition at line 89 of file itkQuadEdgeMeshTopologyChecker.h.


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