Inviwo 0.9.12-pre
Inviwo documentation
|
An iterator providing access to a subregion, or brick, within linearized 3D data. More...
#include <brickiterator.h>
Public Member Functions | |
BrickIterator (Iter iterator, size3_t dims, size3_t offset, size3_t extent) | |
BrickIterator & | operator++ () |
BrickIterator | operator++ (int) |
BrickIterator & | operator-- () |
BrickIterator | operator-- (int) |
reference | operator* () const |
pointer | operator-> () const |
bool | operator== (const BrickIterator &rhs) const |
bool | operator!= (const BrickIterator &rhs) const |
const Iter & | base () const |
Iter & | base () |
size3_t | globalPos () const |
size3_t | blockPos () const |
BrickIterator | begin () const |
BrickIterator | end () const |
An iterator providing access to a subregion, or brick, within linearized 3D data.
This iterator provides access to and iterates over a subregion within 3D data. The 3D data is assumed to be contiguous, i.e. linearized, in x, then y, then z similar to IndexMapper3D
. Initially, the iterator points to the first voxel of the brick. Iteration takes place in x direction, followed by y and z, respectively.
BrickIterator::end()
provides the matching end iterator
Example:
Here, a single voxel at position (2,0,0) of a VolumeRAM is extracted.
Modify a subregion within a volume.
|
inline |
Creates an brick iterator given an iterator to an array containing linearized volume data and its corresponding volume dimensions.
iterator | iterator pointing to the begin of the linearized source data |
dims | dimensions of the source volume |
offset | starting position of the brick |
extent | extent of the brick, i.e. the region the iterator should iterate over |