Ogre::InstancedGeometry::LODBucket Class Reference

A LODBucket is a collection of smaller buckets with the same LOD. More...

`#include <OgreInstancedGeometry.h>`

Inheritance diagram for Ogre::InstancedGeometry::LODBucket:
[legend]

## Public Types

typedef map< String, MaterialBucket * >::type | MaterialBucketMap
| Lookup of Material Buckets in this BatchInstance. More...
typedef MapIterator< MaterialBucketMap > | MaterialIterator
| Iterator over the materials in this LOD. More...

## Public Member Functions

| LODBucket (BatchInstance *parent, unsigned short lod, Real lodValue)
virtual | ~LODBucket ()
void | addRenderables (RenderQueue *queue, uint8 group, Real lodValue)
| Add children to the render queue. More...
void | assign (QueuedSubMesh *qsm, ushort atLod)
| Assign a queued submesh to this bucket, using specified mesh LOD. More...
void | build ()
| Build. More...
void | dump (std::ofstream &of) const
| Dump contents for diagnostics. More...
ushort | getLod (void) const
| Get the LOD index. More...
Real | getLodValue (void) const
| Get the LOD value. More...
MaterialIterator | getMaterialIterator (void)
| Get an iterator over the materials in this LOD. More...
BatchInstance * | 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 | updateContainers (MaterialBucket *bucket, String &name)
| fill the map More...
void | visitRenderables (Renderable::Visitor *visitor, bool debugRenderables)

## Protected Attributes

unsigned short | mLod
| LOD level (0 == full LOD) More...
Real | mLodValue
| LOD value at which this LOD starts to apply (squared) More...
MaterialBucketMap | mMaterialBucketMap
| Lookup of Material Buckets in this BatchInstance. More...
BatchInstance * | mParent
| Pointer to parent BatchInstance. More...
QueuedGeometryList | mQueuedGeometryList
| Geometry queued for a single LOD (deallocated here) More...

## Detailed Description

A LODBucket is a collection of smaller buckets with the same LOD.

Remarks
  LOD refers to Mesh LOD here. Material LOD can change separately at the next bucket down from this.

Definition at line 384 of file OgreInstancedGeometry.h.

## Member Typedef Documentation

## MaterialBucketMap

typedef map<String, MaterialBucket*>::type Ogre::InstancedGeometry::LODBucket::MaterialBucketMap

Lookup of Material Buckets in this BatchInstance.

Definition at line 388 of file OgreInstancedGeometry.h.

## MaterialIterator

typedef MapIterator<MaterialBucketMap> Ogre::InstancedGeometry::LODBucket::MaterialIterator

Iterator over the materials in this LOD.

Definition at line 416 of file OgreInstancedGeometry.h.

## Constructor & Destructor Documentation

## LODBucket()

Ogre::InstancedGeometry::LODBucket::LODBucket | ( | BatchInstance * | parent,
|  | unsigned short | lod,
|  | Real | lodValue
| ) |  |

## ~LODBucket()

virtual Ogre::InstancedGeometry::LODBucket::~LODBucket | ( |  | ) |

virtual

## Member Function Documentation

## addRenderables()

void Ogre::InstancedGeometry::LODBucket::addRenderables | ( | RenderQueue * | queue,
|  | uint8 | group,
|  | Real | lodValue
| ) |  |

Add children to the render queue.

## assign()

void Ogre::InstancedGeometry::LODBucket::assign | ( | QueuedSubMesh * | qsm,
|  | ushort | atLod
| ) |  |

Assign a queued submesh to this bucket, using specified mesh LOD.

## build()

void Ogre::InstancedGeometry::LODBucket::build | ( |  | ) |

Build.

## dump()

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

Dump contents for diagnostics.

## getLod()

ushort Ogre::InstancedGeometry::LODBucket::getLod | ( | void |  | ) | const

Get the LOD index.

Definition at line 405 of file OgreInstancedGeometry.h.

## getLodValue()

Real Ogre::InstancedGeometry::LODBucket::getLodValue | ( | void |  | ) | const

Get the LOD value.

Definition at line 407 of file OgreInstancedGeometry.h.

## getMaterialIterator()

MaterialIterator Ogre::InstancedGeometry::LODBucket::getMaterialIterator | ( | void |  | ) |

Get an iterator over the materials in this LOD.

## getParent()

BatchInstance* Ogre::InstancedGeometry::LODBucket::getParent | ( | void |  | ) |

Definition at line 403 of file OgreInstancedGeometry.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.

## updateContainers()

void Ogre::InstancedGeometry::LODBucket::updateContainers | ( | MaterialBucket * | bucket,
|  | String & | name
| ) |  |

fill the map

## visitRenderables()

void Ogre::InstancedGeometry::LODBucket::visitRenderables | ( | Renderable::Visitor * | visitor,
|  | bool | debugRenderables
| ) |  |

## Member Data Documentation

## mLod

unsigned short Ogre::InstancedGeometry::LODBucket::mLod

protected

LOD level (0 == full LOD)

Definition at line 393 of file OgreInstancedGeometry.h.

## mLodValue

Real Ogre::InstancedGeometry::LODBucket::mLodValue

protected

LOD value at which this LOD starts to apply (squared)

Definition at line 395 of file OgreInstancedGeometry.h.

## mMaterialBucketMap

MaterialBucketMap Ogre::InstancedGeometry::LODBucket::mMaterialBucketMap

protected

Lookup of Material Buckets in this BatchInstance.

Definition at line 397 of file OgreInstancedGeometry.h.

## mParent

BatchInstance* Ogre::InstancedGeometry::LODBucket::mParent

protected

Pointer to parent BatchInstance.

Definition at line 391 of file OgreInstancedGeometry.h.

## mQueuedGeometryList

QueuedGeometryList Ogre::InstancedGeometry::LODBucket::mQueuedGeometryList

protected

Geometry queued for a single LOD (deallocated here)

Definition at line 399 of file OgreInstancedGeometry.h.

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

- OgreInstancedGeometry.h

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