Public Member Functions | Private Attributes

MeshLib::FaceVertexIterator< CVertex, CEdge, CFace, CHalfEdge > Class Template Reference

FaceVertexIterator, transverse all the vertices of a face CCWly. More...

#include <iterators.h>

Collaboration diagram for MeshLib::FaceVertexIterator< CVertex, CEdge, CFace, CHalfEdge >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 FaceVertexIterator (CFace *f)
 ~FaceVertexIterator ()
void operator++ ()
void operator++ (int)
CVertexvalue ()
CVertexoperator* ()
bool end ()

Private Attributes

CFacem_face
CHalfEdgem_halfedge

Detailed Description

template<typename CVertex, typename CEdge, typename CFace, typename CHalfEdge>
class MeshLib::FaceVertexIterator< CVertex, CEdge, CFace, CHalfEdge >

FaceVertexIterator, transverse all the vertices of a face CCWly.

Definition at line 696 of file iterators.h.


Constructor & Destructor Documentation

template<typename CVertex , typename CEdge , typename CFace , typename CHalfEdge >
MeshLib::FaceVertexIterator< CVertex, CEdge, CFace, CHalfEdge >::FaceVertexIterator ( CFace f  )  [inline]

FaceVertexIterator constructor

Parameters:
f the current face

Definition at line 703 of file iterators.h.

        { 
                m_face = f; 
                m_halfedge = (CHalfEdge*)f->halfedge(); 
        };

Here is the call graph for this function:

template<typename CVertex , typename CEdge , typename CFace , typename CHalfEdge >
MeshLib::FaceVertexIterator< CVertex, CEdge, CFace, CHalfEdge >::~FaceVertexIterator (  )  [inline]

FaceVertexIterator destructor

Definition at line 712 of file iterators.h.

{};


Member Function Documentation

template<typename CVertex , typename CEdge , typename CFace , typename CHalfEdge >
bool MeshLib::FaceVertexIterator< CVertex, CEdge, CFace, CHalfEdge >::end (  )  [inline]

Indicate whether all the vertices have been accessed.

Definition at line 753 of file iterators.h.

{ return m_halfedge == NULL; };

template<typename CVertex , typename CEdge , typename CFace , typename CHalfEdge >
CVertex* MeshLib::FaceVertexIterator< CVertex, CEdge, CFace, CHalfEdge >::operator* (  )  [inline]

The vertex, pointed by the current iterator

Definition at line 749 of file iterators.h.

{ return value(); };

Here is the call graph for this function:

template<typename CVertex , typename CEdge , typename CFace , typename CHalfEdge >
void MeshLib::FaceVertexIterator< CVertex, CEdge, CFace, CHalfEdge >::operator++ ( int   )  [inline]

FaceVertexIterator prefix operator ++, goes to the next vertex CCWly

Definition at line 731 of file iterators.h.

        {
                assert( m_halfedge != NULL );
                m_halfedge = (CHalfEdge*)m_halfedge->he_next();

                if( m_halfedge == (CHalfEdge*)m_face->halfedge() )
                {
                         m_halfedge = NULL;
                        return;
                };
        }

Here is the call graph for this function:

template<typename CVertex , typename CEdge , typename CFace , typename CHalfEdge >
void MeshLib::FaceVertexIterator< CVertex, CEdge, CFace, CHalfEdge >::operator++ (  )  [inline]

FaceVertexIterator prefix operator ++, goes to the next vertex CCWly

Definition at line 716 of file iterators.h.

        {
                assert( m_halfedge != NULL );
                m_halfedge = (CHalfEdge*)m_halfedge->he_next();

                if( m_halfedge == (CHalfEdge*)m_face->halfedge() )
                {
                         m_halfedge = NULL;
                        return;
                };
        }

Here is the call graph for this function:

template<typename CVertex , typename CEdge , typename CFace , typename CHalfEdge >
CVertex* MeshLib::FaceVertexIterator< CVertex, CEdge, CFace, CHalfEdge >::value (  )  [inline]

The vertex, pointed by the current iterator

Definition at line 745 of file iterators.h.

{ return (CVertex*) m_halfedge->target(); };

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

template<typename CVertex , typename CEdge , typename CFace , typename CHalfEdge >
CFace* MeshLib::FaceVertexIterator< CVertex, CEdge, CFace, CHalfEdge >::m_face [private]

Current face.

Definition at line 753 of file iterators.h.

template<typename CVertex , typename CEdge , typename CFace , typename CHalfEdge >
CHalfEdge* MeshLib::FaceVertexIterator< CVertex, CEdge, CFace, CHalfEdge >::m_halfedge [private]

Current halfedge.

Definition at line 761 of file iterators.h.


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