OpenSceneGraph
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
osg::Image::DataIterator Class Reference

Convenience class for assisting the copying of image data when the image data isn't contiguous. More...

Collaboration diagram for osg::Image::DataIterator:
Collaboration graph
[legend]

Public Member Functions

 DataIterator (const Image *image)
 
 DataIterator (const DataIterator &ri)
 
void operator++ ()
 advance iterator to next block of data. More...
 
bool valid () const
 is iterator valid. More...
 
const unsigned char * data () const
 data pointer of current block to copy. More...
 
unsigned int size () const
 Size of current block to copy. More...
 

Protected Member Functions

void assign ()
 

Protected Attributes

const osg::Image_image
 
int _rowNum
 
int _imageNum
 
unsigned int _mipmapNum
 
const unsigned char * _currentPtr
 
unsigned int _currentSize
 

Detailed Description

Convenience class for assisting the copying of image data when the image data isn't contiguous.

Member Function Documentation

◆ data()

const unsigned char* osg::Image::DataIterator::data ( ) const
inline

data pointer of current block to copy.

◆ operator++()

void osg::Image::DataIterator::operator++ ( )

advance iterator to next block of data.

◆ size()

unsigned int osg::Image::DataIterator::size ( ) const
inline

Size of current block to copy.

◆ valid()

bool osg::Image::DataIterator::valid ( ) const
inline

is iterator valid.


The documentation for this class was generated from the following file: