|
HDK
|
#include <imagebuf.h>
Inheritance diagram for ImageBuf::ConstIterator< BUFT, USERT >:Public Member Functions | |
| ConstIterator (const ImageBuf &ib, WrapMode wrap=WrapDefault) | |
| ConstIterator (const ImageBuf &ib, int x_, int y_, int z_=0, WrapMode wrap=WrapDefault) | |
| ConstIterator (const ImageBuf &ib, const ROI &roi, WrapMode wrap=WrapDefault) | |
| Construct read-only iteration region from ImageBuf and ROI. More... | |
| ConstIterator (const ImageBuf &ib, int xbegin, int xend, int ybegin, int yend, int zbegin=0, int zend=1, WrapMode wrap=WrapDefault) | |
| ~ConstIterator () | |
| ConstDataArrayProxy< BUFT, USERT > & | operator* () const |
| USERT | operator[] (int i) const |
Public Member Functions inherited from ImageBuf::IteratorBase | |
| int | x () const |
| Retrieve the current x location of the iterator. More... | |
| int | y () const |
| Retrieve the current y location of the iterator. More... | |
| int | z () const |
| Retrieve the current z location of the iterator. More... | |
| bool | valid () const |
| Is the current location within the designated iteration range? More... | |
| bool | valid (int x_, int y_, int z_=0) const |
| bool | exists (int x_, int y_, int z_=0) const |
| bool | exists () const |
| bool | done () const |
| Are we finished iterating over the region? More... | |
| int | deep_samples () const |
| Retrieve the number of deep data samples at this pixel. More... | |
| WrapMode | wrap () const |
| Return the wrap mode. More... | |
| void OIIO_API | pos (int x_, int y_, int z_=0) |
| void | operator++ () |
| void | operator++ (int) |
| Increment to the next pixel in the region. More... | |
| ROI | range () const |
| Return the iteration range. More... | |
| void OIIO_API | rerange (int xbegin, int xend, int ybegin, int yend, int zbegin, int zend, WrapMode wrap=WrapDefault) |
| const void * | rawptr () const |
| float | deep_value (int c, int s) const |
| Retrieve the deep data value of sample s of channel c. More... | |
| uint32_t | deep_value_uint (int c, int s) const |
| bool | localpixels () const |
| bool | has_error () const |
| void | clear_error () |
Just like an ImageBuf::Iterator, except that it refers to a const ImageBuf.
Definition at line 1521 of file imagebuf.h.
|
inline |
Construct from just an ImageBuf – iterate over the whole region, starting with the upper left pixel of the region.
Definition at line 1525 of file imagebuf.h.
|
inline |
Construct from an ImageBuf and a specific pixel index. The iteration range is the full image.
Definition at line 1531 of file imagebuf.h.
|
inline |
Construct read-only iteration region from ImageBuf and ROI.
Definition at line 1537 of file imagebuf.h.
|
inline |
Construct from an ImageBuf and designated region – iterate over region, starting with the upper left pixel.
Definition at line 1544 of file imagebuf.h.
|
inline |
Definition at line 1551 of file imagebuf.h.
|
inline |
Dereferencing the iterator gives us a proxy for the pixel, which we can index for reading or assignment.
Definition at line 1555 of file imagebuf.h.
|
inline |
Array indexing retrieves the value of the i-th channel of the current pixel.
Definition at line 1562 of file imagebuf.h.