VRUT::SceneModule Class Reference

Module with access to scene manager. More...

#include <scenemodule.h>

Inheritance diagram for VRUT::SceneModule:

VRUT::Module VRUT::_scene VRUT::Collision_detection VRUT::IOModule VRUT::ManipulatorModule VRUT::Optimize VRUT::RenderModule VRUT::TrackingManipulator VRUT::_io VRUT::IOFhsModule VRUT::IOImageModule VRUT::IOObjModule VRUT::IORdfModule VRUT::IOScriptingModule VRUT::IOStlModule VRUT::IOVrmlModule VRUT::_manip VRUT::CameraModule VRUT::_render VRUT::_render VRUT::_render VRUT::RayTracer VRUT::RenderGlModule

List of all members.

Public Member Functions

 SceneModule (const MODULE_ID &_id, const wxString &_name, unsigned _type, EventHandler *msgSink)
 Class constructor.
virtual ~SceneModule ()
 Class destructor.
void SetSceneMgr (SceneManager *_sceneMgr)
 Set scene manager - should be set before module's thread is started.
SceneManagerGetSceneMgr () const
 Get scene manager.

Protected Member Functions

virtual void processEvent (wxCommandEvent &evt)

Protected Attributes

SceneManagersceneMgr
 Main scene manager in kernel.
SCENE_ID sceneID
 Scene ID.
Parameter::ParameterIdentificator sceneIDParamID
 Parameter identificator for sceneID.


Detailed Description

Module with access to scene manager.

Definition at line 21 of file scenemodule.h.


Constructor & Destructor Documentation

VRUT::SceneModule::SceneModule ( const MODULE_ID _id,
const wxString &  _name,
unsigned  _type,
EventHandler msgSink 
) [inline]

Class constructor.

Definition at line 46 of file scenemodule.h.

00047                             : Module(_id, _name, (_type | MODULE_TYPE_SCENE), msgSink),
00048                             sceneMgr((SceneManager *)NULL), sceneID(SCENE_ID_NONE)
00049               {
00050                      REGISTER_PARAM_GUI_TEXTCONTROL(sceneIDParamID, wxT("sceneID"), wxString::Format(wxT("%i"), SCENE_ID_NONE), wxT("ID of scene to handle."));
00051               }

virtual VRUT::SceneModule::~SceneModule (  )  [inline, virtual]

Class destructor.

Definition at line 54 of file scenemodule.h.

00054 {}


Member Function Documentation

virtual void VRUT::SceneModule::processEvent ( wxCommandEvent &  evt  )  [inline, protected, virtual]

Process general event Overload to process other events in derived module but do not forget to call this method

Reimplemented from VRUT::Module.

Reimplemented in VRUT::CameraManipulator, VRUT::IORdfModule, VRUT::IOStlModule, VRUT::Optimize, VRUT::RenderGl, VRUT::CameraModule, VRUT::IOModule, VRUT::ManipulatorModule, VRUT::RenderGlModule, VRUT::RenderModule, VRUT::_io, VRUT::_manip, VRUT::_render, VRUT::_scene, VRUT::_render, VRUT::ChcRenderer, VRUT::Collision_detection, VRUT::IOVrmlModule, VRUT::Navigation, VRUT::_render, VRUT::RayTracer, and VRUT::TrackingManipulator.

Definition at line 31 of file scenemodule.h.

00032               {
00033                      Module::processEvent(evt);
00034                      switch (evt.GetEventType())
00035                      {
00036                      case Event::EVT_PARAM_SET:
00037                             UPDATE_PARAM_FROM_EVENT_ID(sceneIDParamID, sceneID, evt);
00038                             break;
00039                      default:
00040                             break;
00041                      }
00042               }

void VRUT::SceneModule::SetSceneMgr ( SceneManager _sceneMgr  )  [inline]

Set scene manager - should be set before module's thread is started.

Definition at line 57 of file scenemodule.h.

00058               {
00059                      sceneMgr = _sceneMgr;
00060               }

SceneManager* VRUT::SceneModule::GetSceneMgr (  )  const [inline]

Get scene manager.

Definition at line 62 of file scenemodule.h.

00063               {
00064                      wxASSERT_MSG(sceneMgr, wxT("<SceneModule>Scene manager not defined, module was not initialized properly"));
00065                      return sceneMgr;
00066               }


Member Data Documentation

Main scene manager in kernel.

Definition at line 25 of file scenemodule.h.

Scene ID.

Definition at line 27 of file scenemodule.h.

Parameter identificator for sceneID.

Definition at line 29 of file scenemodule.h.


The documentation for this class was generated from the following file:

Generated on Tue Mar 10 14:41:45 2009 for VRUT by  doxygen 1.5.5