osgUtil::Optimizer::TextureAtlasBuilder Class Reference

Texture Atlas Builder creates a set of textures/images which each contain multiple images. More...

List of all members.

Public Member Functions

 TextureAtlasBuilder ()
void reset ()
void setMaximumAtlasSize (unsigned int width, unsigned int height)
unsigned int getMaximumAtlasWidth () const
unsigned int getMaximumAtlasHeight () const
void setMargin (unsigned int margin)
unsigned int getMargin () const
void addSource (const osg::Image *image)
void addSource (const osg::Texture2D *texture)
unsigned int getNumSources () const
const osg::ImagegetSourceImage (unsigned int i)
const osg::Texture2DgetSourceTexture (unsigned int i)
void buildAtlas ()
osg::ImagegetImageAtlas (unsigned int i)
osg::Texture2DgetTextureAtlas (unsigned int i)
osg::Matrix getTextureMatrix (unsigned int i)
osg::ImagegetImageAtlas (const osg::Image *image)
osg::Texture2DgetTextureAtlas (const osg::Image *image)
osg::Matrix getTextureMatrix (const osg::Image *image)
osg::ImagegetImageAtlas (const osg::Texture2D *textue)
osg::Texture2DgetTextureAtlas (const osg::Texture2D *texture)
osg::Matrix getTextureMatrix (const osg::Texture2D *texture)

Protected Types

typedef std::vector
< osg::ref_ptr
< Source > > 
SourceList
typedef std::vector
< osg::ref_ptr
< Atlas > > 
AtlasList

Protected Member Functions

SourcegetSource (const osg::Image *image)
SourcegetSource (const osg::Texture2D *texture)

Protected Attributes

unsigned int _maximumAtlasWidth
unsigned int _maximumAtlasHeight
unsigned int _margin
SourceList _sourceList
AtlasList _atlasList

Classes

class  Atlas
class  Source


Detailed Description

Texture Atlas Builder creates a set of textures/images which each contain multiple images.

Texture Atlas' are used to make it possible to use much wider batching of data.


Member Typedef Documentation

typedef std::vector< osg::ref_ptr<Source> > osgUtil::Optimizer::TextureAtlasBuilder::SourceList [protected]

typedef std::vector< osg::ref_ptr<Atlas> > osgUtil::Optimizer::TextureAtlasBuilder::AtlasList [protected]


Constructor & Destructor Documentation

osgUtil::Optimizer::TextureAtlasBuilder::TextureAtlasBuilder (  ) 


Member Function Documentation

void osgUtil::Optimizer::TextureAtlasBuilder::reset (  ) 

void osgUtil::Optimizer::TextureAtlasBuilder::setMaximumAtlasSize ( unsigned int  width,
unsigned int  height 
)

unsigned int osgUtil::Optimizer::TextureAtlasBuilder::getMaximumAtlasWidth (  )  const [inline]

unsigned int osgUtil::Optimizer::TextureAtlasBuilder::getMaximumAtlasHeight (  )  const [inline]

void osgUtil::Optimizer::TextureAtlasBuilder::setMargin ( unsigned int  margin  ) 

unsigned int osgUtil::Optimizer::TextureAtlasBuilder::getMargin (  )  const [inline]

void osgUtil::Optimizer::TextureAtlasBuilder::addSource ( const osg::Image image  ) 

void osgUtil::Optimizer::TextureAtlasBuilder::addSource ( const osg::Texture2D texture  ) 

unsigned int osgUtil::Optimizer::TextureAtlasBuilder::getNumSources (  )  const [inline]

const osg::Image* osgUtil::Optimizer::TextureAtlasBuilder::getSourceImage ( unsigned int  i  )  [inline]

const osg::Texture2D* osgUtil::Optimizer::TextureAtlasBuilder::getSourceTexture ( unsigned int  i  )  [inline]

void osgUtil::Optimizer::TextureAtlasBuilder::buildAtlas (  ) 

osg::Image* osgUtil::Optimizer::TextureAtlasBuilder::getImageAtlas ( unsigned int  i  ) 

osg::Texture2D* osgUtil::Optimizer::TextureAtlasBuilder::getTextureAtlas ( unsigned int  i  ) 

osg::Matrix osgUtil::Optimizer::TextureAtlasBuilder::getTextureMatrix ( unsigned int  i  ) 

osg::Image* osgUtil::Optimizer::TextureAtlasBuilder::getImageAtlas ( const osg::Image image  ) 

osg::Texture2D* osgUtil::Optimizer::TextureAtlasBuilder::getTextureAtlas ( const osg::Image image  ) 

osg::Matrix osgUtil::Optimizer::TextureAtlasBuilder::getTextureMatrix ( const osg::Image image  ) 

osg::Image* osgUtil::Optimizer::TextureAtlasBuilder::getImageAtlas ( const osg::Texture2D textue  ) 

osg::Texture2D* osgUtil::Optimizer::TextureAtlasBuilder::getTextureAtlas ( const osg::Texture2D texture  ) 

osg::Matrix osgUtil::Optimizer::TextureAtlasBuilder::getTextureMatrix ( const osg::Texture2D texture  ) 

Source* osgUtil::Optimizer::TextureAtlasBuilder::getSource ( const osg::Image image  )  [protected]

Source* osgUtil::Optimizer::TextureAtlasBuilder::getSource ( const osg::Texture2D texture  )  [protected]


Member Data Documentation

unsigned int osgUtil::Optimizer::TextureAtlasBuilder::_maximumAtlasWidth [protected]

unsigned int osgUtil::Optimizer::TextureAtlasBuilder::_maximumAtlasHeight [protected]

unsigned int osgUtil::Optimizer::TextureAtlasBuilder::_margin [protected]

SourceList osgUtil::Optimizer::TextureAtlasBuilder::_sourceList [protected]

AtlasList osgUtil::Optimizer::TextureAtlasBuilder::_atlasList [protected]


The documentation for this class was generated from the following file:
Generated at Sun Oct 14 02:12:51 2007 for the OpenSceneGraph by doxygen 1.5.3.