ITK  4.2.0
Insight Segmentation and Registration Toolkit
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions
itk::QuadEdgeMeshEulerOperatorJoinVertexFunction< TMesh, TQEType > Class Template Reference

#include <itkQuadEdgeMeshEulerOperatorJoinVertexFunction.h>

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

List of all members.

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 MeshType::EdgeCellType EdgeCellType
- Public Types inherited from itk::Object
- Public Types inherited from itk::LightObject

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother (void) 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 (void)
const MetaDataDictionaryGetMetaDataDictionary (void) const
virtual unsigned long 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
void RemoveAllObservers ()
void RemoveObserver (unsigned long tag)
void SetDebug (bool debugFlag) const
void SetMetaDataDictionary (const MetaDataDictionary &rhs)
virtual void SetReferenceCount (int)
virtual void UnRegister () 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 ()

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
QETypeProcess (QEType *e)
QETypeProcessIsolatedFace (QEType *e, std::stack< QEType * > &EdgesToBeDeleted)
QETypeProcessIsolatedQuadEdge (QEType *e)
 QuadEdgeMeshEulerOperatorJoinVertexFunction ()
 ~QuadEdgeMeshEulerOperatorJoinVertexFunction ()
- Protected Member Functions inherited from itk::QuadEdgeMeshFunctionBase< TMesh, TQEType * >
 ~QuadEdgeMeshFunctionBase ()
 QuadEdgeMeshFunctionBase ()
- 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

EdgeStatusType m_EdgeStatus
PointIdentifier m_OldPointID
- Protected Attributes inherited from itk::QuadEdgeMeshFunctionBase< TMesh, TQEType * >
MeshTypem_Mesh

Private Member Functions

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

Detailed Description

template<class TMesh, class 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.


Member Typedef Documentation

template<class TMesh , class TQEType >
typedef MeshType::CellIdentifier itk::QuadEdgeMeshEulerOperatorJoinVertexFunction< TMesh, TQEType >::CellIdentifier
template<class TMesh , class TQEType >
typedef SmartPointer< const Self > itk::QuadEdgeMeshEulerOperatorJoinVertexFunction< TMesh, TQEType >::ConstPointer
template<class TMesh , class TQEType >
typedef MeshType::FaceRefType itk::QuadEdgeMeshEulerOperatorJoinVertexFunction< TMesh, TQEType >::FaceRefType
template<class TMesh , class TQEType >
typedef Superclass::MeshType itk::QuadEdgeMeshEulerOperatorJoinVertexFunction< TMesh, TQEType >::MeshType

Mesh type that must be modified

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

Definition at line 75 of file itkQuadEdgeMeshEulerOperatorJoinVertexFunction.h.

template<class TMesh , class TQEType >
typedef Superclass::OutputType itk::QuadEdgeMeshEulerOperatorJoinVertexFunction< TMesh, TQEType >::OutputType
template<class TMesh , class TQEType >
typedef SmartPointer< Self > itk::QuadEdgeMeshEulerOperatorJoinVertexFunction< TMesh, TQEType >::Pointer
template<class TMesh , class TQEType >
typedef MeshType::PointIdentifier itk::QuadEdgeMeshEulerOperatorJoinVertexFunction< TMesh, TQEType >::PointIdentifier
template<class TMesh , class 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<class TMesh , class TQEType >
typedef QuadEdgeMeshEulerOperatorJoinVertexFunction itk::QuadEdgeMeshEulerOperatorJoinVertexFunction< TMesh, TQEType >::Self

Standard class typedefs.

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

Definition at line 63 of file itkQuadEdgeMeshEulerOperatorJoinVertexFunction.h.

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

Member Enumeration Documentation

template<class TMesh , class 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<class TMesh , class TQEType >
itk::QuadEdgeMeshEulerOperatorJoinVertexFunction< TMesh, TQEType >::QuadEdgeMeshEulerOperatorJoinVertexFunction ( )
protected
template<class TMesh , class TQEType >
itk::QuadEdgeMeshEulerOperatorJoinVertexFunction< TMesh, TQEType >::~QuadEdgeMeshEulerOperatorJoinVertexFunction ( )
inlineprotected
template<class TMesh , class TQEType >
itk::QuadEdgeMeshEulerOperatorJoinVertexFunction< TMesh, TQEType >::QuadEdgeMeshEulerOperatorJoinVertexFunction ( const Self )
private

Member Function Documentation

template<class TMesh , class TQEType >
EdgeStatusType itk::QuadEdgeMeshEulerOperatorJoinVertexFunction< TMesh, TQEType >::CheckStatus ( QEType e,
std::stack< TQEType * > &  oToBeDeleted 
)
protected
template<class TMesh , class 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<class TMesh , class TQEType >
virtual::itk::LightObject::Pointer itk::QuadEdgeMeshEulerOperatorJoinVertexFunction< TMesh, TQEType >::CreateAnother ( void  ) 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<class TMesh , class TQEType >
virtual OutputType itk::QuadEdgeMeshEulerOperatorJoinVertexFunction< TMesh, TQEType >::Evaluate ( QEType h)
virtual

Evaluate at the specified input position

template<class TMesh , class TQEType >
virtual EdgeStatusType itk::QuadEdgeMeshEulerOperatorJoinVertexFunction< TMesh, TQEType >::GetEdgeStatus ( ) const
virtual
template<class TMesh , class 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<class TMesh , class TQEType >
virtual PointIdentifier itk::QuadEdgeMeshEulerOperatorJoinVertexFunction< TMesh, TQEType >::GetOldPointID ( ) const
virtual
template<class TMesh , class TQEType >
bool itk::QuadEdgeMeshEulerOperatorJoinVertexFunction< TMesh, TQEType >::IsEdgeLinkingTwoDifferentBorders ( QEType e)
protected
template<class TMesh , class TQEType >
bool itk::QuadEdgeMeshEulerOperatorJoinVertexFunction< TMesh, TQEType >::IsEye ( QEType e)
protected
template<class TMesh , class 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<class TMesh , class TQEType >
bool itk::QuadEdgeMeshEulerOperatorJoinVertexFunction< TMesh, TQEType >::IsSamosa ( QEType e)
protected
template<class TMesh , class TQEType >
bool itk::QuadEdgeMeshEulerOperatorJoinVertexFunction< TMesh, TQEType >::IsTetrahedron ( QEType e)
protected
Parameters:
[in]e
Returns:
true if it is a tetrahedron
false else
template<class TMesh , class TQEType >
static Pointer itk::QuadEdgeMeshEulerOperatorJoinVertexFunction< TMesh, TQEType >::New ( )
static

Method for creation through the object factory.

Reimplemented from itk::Object.

template<class TMesh , class TQEType >
void itk::QuadEdgeMeshEulerOperatorJoinVertexFunction< TMesh, TQEType >::operator= ( const Self )
private

Mutex lock to protect modification to the reference count

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

template<class TMesh , class TQEType >
void itk::QuadEdgeMeshEulerOperatorJoinVertexFunction< TMesh, TQEType >::PrintSelf ( std::ostream &  os,
Indent  indent 
) const
protectedvirtual

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<class TMesh , class TQEType >
QEType* itk::QuadEdgeMeshEulerOperatorJoinVertexFunction< TMesh, TQEType >::Process ( QEType e)
protected
template<class TMesh , class TQEType >
QEType* itk::QuadEdgeMeshEulerOperatorJoinVertexFunction< TMesh, TQEType >::ProcessIsolatedFace ( QEType e,
std::stack< QEType * > &  EdgesToBeDeleted 
)
protected
template<class TMesh , class TQEType >
QEType* itk::QuadEdgeMeshEulerOperatorJoinVertexFunction< TMesh, TQEType >::ProcessIsolatedQuadEdge ( QEType e)
protected

Member Data Documentation

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

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