OGRE  1.10.11
Object-Oriented Graphics Rendering Engine
Ogre::InstancedGeometry::MaterialBucket Class Reference

A MaterialBucket is a collection of smaller buckets with the same Material (and implicitly the same LOD). More...

#include <OgreInstancedGeometry.h>

+ Inheritance diagram for Ogre::InstancedGeometry::MaterialBucket:

Public Types

typedef vector< GeometryBucket * >::type GeometryBucketList
 list of Geometry Buckets in this BatchInstance More...
 
typedef VectorIterator< GeometryBucketListGeometryIterator
 Iterator over geometry. More...
 

Public Member Functions

 MaterialBucket (LODBucket *parent, const String &materialName)
 
virtual ~MaterialBucket ()
 
void addRenderables (RenderQueue *queue, uint8 group, Real lodValue)
 Add children to the render queue. More...
 
void assign (QueuedGeometry *qsm)
 Assign geometry to this bucket. More...
 
void build ()
 Build. More...
 
void dump (std::ofstream &of) const
 Dump contents for diagnostics. More...
 
TechniquegetCurrentTechnique (void) const
 Get the current Technique. More...
 
MaterialBucket::GeometryBucketListgetGeometryBucketList (void) const
 Return the geometry list. More...
 
GeometryIterator getGeometryIterator (void)
 Get an iterator over the contained geometry. More...
 
int getLastIndex ()
 
const MaterialPtrgetMaterial (void) const
 Get the material for this bucket. More...
 
MaterialBucket::CurrentGeometryMap * getMaterialBucketMap (void) const
 Return the geometry map. More...
 
const StringgetMaterialName (void) const
 Get the material name. More...
 
LODBucketgetParent (void)
 
void setLastIndex (int index)
 
void setMaterial (const String &name)
 
void updateContainers (GeometryBucket *bucket, const String &format)
 fill in the map and the list More...
 
void visitRenderables (Renderable::Visitor *visitor, bool debugRenderables)
 

Detailed Description

A MaterialBucket is a collection of smaller buckets with the same Material (and implicitly the same LOD).

Member Typedef Documentation

Constructor & Destructor Documentation

Ogre::InstancedGeometry::MaterialBucket::MaterialBucket ( LODBucket parent,
const String materialName 
)
virtual Ogre::InstancedGeometry::MaterialBucket::~MaterialBucket ( )
virtual

Member Function Documentation

LODBucket* Ogre::InstancedGeometry::MaterialBucket::getParent ( void  )
inline
const String& Ogre::InstancedGeometry::MaterialBucket::getMaterialName ( void  ) const
inline

Get the material name.

void Ogre::InstancedGeometry::MaterialBucket::assign ( QueuedGeometry qsm)

Assign geometry to this bucket.

void Ogre::InstancedGeometry::MaterialBucket::build ( )

Build.

void Ogre::InstancedGeometry::MaterialBucket::addRenderables ( RenderQueue queue,
uint8  group,
Real  lodValue 
)

Add children to the render queue.

const MaterialPtr& Ogre::InstancedGeometry::MaterialBucket::getMaterial ( void  ) const
inline

Get the material for this bucket.

GeometryIterator Ogre::InstancedGeometry::MaterialBucket::getGeometryIterator ( void  )

Get an iterator over the contained geometry.

Technique* Ogre::InstancedGeometry::MaterialBucket::getCurrentTechnique ( void  ) const
inline

Get the current Technique.

void Ogre::InstancedGeometry::MaterialBucket::dump ( std::ofstream &  of) const

Dump contents for diagnostics.

MaterialBucket::CurrentGeometryMap* Ogre::InstancedGeometry::MaterialBucket::getMaterialBucketMap ( void  ) const

Return the geometry map.

MaterialBucket::GeometryBucketList* Ogre::InstancedGeometry::MaterialBucket::getGeometryBucketList ( void  ) const

Return the geometry list.

void Ogre::InstancedGeometry::MaterialBucket::updateContainers ( GeometryBucket bucket,
const String format 
)

fill in the map and the list

void Ogre::InstancedGeometry::MaterialBucket::setLastIndex ( int  index)
inline
int Ogre::InstancedGeometry::MaterialBucket::getLastIndex ( )
inline
void Ogre::InstancedGeometry::MaterialBucket::setMaterial ( const String name)
void Ogre::InstancedGeometry::MaterialBucket::visitRenderables ( Renderable::Visitor visitor,
bool  debugRenderables 
)

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