00001 #include "OMKBoundingBoxExtension.h" 00002 #include "OMKOgreVis.h" 00003 #include "dotSceneInterface.h" 00004 //------------------------------------------------------------------------- 00005 #ifdef _USE_DOT_OCTREE 00006 #include "DotSceneManager.h" 00007 #endif 00008 //------------------------------------------------------------------------- 00009 using namespace OMK ; 00010 using namespace OMK::Inp ; 00011 //------------------------------------------------------------------------- 00012 REGISTER_EXTENSION_FACTORY( BoundingBoxExtension, "BoundingBox" ) ; 00013 //------------------------------------------------------------------------- 00014 BoundingBoxExtension::BoundingBoxExtension( ExtensibleSimulatedObject* owner, const Name& id, bool registerExtension ) 00015 : GenericKeyExtension< OMK::Vis::OgreVis >( owner, id, registerExtension, "B" ) 00016 { 00017 } 00018 //------------------------------------------------------------------------- 00019 BoundingBoxExtension::~BoundingBoxExtension() 00020 { 00021 } 00022 //------------------------------------------------------------------------- 00023 void BoundingBoxExtension::action() 00024 { 00025 Ogre::SceneManager *sceneManager = _owner->getRoot().getSceneManager( "sceneManager" ); 00026 sceneManager->showBoundingBoxes( !sceneManager->getShowBoundingBoxes() ); 00027 } 00028 //-------------------------------------------------------------------------
Documentation generated on Mon Jun 9 11:45:55 2008 |
Generated with doxygen by Dimitri van Heesch , 1997-2007 |