OMK::GroundExtension Class Reference

#include <OMKGroundExtension.h>

Inheritance diagram for OMK::GroundExtension:

Inheritance graph
[legend]
Collaboration diagram for OMK::GroundExtension:

Collaboration graph
[legend]
List of all members.

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

Detailed Description

Definition at line 14 of file OMKGroundExtension.h.


Member Function Documentation

OMK::GroundExtension::DECLARE_EXTENSION_FACTORY ( GroundExtension   )  [private]

bool GroundExtension::loadExtensionParameters ( const ConfigurationParameterDescriptor node  )  [protected, virtual]

Configuration parameters loader of Extension.

Parameters:
[in] node the root node of the configuration parameter, null if no node defined for the extension.
Returns:
should return true if all the parameters are well retrieved.
Overwrite this method to initialise the extension. This method allows the extension to get parameters of its own field.
Be careful, loadObjectParameters method is called before this method.
See How to configure an extension ? for details.

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 }


Member Data Documentation

mkSystem::CObject3dTerrain OMK::GroundExtension::_terrain [protected]

Definition at line 22 of file OMKGroundExtension.h.


logo OpenMask

Documentation generated on Mon Jun 9 11:46:04 2008

Generated with doxygen by Dimitri van Heesch ,   1997-2007