OpenVDB
9.0.1
|
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 <openvdb/points/IndexIterator.h>
Classes | |
class | ValueIndexIter |
A forward iterator over array indices from a value iterator (such as ValueOnCIter) More... | |
Public Member Functions | |
IndexIter (const IteratorT &iterator, const FilterT &filter) | |
IndexIter (const IndexIter &other) | |
IndexIter & | operator= (const IndexIter &other) |
Index32 | end () const |
void | reset (Index32 begin, Index32 end) |
Reset the begining and end of the iterator. More... | |
Index32 | operator* () |
Returns the item to which this iterator is currently pointing. More... | |
Index32 | operator* () const |
operator bool () const | |
Return true if this iterator is not yet exhausted. More... | |
bool | test () const |
IndexIter & | operator++ () |
Advance to the next (valid) item (prefix). More... | |
IndexIter | operator++ (int) |
Advance to the next (valid) item (postfix). More... | |
bool | next () |
Advance to the next (valid) item. More... | |
bool | increment () |
const FilterT & | filter () const |
Return the const filter. More... | |
Coord | getCoord () const |
Return the coordinates of the item to which the value iterator is pointing. More... | |
void | getCoord (Coord &xyz) const |
Return in xyz the coordinates of the item to which the value iterator is pointing. More... | |
bool | isValueOn () const |
Return true if the value iterator is pointing to an active value. More... | |
bool | operator== (const IndexIter &other) const |
Equality operators. More... | |
bool | operator!= (const IndexIter &other) const |
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; } };
|
inline |
|
inline |
|
inline |
Return the const filter.
|
inline |
Return the coordinates of the item to which the value iterator is pointing.
|
inline |
Return in xyz the coordinates of the item to which the value iterator is pointing.
|
inline |
|
inline |
Return true
if the value iterator is pointing to an active value.
|
inline |
Advance to the next (valid) item.
|
inline |
Return true
if this iterator is not yet exhausted.
|
inline |
|
inline |
Returns the item to which this iterator is currently pointing.
|
inline |
|
inline |
Advance to the next (valid) item (prefix).
|
inline |
Advance to the next (valid) item (postfix).
|
inline |
Equality operators.
|
inline |