Public Types | Public Member Functions | Public Attributes
vcg::edge::VEIterator< EdgeType > Class Template Reference

#include <pos.h>

List of all members.

Public Types

typedef VertexType::CoordType CoordType
 The vector type.
typedef VertexType::ScalarType ScalarType
 The scalar type.
typedef EdgeType::VertexType VertexType
 The vertex type.
typedef EdgeType VFIEdgeType
 The Base face type.

Public Member Functions

VFIEdgeType *& E ()
bool End () const
int & I ()
VFIEdgeTypeoperator++ ()
VertexTypeV () const
VertexType *const & V0 () const
VertexType *const & V1 () const
 VEIterator ()
 Default constructor.
 VEIterator (EdgeType *_e, const int &_z)
 Constructor which associates the half-edge elementet with a face and its vertex.
 VEIterator (const VertexType *_v)
 Constructor which takes a pointer to vertex.

Public Attributes

EdgeType * e
 Pointer to the face of the half-edge.
int z
 Index of the vertex.

Detailed Description

template<typename EdgeType>
class vcg::edge::VEIterator< EdgeType >

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

typical example:

VertexPointer v; vcg::edge::VEIterator<EdgeType> vei(v); for (;!vei.End();++vei) vei.E()->ClearV();

Alternative

vcg::edge::VEIterator<EdgeType> vei(f, 1); while (!vei.End()){ vei.E()->ClearV(); ++vei; }

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 249 of file vcg/simplex/edge/pos.h.


Member Typedef Documentation

template<typename EdgeType>
typedef VertexType::CoordType vcg::edge::VEIterator< EdgeType >::CoordType

The vector type.

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

template<typename EdgeType>
typedef VertexType::ScalarType vcg::edge::VEIterator< EdgeType >::ScalarType

The scalar type.

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

template<typename EdgeType>
typedef EdgeType::VertexType vcg::edge::VEIterator< EdgeType >::VertexType

The vertex type.

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

template<typename EdgeType>
typedef EdgeType vcg::edge::VEIterator< EdgeType >::VFIEdgeType

The Base face type.

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


Constructor & Destructor Documentation

template<typename EdgeType>
vcg::edge::VEIterator< EdgeType >::VEIterator ( ) [inline]

Default constructor.

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

template<typename EdgeType>
vcg::edge::VEIterator< EdgeType >::VEIterator ( EdgeType *  _e,
const int &  _z 
) [inline]

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

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

template<typename EdgeType>
vcg::edge::VEIterator< EdgeType >::VEIterator ( const VertexType _v) [inline]

Constructor which takes a pointer to vertex.

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


Member Function Documentation

template<typename EdgeType>
VFIEdgeType* & vcg::edge::VEIterator< EdgeType >::E ( ) [inline]

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

template<typename EdgeType>
bool vcg::edge::VEIterator< EdgeType >::End ( ) const [inline]

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

template<typename EdgeType>
int& vcg::edge::VEIterator< EdgeType >::I ( ) [inline]

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

template<typename EdgeType>
VFIEdgeType* vcg::edge::VEIterator< EdgeType >::operator++ ( ) [inline]

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

template<typename EdgeType>
VertexType* vcg::edge::VEIterator< EdgeType >::V ( ) const [inline]

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

template<typename EdgeType>
VertexType* const& vcg::edge::VEIterator< EdgeType >::V0 ( ) const [inline]

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

template<typename EdgeType>
VertexType* const& vcg::edge::VEIterator< EdgeType >::V1 ( ) const [inline]

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


Member Data Documentation

template<typename EdgeType>
EdgeType* vcg::edge::VEIterator< EdgeType >::e

Pointer to the face of the half-edge.

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

template<typename EdgeType>
int vcg::edge::VEIterator< EdgeType >::z

Index of the vertex.

Definition at line 265 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