Developer Documentation
|
#include <libs_required/OpenMesh/src/Python/Iterator.hh>
Public Member Functions | |
IteratorWrapperT (const PolyMesh &_mesh, typename Iterator::value_type _hnd, bool _skip=false) | |
IteratorWrapperT (const TriMesh &_mesh, typename Iterator::value_type _hnd, bool _skip=false) | |
IteratorWrapperT | iter () const |
Iterator::value_type | next () |
unsigned int | len () const |
Private Attributes | |
const OpenMesh::PolyConnectivity & | mesh_ |
size_t(OpenMesh::ArrayKernel::* | n_items_ )() const |
Iterator | iterator_ |
Iterator | iterator_end_ |
Wrapper for mesh item iterators.
This class template is used to wrap mesh item iterators for Python. It implements Python's iterator protocol (the magic methods __iter__ and __next__).
Iterator | An iterator type. |
n_items | A member function pointer that points to the mesh function that returns the number of items to iterate over (e.g. n_vertices). |
Definition at line 21 of file Iterator.hh.
|
inline |
Constructor
_mesh | The mesh that contains the items to iterate over. |
_hnd | The handle of the first item to iterate over. |
_skip | Specifies if deleted/hidden elements are skipped. |
Definition at line 31 of file Iterator.hh.
|
inline |
Constructor
_mesh | The mesh that contains the items to iterate over. |
_hnd | The handle of the first item to iterate over. |
_skip | Specifies if deleted/hidden elements are skipped. |
Definition at line 44 of file Iterator.hh.
|
inline |
Implementation of Python's __iter__ magic method.
Definition at line 55 of file Iterator.hh.
|
inline |
Implementation of Python's __len__ magic method.
Definition at line 83 of file Iterator.hh.
|
inline |
Implementation of Python's __next__ magic method.
Definition at line 65 of file Iterator.hh.