OpenSceneGraph  3.4.0
Public Member Functions | Protected Member Functions | Protected Attributes
osg::Image::DataIterator Class Reference

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

List of all members.

Public Member Functions

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

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.


Constructor & Destructor Documentation


Member Function Documentation

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

data pointer of current block to copy.

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

advance iterator to next block of data.

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

Size of current block to copy.

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

is iterator valid.


Member Data Documentation

const unsigned char* osg::Image::DataIterator::_currentPtr [protected]
unsigned int osg::Image::DataIterator::_currentSize [protected]
unsigned int osg::Image::DataIterator::_mipmapNum [protected]

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

osg logo
Generated at Tue Dec 8 2015 00:16:42 for the OpenSceneGraph by doxygen 1.7.6.1.