#include <rendermodule.h>

Public Member Functions | |
| RenderModule (const MODULE_ID &_id, const wxString &_name, unsigned _type, EventHandler *msgSink) | |
| Class constructor. | |
| virtual | ~RenderModule () |
| Class destructor. | |
| NODE_ID | GetCameraID () const |
| Get associated camera. | |
| SCENE_ID | GetSceneID () const |
| Get associated scene ID. | |
| virtual void | Draw ()=0 |
| Main draw method. | |
| virtual void | Deinitialize ()=0 |
Protected Member Functions | |
| virtual void | processEvent (wxCommandEvent &evt) |
Process render event - Module overload. | |
Protected Attributes | |
| NODE_ID | cameraID |
| Camera node ID. | |
| Parameter::ParameterIdentificator | cameraIDParamID |
cameraID parameter identificator | |
Definition at line 22 of file rendermodule.h.
| VRUT::RenderModule::RenderModule | ( | const MODULE_ID & | _id, | |
| const wxString & | _name, | |||
| unsigned | _type, | |||
| EventHandler * | msgSink | |||
| ) | [inline] |
Class constructor.
Definition at line 53 of file rendermodule.h.
00054 : SceneModule(_id, _name, (_type | MODULE_TYPE_RENDER), msgSink), cameraID(NODE_ID_NONE) 00055 { 00056 REGISTER_PARAM_GUI_TEXTCONTROL(cameraIDParamID, wxT("cameraID"), wxString::Format(wxT("%i"), NODE_ID_NONE), wxT("ID of camera to render.")); 00057 }
| virtual VRUT::RenderModule::~RenderModule | ( | ) | [inline, virtual] |
| virtual void VRUT::RenderModule::processEvent | ( | wxCommandEvent & | evt | ) | [inline, protected, virtual] |
Process render event - Module overload.
Reimplemented from VRUT::SceneModule.
Reimplemented in VRUT::RenderGl, VRUT::RenderGlModule, VRUT::_render, VRUT::_render, VRUT::ChcRenderer, VRUT::_render, and VRUT::RayTracer.
Definition at line 31 of file rendermodule.h.
00032 { 00033 SceneModule::processEvent(evt); 00034 switch (evt.GetEventType()) 00035 { 00036 case Event::EVT_PARAM_SET: 00037 if (IS_PARAM(evt, cameraIDParamID)) 00038 { 00039 UPDATE_PARAM_FROM_EVENT_ID(cameraIDParamID, cameraID, evt); 00040 wxCommandEvent updEvt = Event::GET_EVT_RENDER_UPDATE(GetSceneID()); 00041 PostToKernel(updEvt); 00042 wxCommandEvent fitEvt = Event::GET_EVT_SCENE_CAM_FIT_NEAR_FAR(GetSceneID(), GetCameraID()); 00043 PostToKernel(fitEvt); 00044 } 00045 break; 00046 default: 00047 break; 00048 } 00049 }
| NODE_ID VRUT::RenderModule::GetCameraID | ( | ) | const [inline] |
Get associated camera.
Definition at line 64 of file rendermodule.h.
00065 { 00066 return cameraID; 00067 }
| SCENE_ID VRUT::RenderModule::GetSceneID | ( | ) | const [inline] |
Get associated scene ID.
Definition at line 69 of file rendermodule.h.
00070 { 00071 return sceneID; 00072 }
| virtual void VRUT::RenderModule::Draw | ( | ) | [pure virtual] |
Main draw method.
Implemented in VRUT::RenderGl, VRUT::RenderGlModule, VRUT::_render, VRUT::_render, VRUT::ChcRenderer, VRUT::_render, and VRUT::RayTracer.
| virtual void VRUT::RenderModule::Deinitialize | ( | ) | [pure virtual] |
Deinitialize and release render data If called explicitly, be sure to set GLContext associated with window/module
Implemented in VRUT::RenderGl, VRUT::RenderGlModule, VRUT::_render, VRUT::_render, VRUT::ChcRenderer, VRUT::_render, and VRUT::RayTracer.
NODE_ID VRUT::RenderModule::cameraID [protected] |
1.5.5