OMKGroundExtension.cpp

Go to the documentation of this file.
00001 #include "OMKGroundExtension.h"
00002 #include "OMKOgreVis.h"
00003 #include "OBTServiceManager.h"
00004 
00005 using namespace OMK ;
00006 using namespace OMK::Vis ;
00007 
00008 //=============================================================================
00009 REGISTER_EXTENSION_FACTORY( GroundExtension, "Ground" ) ;
00010 //-----------------------------------------------------------------------------
00011 GroundExtension::GroundExtension( OMK::ExtensibleSimulatedObject* owner, const Name& id, bool registerExtension ) :
00012 ExtensionT< OgreVis >( owner, id, registerExtension )
00013 {
00014 }
00015 //-----------------------------------------------------------------------------
00016 GroundExtension::~GroundExtension()
00017 {
00018 }
00019 //-----------------------------------------------------------------------------
00020 bool GroundExtension::loadExtensionParameters( const ConfigurationParameterDescriptor * node ) 
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 }
00037 //-----------------------------------------------------------------------------

logo OpenMask

Documentation generated on Mon Jun 9 11:45:56 2008

Generated with doxygen by Dimitri van Heesch ,   1997-2007