OGRE-Next
4.0.0unstable
Object-Oriented Graphics Rendering Engine
|
A single volume chunk mesh. More...
#include <OgreVolumeChunk.h>
Public Types | |
typedef vector< const Chunk * >::type | VecChunk |
A list of Chunks. More... | |
Public Member Functions | |
Chunk () | |
Constructor. More... | |
virtual | ~Chunk () |
Destructor. More... | |
virtual Chunk * | createInstance () |
Overridable factory method. More... | |
virtual bool | frameStarted (const FrameEvent &evt) |
Overridden from FrameListener. More... | |
virtual Real | getBoundingRadius () const |
Overridden from MovableObject. More... | |
ChunkParameters * | getChunkParameters () |
Gets the parameters with which the chunktree got loaded. More... | |
virtual void | getChunksOfLevel (const size_t level, VecChunk &result) const |
Gathers all visible chunks (containing triangles) of a specific LOD level. More... | |
virtual bool | getDualGridVisible () const |
Gets whether the debug visualization entity of the dualgrid is visible. More... | |
virtual const String & | getMovableType () const |
Overridden from MovableObject. More... | |
virtual bool | getOctreeVisible () const |
Gets whether the debug visualization entity of the octree is visible. More... | |
virtual Real | getSquaredViewDepth (const Camera *camera) const |
Overridden from Renderable. More... | |
virtual bool | getVolumeVisible () const |
Gets whether the volume mesh is visible. More... | |
virtual void | load (SceneNode *parent, const Vector3 &from, const Vector3 &to, size_t level, const ChunkParameters *parameters) |
Loads the volume mesh with all LODs. More... | |
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. More... | |
virtual void | setDualGridVisible (const bool visible) |
Shows the debug visualization entity of the dualgrid. More... | |
virtual void | setMaterial (const String &matName) |
Overridden from SimpleRenderable. More... | |
virtual void | setMaterialOfLevel (size_t level, const String &matName) |
Sets the material of all chunks of a specific level in the tree. More... | |
virtual void | setOctreeVisible (const bool visible) |
Shows the debug visualization entity of the octree. More... | |
virtual void | setVolumeVisible (const bool visible) |
Sets whether the volume mesh is visible. More... | |
Public Member Functions inherited from Ogre::FrameListener | |
virtual | ~FrameListener () |
virtual bool | frameEnded (const FrameEvent &evt) |
Called just after a frame has been rendered. More... | |
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. More... | |
Static Public Attributes | |
static const String | MOVABLE_TYPE_NAME |
The type name. More... | |
A single volume chunk mesh.
typedef vector<const Chunk*>::type Ogre::Volume::Chunk::VecChunk |
A list of Chunks.
Ogre::Volume::Chunk::Chunk | ( | ) |
Constructor.
|
virtual |
Destructor.
|
virtual |
Overridable factory method.
|
virtual |
Overridden from FrameListener.
Reimplemented from Ogre::FrameListener.
|
virtual |
Overridden from MovableObject.
ChunkParameters* Ogre::Volume::Chunk::getChunkParameters | ( | ) |
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. |
|
virtual |
Gets whether the debug visualization entity of the dualgrid is visible.
|
virtual |
Overridden from MovableObject.
|
virtual |
Gets whether the debug visualization entity of the octree is visible.
Overridden from Renderable.
|
virtual |
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. |
|
virtual |
Shows the debug visualization entity of the dualgrid.
visible | Whether the grid should be visible. |
|
virtual |
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. |
|
virtual |
Shows the debug visualization entity of the octree.
visible | Whether the octree should be visible. |
|
virtual |
Sets whether the volume mesh is visible.
visible | true if visible |
|
static |
The type name.