ITK  5.4.0
Insight Toolkit
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
itk::QuadEdgeMeshEulerOperatorJoinVertexFunction< TMesh, TQEType > Class Template Reference

#include <itkQuadEdgeMeshEulerOperatorJoinVertexFunction.h>

Detailed Description

template<typename TMesh, typename TQEType>
class itk::QuadEdgeMeshEulerOperatorJoinVertexFunction< TMesh, TQEType >

Collapse a given edge by joining its dest and its org.

Collapse the argument edge e of Evaluate by joining the two vertices incident to e (i.e. its endpoints). The destination vertex of e is set aside (i.e. disconnected from its edge entry and no edge has this vertex as endpoint). Note that the vertex itself is not removed from the container (and hence there is no loss of geometrical information). On success JoinVertex returns the Id of the disconnected vertex (i.e. the destination of e) and it is up to the caller to "take care" of it.

Precondition: the edge should be adjacent at least to an other edge (i.e. not be isolated at both endpoints).

Warning
JoinVertex.Evaluate( h) and JoinVertex.Evaluate( h->GetSym() ) are topologically identical. But their differ in their geometrical result, since JoinVertex removes the destination vertex of the incoming argument. A simple way to visualize this difference is to imagine a mesh constituted of squares laid out on a regular grid and for each such square an added diagonal. No imagine what happens when one operates JoinVertex on a diagonal edge of a corner square (and how it differs with feeding JoinVertex with the opposite edge).

Definition at line 57 of file itkQuadEdgeMeshEulerOperatorJoinVertexFunction.h.

+ Inheritance diagram for itk::QuadEdgeMeshEulerOperatorJoinVertexFunction< TMesh, TQEType >:
+ Collaboration diagram for itk::QuadEdgeMeshEulerOperatorJoinVertexFunction< TMesh, TQEType >:

Public Types

using CellIdentifier = typename MeshType::CellIdentifier
 
using ConstPointer = SmartPointer< const Self >
 
enum  EdgeStatusType {
  STANDARD_CONFIG = 0,
  EDGE_NULL,
  MESH_NULL,
  EDGE_ISOLATED,
  TOO_MANY_COMMON_VERTICES,
  TETRAHEDRON_CONFIG,
  QUADEDGE_ISOLATED,
  FACE_ISOLATED,
  SAMOSA_CONFIG,
  EYE_CONFIG,
  EDGE_JOINING_DIFFERENT_BORDERS
}
 
using FaceRefType = typename MeshType::FaceRefType
 
using Pointer = SmartPointer< Self >
 
using PointIdentifier = typename MeshType::PointIdentifier
 
using QEType = TQEType
 
using Self = QuadEdgeMeshEulerOperatorJoinVertexFunction
 
using Superclass = QuadEdgeMeshFunctionBase< TMesh, TQEType * >
 
- Public Types inherited from itk::QuadEdgeMeshFunctionBase< TMesh, TQEType * >
using ConstPointer = SmartPointer< const Self >
 
using EdgeCellType = typename MeshType::EdgeCellType
 
using MeshType = TMesh
 
using OutputType = TQEType *
 
using Pointer = SmartPointer< Self >
 
using Self = QuadEdgeMeshFunctionBase
 
using Superclass = Object
 
- Public Types inherited from itk::Object
using ConstPointer = SmartPointer< const Self >
 
using Pointer = SmartPointer< Self >
 
using Self = Object
 
using Superclass = LightObject
 
- Public Types inherited from itk::LightObject
using ConstPointer = SmartPointer< const Self >
 
using Pointer = SmartPointer< Self >
 
using Self = LightObject
 

Public Member Functions

virtual OutputType Evaluate (QEType *e)
 
virtual EdgeStatusType GetEdgeStatus () const
 
const char * GetNameOfClass () const override
 
virtual PointIdentifier GetOldPointID () const
 
- Public Member Functions inherited from itk::QuadEdgeMeshFunctionBase< TMesh, TQEType * >
const char * GetNameOfClass () const override
 
virtual void SetInput (MeshType *input)
 
- 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
 
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
 
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::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

EdgeStatusType CheckStatus (QEType *e, std::stack< TQEType * > &oToBeDeleted)
 
PointIdentifier CommonVertexNeighboor (QEType *e)
 
bool IsEdgeLinkingTwoDifferentBorders (QEType *e)
 
bool IsEye (QEType *e)
 
bool IsFaceIsolated (QEType *e, const bool iWasLeftFace, std::stack< TQEType * > &oToBeDeleted)
 
bool IsSamosa (QEType *e)
 
bool IsTetrahedron (QEType *e)
 
void PrintSelf (std::ostream &os, Indent indent) const override
 
QETypeProcess (QEType *e)
 
QETypeProcessIsolatedFace (QEType *e, std::stack< QEType * > &EdgesToBeDeleted)
 
QETypeProcessIsolatedQuadEdge (QEType *e)
 
 QuadEdgeMeshEulerOperatorJoinVertexFunction ()
 
 ~QuadEdgeMeshEulerOperatorJoinVertexFunction () override=default
 
- Protected Member Functions inherited from itk::QuadEdgeMeshFunctionBase< TMesh, TQEType * >
 QuadEdgeMeshFunctionBase ()
 
 ~QuadEdgeMeshFunctionBase () override=default
 
- Protected Member Functions inherited from itk::Object
 Object ()
 
bool PrintObservers (std::ostream &os, Indent indent) const
 
virtual void SetTimeStamp (const TimeStamp &timeStamp)
 
 ~Object () override
 
- Protected Member Functions inherited from itk::LightObject
virtual LightObject::Pointer InternalClone () const
 
 LightObject ()
 
virtual void PrintHeader (std::ostream &os, Indent indent) const
 
virtual void PrintTrailer (std::ostream &os, Indent indent) const
 
virtual ~LightObject ()
 

Protected Attributes

EdgeStatusType m_EdgeStatus {}
 
PointIdentifier m_OldPointID {}
 
- Protected Attributes inherited from itk::QuadEdgeMeshFunctionBase< TMesh, TQEType * >
MeshTypem_Mesh
 
- Protected Attributes inherited from itk::LightObject
std::atomic< int > m_ReferenceCount {}
 

Member Typedef Documentation

◆ CellIdentifier

template<typename TMesh , typename TQEType >
using itk::QuadEdgeMeshEulerOperatorJoinVertexFunction< TMesh, TQEType >::CellIdentifier = typename MeshType::CellIdentifier

◆ ConstPointer

template<typename TMesh , typename TQEType >
using itk::QuadEdgeMeshEulerOperatorJoinVertexFunction< TMesh, TQEType >::ConstPointer = SmartPointer<const Self>

◆ FaceRefType

template<typename TMesh , typename TQEType >
using itk::QuadEdgeMeshEulerOperatorJoinVertexFunction< TMesh, TQEType >::FaceRefType = typename MeshType::FaceRefType

◆ Pointer

template<typename TMesh , typename TQEType >
using itk::QuadEdgeMeshEulerOperatorJoinVertexFunction< TMesh, TQEType >::Pointer = SmartPointer<Self>

◆ PointIdentifier

template<typename TMesh , typename TQEType >
using itk::QuadEdgeMeshEulerOperatorJoinVertexFunction< TMesh, TQEType >::PointIdentifier = typename MeshType::PointIdentifier

◆ QEType

template<typename TMesh , typename TQEType >
using itk::QuadEdgeMeshEulerOperatorJoinVertexFunction< TMesh, TQEType >::QEType = TQEType

Type of QuadEdge with which to apply slicing.

Definition at line 74 of file itkQuadEdgeMeshEulerOperatorJoinVertexFunction.h.

◆ Self

template<typename TMesh , typename TQEType >
using itk::QuadEdgeMeshEulerOperatorJoinVertexFunction< TMesh, TQEType >::Self = QuadEdgeMeshEulerOperatorJoinVertexFunction

Standard class type aliases.

Definition at line 64 of file itkQuadEdgeMeshEulerOperatorJoinVertexFunction.h.

◆ Superclass

template<typename TMesh , typename TQEType >
using itk::QuadEdgeMeshEulerOperatorJoinVertexFunction< TMesh, TQEType >::Superclass = QuadEdgeMeshFunctionBase<TMesh, TQEType *>

Member Enumeration Documentation

◆ EdgeStatusType

template<typename TMesh , typename TQEType >
enum itk::QuadEdgeMeshEulerOperatorJoinVertexFunction::EdgeStatusType
Enumerator
STANDARD_CONFIG 
EDGE_NULL 
MESH_NULL 
EDGE_ISOLATED 
TOO_MANY_COMMON_VERTICES 
TETRAHEDRON_CONFIG 
QUADEDGE_ISOLATED 
FACE_ISOLATED 
SAMOSA_CONFIG 
EYE_CONFIG 
EDGE_JOINING_DIFFERENT_BORDERS 

Definition at line 87 of file itkQuadEdgeMeshEulerOperatorJoinVertexFunction.h.

Constructor & Destructor Documentation

◆ QuadEdgeMeshEulerOperatorJoinVertexFunction()

template<typename TMesh , typename TQEType >
itk::QuadEdgeMeshEulerOperatorJoinVertexFunction< TMesh, TQEType >::QuadEdgeMeshEulerOperatorJoinVertexFunction ( )
protected

◆ ~QuadEdgeMeshEulerOperatorJoinVertexFunction()

template<typename TMesh , typename TQEType >
itk::QuadEdgeMeshEulerOperatorJoinVertexFunction< TMesh, TQEType >::~QuadEdgeMeshEulerOperatorJoinVertexFunction ( )
overrideprotecteddefault

Member Function Documentation

◆ CheckStatus()

template<typename TMesh , typename TQEType >
EdgeStatusType itk::QuadEdgeMeshEulerOperatorJoinVertexFunction< TMesh, TQEType >::CheckStatus ( QEType e,
std::stack< TQEType * > &  oToBeDeleted 
)
protected

◆ CommonVertexNeighboor()

template<typename TMesh , typename TQEType >
PointIdentifier itk::QuadEdgeMeshEulerOperatorJoinVertexFunction< TMesh, TQEType >::CommonVertexNeighboor ( QEType e)
protected
Parameters
[in]e
Returns
The number of common vertices in the 0-ring of e->GetOrigin() and e->GetDestination()

◆ Evaluate()

template<typename TMesh , typename TQEType >
virtual OutputType itk::QuadEdgeMeshEulerOperatorJoinVertexFunction< TMesh, TQEType >::Evaluate ( QEType e)
virtual

Evaluate at the specified input position

◆ GetEdgeStatus()

template<typename TMesh , typename TQEType >
virtual EdgeStatusType itk::QuadEdgeMeshEulerOperatorJoinVertexFunction< TMesh, TQEType >::GetEdgeStatus ( ) const
virtual

◆ GetNameOfClass()

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

Reimplemented from itk::Object.

◆ GetOldPointID()

template<typename TMesh , typename TQEType >
virtual PointIdentifier itk::QuadEdgeMeshEulerOperatorJoinVertexFunction< TMesh, TQEType >::GetOldPointID ( ) const
virtual

◆ IsEdgeLinkingTwoDifferentBorders()

template<typename TMesh , typename TQEType >
bool itk::QuadEdgeMeshEulerOperatorJoinVertexFunction< TMesh, TQEType >::IsEdgeLinkingTwoDifferentBorders ( QEType e)
protected

◆ IsEye()

template<typename TMesh , typename TQEType >
bool itk::QuadEdgeMeshEulerOperatorJoinVertexFunction< TMesh, TQEType >::IsEye ( QEType e)
protected

◆ IsFaceIsolated()

template<typename TMesh , typename TQEType >
bool itk::QuadEdgeMeshEulerOperatorJoinVertexFunction< TMesh, TQEType >::IsFaceIsolated ( QEType e,
const bool  iWasLeftFace,
std::stack< TQEType * > &  oToBeDeleted 
)
protected
Parameters
[in]e
[in]iWasLeftFace
[out]oToBeDeleted
Returns
true if the face is isolated
false else

◆ IsSamosa()

template<typename TMesh , typename TQEType >
bool itk::QuadEdgeMeshEulerOperatorJoinVertexFunction< TMesh, TQEType >::IsSamosa ( QEType e)
protected

◆ IsTetrahedron()

template<typename TMesh , typename TQEType >
bool itk::QuadEdgeMeshEulerOperatorJoinVertexFunction< TMesh, TQEType >::IsTetrahedron ( QEType e)
protected
Parameters
[in]e
Returns
true if it is a tetrahedron
false else

◆ New()

template<typename TMesh , typename TQEType >
static Pointer itk::QuadEdgeMeshEulerOperatorJoinVertexFunction< TMesh, TQEType >::New ( )
static

◆ PrintSelf()

template<typename TMesh , typename TQEType >
void itk::QuadEdgeMeshEulerOperatorJoinVertexFunction< TMesh, TQEType >::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.

◆ Process()

template<typename TMesh , typename TQEType >
QEType* itk::QuadEdgeMeshEulerOperatorJoinVertexFunction< TMesh, TQEType >::Process ( QEType e)
protected

◆ ProcessIsolatedFace()

template<typename TMesh , typename TQEType >
QEType* itk::QuadEdgeMeshEulerOperatorJoinVertexFunction< TMesh, TQEType >::ProcessIsolatedFace ( QEType e,
std::stack< QEType * > &  EdgesToBeDeleted 
)
protected

◆ ProcessIsolatedQuadEdge()

template<typename TMesh , typename TQEType >
QEType* itk::QuadEdgeMeshEulerOperatorJoinVertexFunction< TMesh, TQEType >::ProcessIsolatedQuadEdge ( QEType e)
protected

Member Data Documentation

◆ m_EdgeStatus

template<typename TMesh , typename TQEType >
EdgeStatusType itk::QuadEdgeMeshEulerOperatorJoinVertexFunction< TMesh, TQEType >::m_EdgeStatus {}
protected

◆ m_OldPointID

template<typename TMesh , typename TQEType >
PointIdentifier itk::QuadEdgeMeshEulerOperatorJoinVertexFunction< TMesh, TQEType >::m_OldPointID {}
protected

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