OGRE  1.7
Object-Oriented Graphics Rendering Engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Ogre::StaticGeometry::MaterialBucket Class Reference

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

#include <OgreStaticGeometry.h>

+ Inheritance diagram for Ogre::StaticGeometry::MaterialBucket:
+ Collaboration diagram for Ogre::StaticGeometry::MaterialBucket:

Public Types

typedef vector< GeometryBucket * >
::type 
GeometryBucketList
 list of Geometry Buckets in this region More...
 
typedef VectorIterator
< GeometryBucketList
GeometryIterator
 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 (bool stencilShadows)
 Build. More...
 
void dump (std::ofstream &of) const
 Dump contents for diagnostics. More...
 
TechniquegetCurrentTechnique (void) const
 Get the current Technique. More...
 
GeometryIterator getGeometryIterator (void)
 Get an iterator over the contained geometry. More...
 
const MaterialPtrgetMaterial (void) const
 Get the material for this bucket. More...
 
const StringgetMaterialName (void) const
 Get the material name. More...
 
LODBucketgetParent (void)
 
void operator delete (void *ptr)
 
void operator delete (void *ptr, void *)
 
void operator delete (void *ptr, const char *, int, const char *)
 
void operator delete[] (void *ptr)
 
void operator delete[] (void *ptr, const char *, int, const char *)
 
void * operator new (size_t sz, const char *file, int line, const char *func)
 operator new, with debug line info More...
 
void * operator new (size_t sz)
 
void * operator new (size_t sz, void *ptr)
 placement operator new More...
 
void * operator new[] (size_t sz, const char *file, int line, const char *func)
 array operator new, with debug line info More...
 
void * operator new[] (size_t sz)
 
void visitRenderables (Renderable::Visitor *visitor, bool debugRenderables)
 

Protected Types

typedef map< String,
GeometryBucket * >::type 
CurrentGeometryMap
 

Protected Member Functions

String getGeometryFormatString (SubMeshLodGeometryLink *geom)
 Get a packed string identifying the geometry format. More...
 

Protected Attributes

CurrentGeometryMap mCurrentGeometryMap
 
GeometryBucketList mGeometryBucketList
 list of Geometry Buckets in this region More...
 
MaterialPtr mMaterial
 Pointer to material being used. More...
 
String mMaterialName
 Material being used. More...
 
LODBucketmParent
 Pointer to parent LODBucket. More...
 
TechniquemTechnique
 Active technique. More...
 

Detailed Description

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

Definition at line 254 of file OgreStaticGeometry.h.

Member Typedef Documentation

list of Geometry Buckets in this region

Definition at line 258 of file OgreStaticGeometry.h.

Constructor & Destructor Documentation

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

Member Function Documentation

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

Add children to the render queue.

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

Assign geometry to this bucket.

void Ogre::StaticGeometry::MaterialBucket::build ( bool  stencilShadows)

Build.

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

Dump contents for diagnostics.

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

Get the current Technique.

Definition at line 297 of file OgreStaticGeometry.h.

String Ogre::StaticGeometry::MaterialBucket::getGeometryFormatString ( SubMeshLodGeometryLink geom)
protected

Get a packed string identifying the geometry format.

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

Get an iterator over the contained geometry.

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

Get the material for this bucket.

Definition at line 291 of file OgreStaticGeometry.h.

const String& Ogre::StaticGeometry::MaterialBucket::getMaterialName ( void  ) const
inline

Get the material name.

Definition at line 282 of file OgreStaticGeometry.h.

LODBucket* Ogre::StaticGeometry::MaterialBucket::getParent ( void  )
inline

Definition at line 280 of file OgreStaticGeometry.h.

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete ( void *  ptr)
inlineinherited

Definition at line 95 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete ( void *  ptr,
void *   
)
inlineinherited

Definition at line 101 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete ( void *  ptr,
const char *  ,
int  ,
const char *   
)
inlineinherited

Definition at line 107 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete[] ( void *  ptr)
inlineinherited

Definition at line 112 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete[] ( void *  ptr,
const char *  ,
int  ,
const char *   
)
inlineinherited

Definition at line 118 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new ( size_t  sz,
const char *  file,
int  line,
const char *  func 
)
inlineinherited

operator new, with debug line info

Definition at line 67 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new ( size_t  sz)
inlineinherited

Definition at line 72 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new ( size_t  sz,
void *  ptr 
)
inlineinherited

placement operator new

Definition at line 78 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new[] ( size_t  sz,
const char *  file,
int  line,
const char *  func 
)
inlineinherited

array operator new, with debug line info

Definition at line 85 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new[] ( size_t  sz)
inlineinherited

Definition at line 90 of file OgreMemoryAllocatedObject.h.

void Ogre::StaticGeometry::MaterialBucket::visitRenderables ( Renderable::Visitor visitor,
bool  debugRenderables 
)

Member Data Documentation

CurrentGeometryMap Ogre::StaticGeometry::MaterialBucket::mCurrentGeometryMap
protected

Definition at line 273 of file OgreStaticGeometry.h.

GeometryBucketList Ogre::StaticGeometry::MaterialBucket::mGeometryBucketList
protected

list of Geometry Buckets in this region

Definition at line 270 of file OgreStaticGeometry.h.

MaterialPtr Ogre::StaticGeometry::MaterialBucket::mMaterial
protected

Pointer to material being used.

Definition at line 265 of file OgreStaticGeometry.h.

String Ogre::StaticGeometry::MaterialBucket::mMaterialName
protected

Material being used.

Definition at line 263 of file OgreStaticGeometry.h.

LODBucket* Ogre::StaticGeometry::MaterialBucket::mParent
protected

Pointer to parent LODBucket.

Definition at line 261 of file OgreStaticGeometry.h.

Technique* Ogre::StaticGeometry::MaterialBucket::mTechnique
protected

Active technique.

Definition at line 267 of file OgreStaticGeometry.h.


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