A forward iterator over array indices with filtering IteratorT can be either IndexIter or ValueIndexIter (or some custom index iterator) FilterT should be a struct or class with a valid() method than can be evaluated per index Here's a simple filter example that only accepts even indices:
More...
#include <IndexIterator.h>
|
class | ValueIndexIter |
| A forward iterator over array indices from a value iterator (such as ValueOnCIter) More...
|
|
template<typename IteratorT, typename FilterT>
class openvdb::v4_0_1::points::IndexIter< IteratorT, FilterT >
A forward iterator over array indices with filtering IteratorT can be either IndexIter or ValueIndexIter (or some custom index iterator) FilterT should be a struct or class with a valid() method than can be evaluated per index Here's a simple filter example that only accepts even indices:
struct EvenIndexFilter { bool valid(const Index32 offset) const { return (offset % 2) == 0; } };
IndexIter |
( |
const IteratorT & |
iterator, |
|
|
const FilterT & |
filter |
|
) |
| |
|
inline |
const FilterT& filter |
( |
| ) |
const |
|
inline |
Return the coordinates of the item to which the value iterator is pointing.
void getCoord |
( |
Coord & |
xyz | ) |
const |
|
inline |
Return in xyz the coordinates of the item to which the value iterator is pointing.
Advance to the next (valid) item.
Return true
if this iterator is not yet exhausted.
bool operator!= |
( |
const IndexIter< IteratorT, FilterT > & |
other | ) |
const |
|
inline |
Returns the item to which this iterator is currently pointing.
Advance to the next (valid) item (prefix).
Advance to the next (valid) item (postfix).
bool operator== |
( |
const IndexIter< IteratorT, FilterT > & |
other | ) |
const |
|
inline |
Reset the begining and end of the iterator.
The documentation for this class was generated from the following file: