#include <_general.h>

Public Member Functions | |
| _general (const MODULE_ID &_id, const wxString &_name, EventHandler *msgSink) | |
| Class constructor - do not alter. | |
| virtual | ~_general () |
| Class destructor - deinitialize your data. | |
| virtual wxString | GetDesc () const |
| Always overload method giving description for your module. | |
Protected Member Functions | |
| virtual void | processEvent (wxCommandEvent &evt) |
| Overload this to process events you need. | |
| virtual void | run () |
| Overload only if you need to do some action every iteration of module's loop. | |
Protected Attributes | |
| int | var |
| Add any variables. | |
| Parameter::ParameterIdentificator | varParamID |
Add var param identificator to register this as parameter. | |
Definition at line 28 of file _general.h.
| VRUT::_general::_general | ( | const MODULE_ID & | _id, | |
| const wxString & | _name, | |||
| EventHandler * | msgSink | |||
| ) | [inline] |
Class constructor - do not alter.
Initialize your variables Do not change other than param name when initializing param identificators
Register your params - choose GUI type or just register w/o GUI
Definition at line 64 of file _general.h.
00065 : Module(_id, _name, 0, msgSink), 00068 varParamID(_name, wxT("var"), _id) 00069 { 00071 REGISTER_PARAM_GUI_SLIDER(varParamID, wxT("100"), 0, 200); 00072 }
| virtual VRUT::_general::~_general | ( | ) | [inline, virtual] |
| virtual void VRUT::_general::processEvent | ( | wxCommandEvent & | evt | ) | [inline, protected, virtual] |
Overload this to process events you need.
Always call base method
Remember to process registered param update events
Reimplemented from VRUT::Module.
Definition at line 37 of file _general.h.
00038 { 00040 Module::processEvent(evt); 00041 00042 switch (evt.GetEventType()) 00043 { 00045 case Event::EVT_PARAM_SET: 00046 UPDATE_PARAM_FROM_EVENT_INT(varParamID, var, evt); 00047 break; 00048 } 00049 }
| virtual void VRUT::_general::run | ( | ) | [inline, protected, virtual] |
Overload only if you need to do some action every iteration of module's loop.
These actions below usually take place as reaction to events and not in run() method Use <className> in all your log messages
If using long time operations be sure to check for exit during them
If we are to exit return to main loop as soon as possible
Reimplemented from VRUT::Module.
Definition at line 51 of file _general.h.
| virtual wxString VRUT::_general::GetDesc | ( | ) | const [inline, virtual] |
Always overload method giving description for your module.
Implements VRUT::Module.
Definition at line 79 of file _general.h.
int VRUT::_general::var [protected] |
Add var param identificator to register this as parameter.
Definition at line 34 of file _general.h.
1.5.5