OpenSceneGraph  3.5.1
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...

Public Member Functions

 DataIterator (const Image *image)
 
 DataIterator (const DataIterator &ri)
 
 ~DataIterator ()
 
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.

Constructor & Destructor Documentation

osg::Image::DataIterator::DataIterator ( const Image image)
osg::Image::DataIterator::DataIterator ( const DataIterator ri)
osg::Image::DataIterator::~DataIterator ( )
inline

Member Function Documentation

void osg::Image::DataIterator::assign ( )
protected
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
const osg::Image* osg::Image::DataIterator::_image
protected
int osg::Image::DataIterator::_imageNum
protected
unsigned int osg::Image::DataIterator::_mipmapNum
protected
int osg::Image::DataIterator::_rowNum
protected

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

osg logo
Generated at Wed Nov 11 2015 22:14:35 for the OpenSceneGraph by doxygen 1.8.10.