Public Member Functions | Private Attributes

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

VertexFaceIterator, transverse all the neighboring faces of a vertex ccwly. More...

#include <iterators.h>

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

List of all members.

Public Member Functions

 VertexFaceIterator (CVertex *&v)
 ~VertexFaceIterator ()
void operator++ ()
void operator++ (int)
CFacevalue ()
CFaceoperator* ()
bool end ()
void reset ()

Private Attributes

CVertexm_vertex
CHalfEdgem_halfedge

Detailed Description

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

VertexFaceIterator, transverse all the neighboring faces of a vertex ccwly.

Definition at line 468 of file iterators.h.


Constructor & Destructor Documentation

template<typename CVertex , typename CEdge , typename CFace , typename CHalfEdge >
MeshLib::VertexFaceIterator< CVertex, CEdge, CFace, CHalfEdge >::VertexFaceIterator ( CVertex *&  v  )  [inline]

VertexFaceIterator constructor

Parameters:
v the current vertex

Definition at line 475 of file iterators.h.

        { 
                m_vertex = v; 
                m_halfedge = (CHalfEdge*)m_vertex->most_clw_out_halfedge(); 
        };

Here is the call graph for this function:

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

VertexFaceIterator destructor

Definition at line 483 of file iterators.h.

{};


Member Function Documentation

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

Indicate whether all the neighboring faces have been accessed.

Definition at line 524 of file iterators.h.

{ return m_halfedge == NULL; };

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

The neighboring face, pointed by the current iterator

Definition at line 520 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::VertexFaceIterator< CVertex, CEdge, CFace, CHalfEdge >::operator++ (  )  [inline]

VertexFaceIterator prefix operator ++, goes to the next neighboring face CCWly

Definition at line 487 of file iterators.h.

        {
                assert( m_halfedge != NULL );  

                if( m_halfedge == (CHalfEdge*)m_vertex->most_ccw_out_halfedge() ) 
                {
                        m_halfedge = NULL;
                        return;
                }
                m_halfedge = (CHalfEdge*)m_halfedge->ccw_rotate_about_source();
        };

Here is the call graph for this function:

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

VertexFaceIterator prefix operator ++, goes to the next neighboring face CCWly

Definition at line 502 of file iterators.h.

        {
                assert( m_halfedge != NULL );  

                if( m_halfedge == (CHalfEdge*)m_vertex->most_ccw_out_halfedge() ) 
                {
                        m_halfedge = NULL;
                        return;
                }
                m_halfedge = (CHalfEdge*)m_halfedge->ccw_rotate_about_source();
        };

Here is the call graph for this function:

template<typename CVertex , typename CEdge , typename CFace , typename CHalfEdge >
void MeshLib::VertexFaceIterator< CVertex, CEdge, CFace, CHalfEdge >::reset (  )  [inline]

Reset the VertexFaceIterator

Definition at line 528 of file iterators.h.

{ m_halfedge = (CHalfEdge*)m_vertex->most_clw_out_halfedge(); };

Here is the call graph for this function:

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

The neighboring face, pointed by the current iterator

Definition at line 516 of file iterators.h.

{ return (CFace*) m_halfedge->face(); };

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 >
CHalfEdge* MeshLib::VertexFaceIterator< CVertex, CEdge, CFace, CHalfEdge >::m_halfedge [private]

current halfedge

Definition at line 538 of file iterators.h.

template<typename CVertex , typename CEdge , typename CFace , typename CHalfEdge >
CVertex* MeshLib::VertexFaceIterator< CVertex, CEdge, CFace, CHalfEdge >::m_vertex [private]

current vertex

Definition at line 528 of file iterators.h.


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