ITK  4.13.0
Insight Segmentation and Registration 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>

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

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. disconneted 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 disconected 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.

Public Types

typedef MeshType::CellIdentifier CellIdentifier
 
typedef SmartPointer< const SelfConstPointer
 
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
}
 
typedef MeshType::FaceRefType FaceRefType
 
typedef Superclass::MeshType MeshType
 
typedef Superclass::OutputType OutputType
 
typedef SmartPointer< SelfPointer
 
typedef MeshType::PointIdentifier PointIdentifier
 
typedef TQEType QEType
 
typedef
QuadEdgeMeshEulerOperatorJoinVertexFunction 
Self
 
typedef
QuadEdgeMeshFunctionBase
< TMesh, TQEType * > 
Superclass
 
- Public Types inherited from itk::QuadEdgeMeshFunctionBase< TMesh, TQEType * >
typedef SmartPointer< const SelfConstPointer
 
typedef MeshType::EdgeCellType EdgeCellType
 
typedef TMesh MeshType
 
typedef TQEType * OutputType
 
typedef SmartPointer< SelfPointer
 
typedef QuadEdgeMeshFunctionBase 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 ::itk::LightObject::Pointer CreateAnother () const
 
virtual OutputType Evaluate (QEType *h)
 
virtual EdgeStatusType GetEdgeStatus () const
 
virtual const char * GetNameOfClass () const
 
virtual PointIdentifier GetOldPointID () const
 
- Public Member Functions inherited from itk::QuadEdgeMeshFunctionBase< TMesh, TQEType * >
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
 
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::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 ()
 

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
 
- Protected Member Functions inherited from itk::QuadEdgeMeshFunctionBase< TMesh, TQEType * >
 QuadEdgeMeshFunctionBase ()
 
 ~QuadEdgeMeshFunctionBase () override
 
- Protected Member Functions inherited from itk::Object
 Object ()
 
bool PrintObservers (std::ostream &os, Indent indent) const
 
virtual void SetTimeStamp (const TimeStamp &time)
 
virtual ~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
AtomicInt< int > m_ReferenceCount
 

Member Typedef Documentation

template<typename TMesh , typename TQEType >
typedef MeshType::CellIdentifier itk::QuadEdgeMeshEulerOperatorJoinVertexFunction< TMesh, TQEType >::CellIdentifier
template<typename TMesh , typename TQEType >
typedef SmartPointer< const Self > itk::QuadEdgeMeshEulerOperatorJoinVertexFunction< TMesh, TQEType >::ConstPointer
template<typename TMesh , typename TQEType >
typedef MeshType::FaceRefType itk::QuadEdgeMeshEulerOperatorJoinVertexFunction< TMesh, TQEType >::FaceRefType
template<typename TMesh , typename TQEType >
typedef Superclass::MeshType itk::QuadEdgeMeshEulerOperatorJoinVertexFunction< TMesh, TQEType >::MeshType
template<typename TMesh , typename TQEType >
typedef Superclass::OutputType itk::QuadEdgeMeshEulerOperatorJoinVertexFunction< TMesh, TQEType >::OutputType
template<typename TMesh , typename TQEType >
typedef SmartPointer< Self > itk::QuadEdgeMeshEulerOperatorJoinVertexFunction< TMesh, TQEType >::Pointer
template<typename TMesh , typename TQEType >
typedef MeshType::PointIdentifier itk::QuadEdgeMeshEulerOperatorJoinVertexFunction< TMesh, TQEType >::PointIdentifier
template<typename TMesh , typename TQEType >
typedef TQEType itk::QuadEdgeMeshEulerOperatorJoinVertexFunction< TMesh, TQEType >::QEType

Type of QuadEdge with which to apply slicing.

Definition at line 70 of file itkQuadEdgeMeshEulerOperatorJoinVertexFunction.h.

template<typename TMesh , typename TQEType >
typedef QuadEdgeMeshEulerOperatorJoinVertexFunction itk::QuadEdgeMeshEulerOperatorJoinVertexFunction< TMesh, TQEType >::Self

Standard class typedefs.

Definition at line 63 of file itkQuadEdgeMeshEulerOperatorJoinVertexFunction.h.

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

Member Enumeration Documentation

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 85 of file itkQuadEdgeMeshEulerOperatorJoinVertexFunction.h.

Constructor & Destructor Documentation

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

Member Function Documentation

template<typename TMesh , typename TQEType >
EdgeStatusType itk::QuadEdgeMeshEulerOperatorJoinVertexFunction< TMesh, TQEType >::CheckStatus ( QEType e,
std::stack< TQEType * > &  oToBeDeleted 
)
protected
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()
template<typename TMesh , typename TQEType >
virtual::itk::LightObject::Pointer itk::QuadEdgeMeshEulerOperatorJoinVertexFunction< TMesh, TQEType >::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.

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

Evaluate at the specified input position

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

Run-time type information (and related methods).

Reimplemented from itk::QuadEdgeMeshFunctionBase< TMesh, TQEType * >.

template<typename TMesh , typename TQEType >
virtual PointIdentifier itk::QuadEdgeMeshEulerOperatorJoinVertexFunction< TMesh, TQEType >::GetOldPointID ( ) const
virtual
template<typename TMesh , typename TQEType >
bool itk::QuadEdgeMeshEulerOperatorJoinVertexFunction< TMesh, TQEType >::IsEdgeLinkingTwoDifferentBorders ( QEType e)
protected
template<typename TMesh , typename TQEType >
bool itk::QuadEdgeMeshEulerOperatorJoinVertexFunction< TMesh, TQEType >::IsEye ( QEType e)
protected
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
template<typename TMesh , typename TQEType >
bool itk::QuadEdgeMeshEulerOperatorJoinVertexFunction< TMesh, TQEType >::IsSamosa ( QEType e)
protected
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
template<typename TMesh , typename TQEType >
static Pointer itk::QuadEdgeMeshEulerOperatorJoinVertexFunction< TMesh, TQEType >::New ( )
static
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.

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

Member Data Documentation

template<typename TMesh , typename TQEType >
EdgeStatusType itk::QuadEdgeMeshEulerOperatorJoinVertexFunction< TMesh, TQEType >::m_EdgeStatus
protected
template<typename TMesh , typename TQEType >
PointIdentifier itk::QuadEdgeMeshEulerOperatorJoinVertexFunction< TMesh, TQEType >::m_OldPointID
protected

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