OGRE 2.1
Object-Oriented Graphics Rendering Engine
|
A single volume chunk mesh. More...
#include <OgreVolumeChunk.h>
Public Types | |
typedef vector< constChunk * >::type | VecChunk |
A list of Chunks. | |
Public Member Functions | |
Chunk (void) | |
Constructor. | |
virtual | ~Chunk (void) |
Destructor. | |
virtual Chunk * | createInstance (void) |
Overridable factory method. | |
virtual bool | frameEnded (const FrameEvent &evt) |
Called just after a frame has been rendered. | |
virtual bool | frameRenderingQueued (const FrameEvent &evt) |
Called after all render targets have had their rendering commands issued, but before render windows have been asked to flip their buffers over. | |
virtual bool | frameStarted (const FrameEvent &evt) |
Overridden from FrameListener. | |
virtual Real | getBoundingRadius () const |
Overridden from MovableObject. | |
ChunkParameters * | getChunkParameters (void) |
Gets the parameters with which the chunktree got loaded. | |
virtual void | getChunksOfLevel (const size_t level, VecChunk &result) const |
Gathers all visible chunks (containing triangles) of a specific LOD level. | |
virtual bool | getDualGridVisible (void) const |
Gets whether the debug visualization entity of the dualgrid is visible. | |
virtual const String & | getMovableType (void) const |
Overridden from MovableObject. | |
virtual bool | getOctreeVisible (void) const |
Gets whether the debug visualization entity of the octree is visible. | |
virtual Real | getSquaredViewDepth (const Camera *camera) const |
Overridden from Renderable. | |
virtual bool | getVolumeVisible (void) const |
Gets whether the volume mesh is visible. | |
virtual void | load (SceneNode *parent, const Vector3 &from, const Vector3 &to, size_t level, const ChunkParameters *parameters) |
Loads the volume mesh with all LODs. | |
virtual void | load (SceneNode *parent, SceneManager *sceneManager, const String &filename, bool validSourceResult=false, MeshBuilderCallback *lodCallback=0, const String &resourceGroup=ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME) |
Loads a TextureSource volume scene from a config file. | |
virtual void | setDualGridVisible (const bool visible) |
Shows the debug visualization entity of the dualgrid. | |
virtual void | setMaterial (const String &matName) |
Overridden from SimpleRenderable. | |
virtual void | setMaterialOfLevel (size_t level, const String &matName) |
Sets the material of all chunks of a specific level in the tree. | |
virtual void | setOctreeVisible (const bool visible) |
Shows the debug visualization entity of the octree. | |
virtual void | setVolumeVisible (const bool visible) |
Sets whether the volume mesh is visible. | |
Static Public Attributes | |
static const String | MOVABLE_TYPE_NAME |
The type name. | |
Friends | |
class | ChunkHandler |
So the actual loading functions can be called. | |
A single volume chunk mesh.
A list of Chunks.
Ogre::Volume::Chunk::Chunk | ( | void | ) |
Constructor.
Overridable factory method.
|
inlinevirtualinherited |
Called just after a frame has been rendered.
Reimplemented in Ogre::FrameTimeControllerValue.
|
inlinevirtualinherited |
Called after all render targets have had their rendering commands issued, but before render windows have been asked to flip their buffers over.
|
virtual |
Overridden from FrameListener.
Reimplemented from Ogre::FrameListener.
Overridden from MovableObject.
ChunkParameters * Ogre::Volume::Chunk::getChunkParameters | ( | void | ) |
Gets the parameters with which the chunktree got loaded.
|
virtual |
Gathers all visible chunks (containing triangles) of a specific LOD level.
level | The desired chunk level, 0 based. 0 means the chunk with the lowest level of detail. If the chunks are loaded with a level amount of 5, valid values here are 0-4. |
result | Vector where the chunks will be added to. |
Gets whether the debug visualization entity of the dualgrid is visible.
Overridden from MovableObject.
Gets whether the debug visualization entity of the octree is visible.
Overridden from Renderable.
Gets whether the volume mesh is visible.
|
virtual |
Loads the volume mesh with all LODs.
parent | The parent scene node for the volume |
from | The back lower left corner of the cell. |
to | The front upper right corner of the cell. |
level | The amount of LOD level. |
parameters | The parameters to use while loading. |
|
virtual |
Loads a TextureSource volume scene from a config file.
parent | The parent scene node for the volume. |
sceneManager | The scenemanager to construct the entity with. |
filename | The filename of the configuration file. |
validSourceResult | If you want to use the loaded source afterwards of the parameters, set this to true. Beware, that you will have to delete the pointer on your own then! On false here, it internally frees the memory for you |
lodCallback | Callback for a specific LOD level. |
resourceGroup | The resource group where to search for the configuration file. |
Shows the debug visualization entity of the dualgrid.
visible | Whether the grid should be visible. |
Overridden from SimpleRenderable.
Sets the material of this chunk and all of his children.
|
virtual |
Sets the material of all chunks of a specific level in the tree.
This allows LODs where the lower levels (== less detail and more far away) have simpler materials.
level | The tree level getting the material, 0 based. 0 means the chunk with the lowest level of detail. |
matName | The material name to set. |
Shows the debug visualization entity of the octree.
visible | Whether the octree should be visible. |
Sets whether the volume mesh is visible.
visible | true if visible |
|
friend |
So the actual loading functions can be called.