#include <OMKGroundExtension.h>
Inheritance diagram for OMK::GroundExtension:
Protected Member Functions | |
virtual bool | loadExtensionParameters (const ConfigurationParameterDescriptor *node) |
Configuration parameters loader of Extension. | |
Protected Attributes | |
mkSystem::CObject3dTerrain | _terrain |
Private Member Functions | |
DECLARE_EXTENSION_FACTORY (GroundExtension) | |
Classes | |
class | GroundTerrainService |
Definition at line 14 of file OMKGroundExtension.h.
OMK::GroundExtension::DECLARE_EXTENSION_FACTORY | ( | GroundExtension | ) | [private] |
bool GroundExtension::loadExtensionParameters | ( | const ConfigurationParameterDescriptor * | node | ) | [protected, virtual] |
Configuration parameters loader of Extension.
[in] | node | the root node of the configuration parameter, null if no node defined for the extension. |
Reimplemented from OMK::Extension.
Definition at line 20 of file OMKGroundExtension.cpp.
00021 { 00022 /* 00023 const Ogre::Root& root = _owner->getRoot() ; 00024 Ogre::TerrainSceneManager* sceneManager = dynamic_cast< Ogre::TerrainSceneManager >( root.getSceneManager( "sceneManager" ) ) ; 00025 if( sceneManager ) 00026 { 00027 _terrain.init( sceneManager ) ; 00028 OBT::addService< GroundService >( ) ; 00029 } 00030 else 00031 { 00032 OMFATALERROR( "The scene manager is not a \"TerrainSceneManager\"" << std::endl << "You should define it by setting the parameter \"SceneManagerType\" to \"TerrainSceneManager\" in the \"OgreVis\" object." ) ; 00033 } 00034 */ 00035 return true ; 00036 }
mkSystem::CObject3dTerrain OMK::GroundExtension::_terrain [protected] |
Definition at line 22 of file OMKGroundExtension.h.
Documentation generated on Mon Jun 9 11:46:04 2008 |
Generated with doxygen by Dimitri van Heesch , 1997-2007 |