Public Types | Public Member Functions | Public Attributes
vcg::edge::Pos< EDGETYPE > Class Template Reference

#include <pos.h>

List of all members.

Public Types

typedef Pos< EDGETYPE > POSTYPE
typedef EDGETYPE::VertexType VertexType

Public Member Functions

EDGETYPE *& E ()
void FlipE ()
 Changes edge maintaining the vertex.
void FlipV ()
 Changes vertex maintaining the edge.
bool IsBorder ()
 Checks if the half-edge is of border.
bool IsManifold ()
bool IsNull () const
 Check if the half-edge is null.
void NextE ()
 It advances the current Pos along the edge chain.
bool operator!= (POSTYPE const &p) const
 Operator to compare two edge pos.
bool operator<= (POSTYPE const &p) const
 Operator to order half-edge; it's compare at the first the face pointers, then the index of the edge and finally the vertex pointers.
POSTYPEoperator= (const POSTYPE &h)
 Assignment operator.
bool operator== (POSTYPE const &p) const
 Operator to compare two edge pos.
 Pos ()
 Default constructor.
 Pos (EDGETYPE *ep, int zp)
 Constructor which associates the half-edge elementet with a face, its edge and its vertex.
 Pos (EDGETYPE *ep, VertexType *vp)
void Set (EDGETYPE *const ep, VertexType *const vp)
void SetNull ()
 Set to null the half-edge.
VertexType *& V ()
VertexTypeVFlip ()
int VInd ()

Public Attributes

EDGETYPE * e
 Pointer to the edge.
VertexTypev
 Pointer to the vertex.

Detailed Description

template<class EDGETYPE>
class vcg::edge::Pos< EDGETYPE >

Class Pos. This structure is equivalent to a half-edge.

Parameters:
MFTYPE(Template-Parameter) Specifies the type of the edges

Definition at line 89 of file vcg/simplex/edge/pos.h.


Member Typedef Documentation

template<class EDGETYPE>
typedef Pos< EDGETYPE> vcg::edge::Pos< EDGETYPE >::POSTYPE

Definition at line 94 of file vcg/simplex/edge/pos.h.

template<class EDGETYPE>
typedef EDGETYPE::VertexType vcg::edge::Pos< EDGETYPE >::VertexType

Definition at line 93 of file vcg/simplex/edge/pos.h.


Constructor & Destructor Documentation

template<class EDGETYPE>
vcg::edge::Pos< EDGETYPE >::Pos ( ) [inline]

Default constructor.

Definition at line 102 of file vcg/simplex/edge/pos.h.

template<class EDGETYPE>
vcg::edge::Pos< EDGETYPE >::Pos ( EDGETYPE *  ep,
int  zp 
) [inline]

Constructor which associates the half-edge elementet with a face, its edge and its vertex.

Definition at line 104 of file vcg/simplex/edge/pos.h.

template<class EDGETYPE>
vcg::edge::Pos< EDGETYPE >::Pos ( EDGETYPE *  ep,
VertexType vp 
) [inline]

Definition at line 105 of file vcg/simplex/edge/pos.h.


Member Function Documentation

template<class EDGETYPE>
EDGETYPE*& vcg::edge::Pos< EDGETYPE >::E ( ) [inline]

Definition at line 110 of file vcg/simplex/edge/pos.h.

template<class EDGETYPE>
void vcg::edge::Pos< EDGETYPE >::FlipE ( ) [inline]

Changes edge maintaining the vertex.

Definition at line 172 of file vcg/simplex/edge/pos.h.

template<class EDGETYPE>
void vcg::edge::Pos< EDGETYPE >::FlipV ( ) [inline]

Changes vertex maintaining the edge.

Definition at line 167 of file vcg/simplex/edge/pos.h.

template<class EDGETYPE>
bool vcg::edge::Pos< EDGETYPE >::IsBorder ( ) [inline]

Checks if the half-edge is of border.

Definition at line 197 of file vcg/simplex/edge/pos.h.

template<class EDGETYPE>
bool vcg::edge::Pos< EDGETYPE >::IsManifold ( ) [inline]

Definition at line 202 of file vcg/simplex/edge/pos.h.

template<class EDGETYPE>
bool vcg::edge::Pos< EDGETYPE >::IsNull ( ) const [inline]

Check if the half-edge is null.

Definition at line 142 of file vcg/simplex/edge/pos.h.

template<class EDGETYPE>
void vcg::edge::Pos< EDGETYPE >::NextE ( ) [inline]

It advances the current Pos along the edge chain.

Note that a Pos implicitly encode an ordering in the chain: the one denoted by the classical arrow shaped icon of a pos. In other words

o---------o | / |/

Meaningful only for 1-manifold edge chain.

Definition at line 160 of file vcg/simplex/edge/pos.h.

template<class EDGETYPE>
bool vcg::edge::Pos< EDGETYPE >::operator!= ( POSTYPE const &  p) const [inline]

Operator to compare two edge pos.

Definition at line 121 of file vcg/simplex/edge/pos.h.

template<class EDGETYPE>
bool vcg::edge::Pos< EDGETYPE >::operator<= ( POSTYPE const &  p) const [inline]

Operator to order half-edge; it's compare at the first the face pointers, then the index of the edge and finally the vertex pointers.

Definition at line 125 of file vcg/simplex/edge/pos.h.

template<class EDGETYPE>
POSTYPE& vcg::edge::Pos< EDGETYPE >::operator= ( const POSTYPE h) [inline]

Assignment operator.

Definition at line 131 of file vcg/simplex/edge/pos.h.

template<class EDGETYPE>
bool vcg::edge::Pos< EDGETYPE >::operator== ( POSTYPE const &  p) const [inline]

Operator to compare two edge pos.

Definition at line 116 of file vcg/simplex/edge/pos.h.

template<class EDGETYPE>
void vcg::edge::Pos< EDGETYPE >::Set ( EDGETYPE *const  ep,
VertexType *const  vp 
) [inline]

Function to inizialize an half-edge.

Parameters:
fpPuntatore alla faccia
zpIndice dell'edge
vpPuntatore al vertice

Definition at line 213 of file vcg/simplex/edge/pos.h.

template<class EDGETYPE>
void vcg::edge::Pos< EDGETYPE >::SetNull ( ) [inline]

Set to null the half-edge.

Definition at line 137 of file vcg/simplex/edge/pos.h.

template<class EDGETYPE>
VertexType*& vcg::edge::Pos< EDGETYPE >::V ( ) [inline]

Definition at line 109 of file vcg/simplex/edge/pos.h.

template<class EDGETYPE>
VertexType* vcg::edge::Pos< EDGETYPE >::VFlip ( ) [inline]

Definition at line 178 of file vcg/simplex/edge/pos.h.

template<class EDGETYPE>
int vcg::edge::Pos< EDGETYPE >::VInd ( ) [inline]

Definition at line 111 of file vcg/simplex/edge/pos.h.


Member Data Documentation

template<class EDGETYPE>
EDGETYPE* vcg::edge::Pos< EDGETYPE >::e

Pointer to the edge.

Definition at line 97 of file vcg/simplex/edge/pos.h.

template<class EDGETYPE>
VertexType* vcg::edge::Pos< EDGETYPE >::v

Pointer to the vertex.

Definition at line 99 of file vcg/simplex/edge/pos.h.


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


shape_reconstruction
Author(s): Roberto Martín-Martín
autogenerated on Sat Jun 8 2019 18:41:25