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:
[legend]

## 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...
Technique * | getCurrentTechnique (void) const
| Get the current Technique. More...
GeometryIterator | getGeometryIterator (void)
| Get an iterator over the contained geometry. More...
const MaterialPtr & | getMaterial (void) const
| Get the material for this bucket. More...
const String & | getMaterialName (void) const
| Get the material name. More...
LODBucket * | getParent (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...
LODBucket * | mParent
| Pointer to parent LODBucket. More...
Technique * | mTechnique
| 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 255 of file OgreStaticGeometry.h.

## Member Typedef Documentation

## CurrentGeometryMap

typedef map<String, GeometryBucket*>::type Ogre::StaticGeometry::MaterialBucket::CurrentGeometryMap

protected

Definition at line 273 of file OgreStaticGeometry.h.

## GeometryBucketList

typedef vector<GeometryBucket*>::type Ogre::StaticGeometry::MaterialBucket::GeometryBucketList

list of Geometry Buckets in this region

Definition at line 259 of file OgreStaticGeometry.h.

## GeometryIterator

typedef VectorIterator<GeometryBucketList> Ogre::StaticGeometry::MaterialBucket::GeometryIterator

Iterator over geometry.

Definition at line 294 of file OgreStaticGeometry.h.

## Constructor & Destructor Documentation

## MaterialBucket()

Ogre::StaticGeometry::MaterialBucket::MaterialBucket | ( | LODBucket * | parent,
|  | const String & | materialName
| ) |  |

## ~MaterialBucket()

virtual Ogre::StaticGeometry::MaterialBucket::~MaterialBucket | ( |  | ) |

virtual

## Member Function Documentation

## addRenderables()

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

Add children to the render queue.

## assign()

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

Assign geometry to this bucket.

## build()

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

Build.

## dump()

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

Dump contents for diagnostics.

## getCurrentTechnique()

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

Get the current Technique.

Definition at line 298 of file OgreStaticGeometry.h.

## getGeometryFormatString()

String Ogre::StaticGeometry::MaterialBucket::getGeometryFormatString | ( | SubMeshLodGeometryLink * | geom | ) |

protected

Get a packed string identifying the geometry format.

## getGeometryIterator()

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

Get an iterator over the contained geometry.

## getMaterial()

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

Get the material for this bucket.

Definition at line 292 of file OgreStaticGeometry.h.

## getMaterialName()

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

Get the material name.

Definition at line 283 of file OgreStaticGeometry.h.

## getParent()

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

Definition at line 281 of file OgreStaticGeometry.h.

## operator delete() [1/3]

template<class Alloc >

void Ogre::AllocatedObject< Alloc >::operator delete | ( | void * | ptr | ) |

inherited

Definition at line 96 of file OgreMemoryAllocatedObject.h.

## operator delete() [2/3]

template<class Alloc >

void Ogre::AllocatedObject< Alloc >::operator delete | ( | void * | ptr,
|  | void * |
| ) |  |

inherited

Definition at line 102 of file OgreMemoryAllocatedObject.h.

## operator delete() [3/3]

template<class Alloc >

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

inherited

Definition at line 108 of file OgreMemoryAllocatedObject.h.

## operator delete[]() [1/2]

template<class Alloc >

void Ogre::AllocatedObject< Alloc >::operator delete[] | ( | void * | ptr | ) |

inherited

Definition at line 113 of file OgreMemoryAllocatedObject.h.

## operator delete[]() [2/2]

template<class Alloc >

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

inherited

Definition at line 119 of file OgreMemoryAllocatedObject.h.

## operator new() [1/3]

template<class Alloc >

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

inherited

operator new, with debug line info

Definition at line 68 of file OgreMemoryAllocatedObject.h.

## operator new() [2/3]

template<class Alloc >

void* Ogre::AllocatedObject< Alloc >::operator new | ( | size_t | sz | ) |

inherited

Definition at line 73 of file OgreMemoryAllocatedObject.h.

## operator new() [3/3]

template<class Alloc >

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

inherited

placement operator new

Definition at line 79 of file OgreMemoryAllocatedObject.h.

## operator new[]() [1/2]

template<class Alloc >

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

inherited

array operator new, with debug line info

Definition at line 86 of file OgreMemoryAllocatedObject.h.

## operator new[]() [2/2]

template<class Alloc >

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

inherited

Definition at line 91 of file OgreMemoryAllocatedObject.h.

## visitRenderables()

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

## Member Data Documentation

## mCurrentGeometryMap

CurrentGeometryMap Ogre::StaticGeometry::MaterialBucket::mCurrentGeometryMap

protected

Definition at line 274 of file OgreStaticGeometry.h.

## mGeometryBucketList

GeometryBucketList Ogre::StaticGeometry::MaterialBucket::mGeometryBucketList

protected

list of Geometry Buckets in this region

Definition at line 271 of file OgreStaticGeometry.h.

## mMaterial

MaterialPtr Ogre::StaticGeometry::MaterialBucket::mMaterial

protected

Pointer to material being used.

Definition at line 266 of file OgreStaticGeometry.h.

## mMaterialName

String Ogre::StaticGeometry::MaterialBucket::mMaterialName

protected

Material being used.

Definition at line 264 of file OgreStaticGeometry.h.

## mParent

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

protected

Pointer to parent LODBucket.

Definition at line 262 of file OgreStaticGeometry.h.

## mTechnique

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

protected

Active technique.

Definition at line 268 of file OgreStaticGeometry.h.

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

- OgreStaticGeometry.h

Copyright © 2012 Torus Knot Software Ltd
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.