vcg::tetra::Pos< MTTYPE > Class Template Reference
[Tetra]

#include <pos.h>

Inheritance diagram for vcg::tetra::Pos< MTTYPE >:
Inheritance graph
[legend]

List of all members.

Public Types

typedef Pos< TetraTypeBasePosType
 The HEdgePos type.
typedef
TetraType::VertexType::CoordType 
CoordType
 The coordinate type.
typedef MTTYPE TetraType
 The tetrahedron type.
typedef TetraType::VertexType VertexType
 The vertex type.

Public Member Functions

void Assert ()
const char & E () const
 Return the index of face as seen from the tetrahedron.
char & E ()
 Return the index of face as seen from the tetrahedron.
const char & F () const
 Return the index of face as seen from the tetrahedron.
char & F ()
 Return the index of face as seen from the tetrahedron.
void FlipE ()
 Changes edge maintaining the same face and the same vertex.
void FlipF ()
 Changes face maintaining the same vertex and the same edge.
void FlipT ()
 Changes tetrahedron maintaining the same face edge and vertex'... to finish.
void FlipV ()
 Changes vertex maintaining the same face and the same edge.
bool IsNull () const
 Check if the half-edge is null.
void NextT ()
 returns the next half edge on the same edge
bool operator!= (BasePosType const &p) const
 Operator to compare two half-edge.
bool operator== (BasePosType const &p) const
 Operator to compare two half-edge.
 Pos (TetraType *const tp, char const fap, char const ep, char const vp)
 Constructor which associates the half-edge elementet with a face, its edge and its vertex.
 Pos ()
 Default constructor.
void SetNull ()
 Set to null the half-edge.
TetraType *const & T () const
 Return the tetrahedron stored in the half edge.
TetraType *& T ()
 Return the tetrahedron stored in the half edge.
const char & V () const
 Return the index of vertex as seen from the tetrahedron.
char & V ()
 Return the index of vertex as seen from the tetrahedron.
 ~Pos ()

Private Attributes

char _e
 Index of the edge.
char _f
 Index of the face.
TetraType_t
 Pointer to the tetrahedron of the half-edge.
char _v
 Pointer to the vertex.

Detailed Description

template<class MTTYPE>
class vcg::tetra::Pos< MTTYPE >

Templated over the class tetrahedron, it stores a position over a tetrahedron in a mesh. It contain a pointer to the current tetrahedron, the index of one face,edge and a edge's incident vertex.

Definition at line 106 of file vcg/simplex/tetrahedron/pos.h.


Member Typedef Documentation

template<class MTTYPE>
typedef Pos<TetraType> vcg::tetra::Pos< MTTYPE >::BasePosType

The HEdgePos type.

Definition at line 117 of file vcg/simplex/tetrahedron/pos.h.

template<class MTTYPE>
typedef TetraType::VertexType::CoordType vcg::tetra::Pos< MTTYPE >::CoordType

The coordinate type.

Definition at line 115 of file vcg/simplex/tetrahedron/pos.h.

template<class MTTYPE>
typedef MTTYPE vcg::tetra::Pos< MTTYPE >::TetraType

The tetrahedron type.

Reimplemented in vcg::tetra::PosJump< MTTYPE >, and vcg::tetra::PosLoop< MTTYPE >.

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

template<class MTTYPE>
typedef TetraType::VertexType vcg::tetra::Pos< MTTYPE >::VertexType

The vertex type.

Definition at line 113 of file vcg/simplex/tetrahedron/pos.h.


Constructor & Destructor Documentation

template<class MTTYPE>
vcg::tetra::Pos< MTTYPE >::Pos (  )  [inline]

Default constructor.

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

template<class MTTYPE>
vcg::tetra::Pos< MTTYPE >::Pos ( TetraType *const   tp,
char const   fap,
char const   ep,
char const   vp 
) [inline]

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

Definition at line 133 of file vcg/simplex/tetrahedron/pos.h.

template<class MTTYPE>
vcg::tetra::Pos< MTTYPE >::~Pos (  )  [inline]

Definition at line 136 of file vcg/simplex/tetrahedron/pos.h.


Member Function Documentation

template<class MTTYPE>
void vcg::tetra::Pos< MTTYPE >::Assert (  )  [inline]

Definition at line 336 of file vcg/simplex/tetrahedron/pos.h.

template<class MTTYPE>
const char& vcg::tetra::Pos< MTTYPE >::E (  )  const [inline]

Return the index of face as seen from the tetrahedron.

Definition at line 169 of file vcg/simplex/tetrahedron/pos.h.

template<class MTTYPE>
char& vcg::tetra::Pos< MTTYPE >::E (  )  [inline]

Return the index of face as seen from the tetrahedron.

Definition at line 163 of file vcg/simplex/tetrahedron/pos.h.

template<class MTTYPE>
const char& vcg::tetra::Pos< MTTYPE >::F (  )  const [inline]

Return the index of face as seen from the tetrahedron.

Definition at line 157 of file vcg/simplex/tetrahedron/pos.h.

template<class MTTYPE>
char& vcg::tetra::Pos< MTTYPE >::F (  )  [inline]

Return the index of face as seen from the tetrahedron.

Definition at line 151 of file vcg/simplex/tetrahedron/pos.h.

template<class MTTYPE>
void vcg::tetra::Pos< MTTYPE >::FlipE (  )  [inline]

Changes edge maintaining the same face and the same vertex.

Definition at line 211 of file vcg/simplex/tetrahedron/pos.h.

template<class MTTYPE>
void vcg::tetra::Pos< MTTYPE >::FlipF (  )  [inline]

Changes face maintaining the same vertex and the same edge.

Definition at line 251 of file vcg/simplex/tetrahedron/pos.h.

template<class MTTYPE>
void vcg::tetra::Pos< MTTYPE >::FlipT (  )  [inline]

Changes tetrahedron maintaining the same face edge and vertex'... to finish.

Definition at line 262 of file vcg/simplex/tetrahedron/pos.h.

template<class MTTYPE>
void vcg::tetra::Pos< MTTYPE >::FlipV (  )  [inline]

Changes vertex maintaining the same face and the same edge.

Definition at line 239 of file vcg/simplex/tetrahedron/pos.h.

template<class MTTYPE>
bool vcg::tetra::Pos< MTTYPE >::IsNull (  )  const [inline]

Check if the half-edge is null.

Definition at line 205 of file vcg/simplex/tetrahedron/pos.h.

template<class MTTYPE>
void vcg::tetra::Pos< MTTYPE >::NextT (  )  [inline]

returns the next half edge on the same edge

Reimplemented in vcg::tetra::PosJump< MTTYPE >, and vcg::tetra::PosLoop< MTTYPE >.

Definition at line 323 of file vcg/simplex/tetrahedron/pos.h.

template<class MTTYPE>
bool vcg::tetra::Pos< MTTYPE >::operator!= ( BasePosType const &  p  )  const [inline]

Operator to compare two half-edge.

Definition at line 192 of file vcg/simplex/tetrahedron/pos.h.

template<class MTTYPE>
bool vcg::tetra::Pos< MTTYPE >::operator== ( BasePosType const &  p  )  const [inline]

Operator to compare two half-edge.

Definition at line 187 of file vcg/simplex/tetrahedron/pos.h.

template<class MTTYPE>
void vcg::tetra::Pos< MTTYPE >::SetNull (  )  [inline]

Set to null the half-edge.

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

template<class MTTYPE>
TetraType* const& vcg::tetra::Pos< MTTYPE >::T (  )  const [inline]

Return the tetrahedron stored in the half edge.

Definition at line 145 of file vcg/simplex/tetrahedron/pos.h.

template<class MTTYPE>
TetraType* & vcg::tetra::Pos< MTTYPE >::T (  )  [inline]

Return the tetrahedron stored in the half edge.

Definition at line 139 of file vcg/simplex/tetrahedron/pos.h.

template<class MTTYPE>
const char& vcg::tetra::Pos< MTTYPE >::V (  )  const [inline]

Return the index of vertex as seen from the tetrahedron.

Definition at line 181 of file vcg/simplex/tetrahedron/pos.h.

template<class MTTYPE>
char& vcg::tetra::Pos< MTTYPE >::V (  )  [inline]

Return the index of vertex as seen from the tetrahedron.

Definition at line 175 of file vcg/simplex/tetrahedron/pos.h.


Member Data Documentation

template<class MTTYPE>
char vcg::tetra::Pos< MTTYPE >::_e [private]

Index of the edge.

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

template<class MTTYPE>
char vcg::tetra::Pos< MTTYPE >::_f [private]

Index of the face.

Definition at line 123 of file vcg/simplex/tetrahedron/pos.h.

template<class MTTYPE>
TetraType* vcg::tetra::Pos< MTTYPE >::_t [private]

Pointer to the tetrahedron of the half-edge.

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

template<class MTTYPE>
char vcg::tetra::Pos< MTTYPE >::_v [private]

Pointer to the vertex.

Definition at line 127 of file vcg/simplex/tetrahedron/pos.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


vcglib
Author(s): Christian Bersch
autogenerated on Fri Jan 11 09:23:27 2013