vcg::face::VFIterator< FaceType > Class Template Reference
[Face]

#include <pos.h>

List of all members.

Public Types

typedef VertexType::CoordType CoordType
 The vector type.
typedef VertexType::ScalarType ScalarType
 The scalar type.
typedef FaceType::VertexType VertexType
 The vertex type.
typedef FaceType VFIFaceType
 The Base face type.

Public Member Functions

bool End () const
VFIFaceType *& F ()
int & I ()
VFIFaceTypeoperator++ ()
VertexTypeV () const
VertexType *const & V0 () const
VertexType *const & V1 () const
VertexType *const & V2 () const
 VFIterator (VertexType *_v)
 Constructor which takes a pointer to vertex.
 VFIterator (FaceType *_f, const int &_z)
 Constructor which associates the half-edge elementet with a face and its vertex.
 VFIterator ()
 Default constructor.

Public Attributes

FaceType * f
 Pointer to the face of the half-edge.
int z
 Index of the vertex.

Detailed Description

template<typename FaceType>
class vcg::face::VFIterator< FaceType >

Class VFIterator. This class is used as an iterator over the VF adjacency. It allow to easily traverse all the faces around a given vertex v; The faces are traversed in no particular order. No Manifoldness requirement.

typical example:

VertexPointer v; vcg::face::VFIterator<FaceType> vfi(v); for (;!vfi.End();++vfi) vfi.F()->ClearV();

Alternative

vcg::face::VFIterator<FaceType> vfi(f, 1); while (!vfi.End()){ vfi.F()->ClearV(); ++vfi; }

See also the JumpingPos in jumping_pos.h for an iterator that loops around the faces of a vertex using FF topology and without requiring the VF topology.

Definition at line 494 of file vcg/simplex/face/pos.h.


Member Typedef Documentation

template<typename FaceType>
typedef VertexType::CoordType vcg::face::VFIterator< FaceType >::CoordType

The vector type.

Definition at line 503 of file vcg/simplex/face/pos.h.

template<typename FaceType>
typedef VertexType::ScalarType vcg::face::VFIterator< FaceType >::ScalarType

The scalar type.

Definition at line 505 of file vcg/simplex/face/pos.h.

template<typename FaceType>
typedef FaceType::VertexType vcg::face::VFIterator< FaceType >::VertexType

The vertex type.

Definition at line 499 of file vcg/simplex/face/pos.h.

template<typename FaceType>
typedef FaceType vcg::face::VFIterator< FaceType >::VFIFaceType

The Base face type.

Definition at line 501 of file vcg/simplex/face/pos.h.


Constructor & Destructor Documentation

template<typename FaceType>
vcg::face::VFIterator< FaceType >::VFIterator (  )  [inline]

Default constructor.

Definition at line 513 of file vcg/simplex/face/pos.h.

template<typename FaceType>
vcg::face::VFIterator< FaceType >::VFIterator ( FaceType *  _f,
const int &  _z 
) [inline]

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

Definition at line 515 of file vcg/simplex/face/pos.h.

template<typename FaceType>
vcg::face::VFIterator< FaceType >::VFIterator ( VertexType _v  )  [inline]

Constructor which takes a pointer to vertex.

Definition at line 518 of file vcg/simplex/face/pos.h.


Member Function Documentation

template<typename FaceType>
bool vcg::face::VFIterator< FaceType >::End (  )  const [inline]

Definition at line 531 of file vcg/simplex/face/pos.h.

template<typename FaceType>
VFIFaceType*& vcg::face::VFIterator< FaceType >::F (  )  [inline]

Definition at line 520 of file vcg/simplex/face/pos.h.

template<typename FaceType>
int& vcg::face::VFIterator< FaceType >::I (  )  [inline]

Definition at line 521 of file vcg/simplex/face/pos.h.

template<typename FaceType>
VFIFaceType* vcg::face::VFIterator< FaceType >::operator++ (  )  [inline]

Definition at line 532 of file vcg/simplex/face/pos.h.

template<typename FaceType>
VertexType* vcg::face::VFIterator< FaceType >::V (  )  const [inline]

Definition at line 525 of file vcg/simplex/face/pos.h.

template<typename FaceType>
VertexType* const& vcg::face::VFIterator< FaceType >::V0 (  )  const [inline]

Definition at line 527 of file vcg/simplex/face/pos.h.

template<typename FaceType>
VertexType* const& vcg::face::VFIterator< FaceType >::V1 (  )  const [inline]

Definition at line 528 of file vcg/simplex/face/pos.h.

template<typename FaceType>
VertexType* const& vcg::face::VFIterator< FaceType >::V2 (  )  const [inline]

Definition at line 529 of file vcg/simplex/face/pos.h.


Member Data Documentation

template<typename FaceType>
FaceType* vcg::face::VFIterator< FaceType >::f

Pointer to the face of the half-edge.

Definition at line 508 of file vcg/simplex/face/pos.h.

template<typename FaceType>
int vcg::face::VFIterator< FaceType >::z

Index of the vertex.

Definition at line 510 of file vcg/simplex/face/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:21 2013