![]() |
VR-Forces 4.5 Class Documentation
|
The Gui Event Processor will process certain events that pertain to the VRF Gui, most notably terrain zoom and box selection. More...

Public Member Functions | |
| DtGuiEventProcessor (makVrv::DtDe &de) | |
| CTOR. | |
| virtual | ~DtGuiEventProcessor () |
| DTOR. | |
| virtual void | setBlockKeyboardEvents (bool) |
| If true block any keyboard event from being processed. | |
| virtual bool | blockKeyboardEvents () const |
| virtual bool | processMouseEvent (const makVrv::DtMouseEvent &ev, makVrv::DtChannel &channel) |
| Processes a mouse event on the channel. | |
| virtual bool | processKeyboardEvent (const makVrv::DtKeyEvent &ev, makVrv::DtChannel &channel) |
| Processes a keyboard event on the channel. | |
| virtual const std::string & | className () |
| Returns the name of the processor class, to be used for identifying an event processor. | |
| virtual void | setCurrentMousePosition (makVrv::DtDe &, int x, int y) |
| virtual void | setCurrentMousePosition (int x, int y) |
| virtual void | getCurrentMousePosition (int &x, int &y) const |
| virtual void | setMousePositionProvider (DtMousePositionProvider *) |
| Accessor for mouse position provider. | |
| virtual DtMousePositionProvider * | mousePositionProvider () |
| virtual bool | setFreezeMousePosition (bool) |
| Sets the mouse position to what it currently is and will not allow changing. | |
| virtual bool | mousePositionFrozen () const |
| virtual bool | isShiftKeyDown () const |
| Uses mouse position provider to return current state of these keys, else returns false. | |
| virtual bool | isControlKeyDown () const |
| virtual bool | isAltKeyDown () const |
Public Member Functions inherited from makVrv::DtEventProcessorInterface | |
| DtEventProcessorInterface () | |
| CTOR. | |
| virtual | ~DtEventProcessorInterface () |
| DTOR. | |
| virtual bool | processPinchGesture (const DtPinchGesture &ev, DtChannel &channel) |
| Don't require a handler for pinch gestures, but make them available. | |
| virtual void | setEnabled (bool b) |
| Get/set enabled flag. | |
| bool | enabled () const |
Public Member Functions inherited from makVrv::DtVirtualBaseClass | |
| DtVirtualBaseClass () | |
| Do nothing constructor. | |
| virtual | ~DtVirtualBaseClass () |
| Virtual do nothing destructor. | |
Static Public Member Functions | |
| static DtGuiEventProcessor & | instance (makVrv::DtDe &de) |
| Returns instance of the processor. | |
| static void | registerInstance (makVrv::DtDe &, DtGuiEventProcessor *) |
Protected Member Functions | |
| virtual void | cleanupBox () |
| Cleanup up box and removes from scene. | |
| virtual void | createBox (makVrv::DtChannel &channel) |
| Creates box to show selection/zoom area. | |
| virtual void | setBoxFromExtents (makVrv::DtChannel &channel, int anchorX, int anchorY, int toX, int toY) |
| Intersects terrain to get database positions to set box from. | |
The Gui Event Processor will process certain events that pertain to the VRF Gui, most notably terrain zoom and box selection.
| makVrf::DtGuiEventProcessor::DtGuiEventProcessor | ( | makVrv::DtDe & | de | ) |
CTOR.
|
virtual |
DTOR.
|
virtual |
If true block any keyboard event from being processed.
Will increase/decrease counter so make sure to unblock for each block
|
virtual |
|
virtual |
Processes a mouse event on the channel.
Will return true if processes event, else return false.
Implements makVrv::DtEventProcessorInterface.
|
virtual |
Processes a keyboard event on the channel.
Should return true if the event is handled successfully, and false to reject it and pass it on to the next event processor.
Implements makVrv::DtEventProcessorInterface.
|
virtual |
Returns the name of the processor class, to be used for identifying an event processor.
Implements makVrv::DtEventProcessorInterface.
|
virtual |
|
virtual |
|
virtual |
Accessor for mouse position provider.
|
virtual |
|
static |
Returns instance of the processor.
|
static |
Sets the mouse position to what it currently is and will not allow changing.
|
virtual |
|
virtual |
Uses mouse position provider to return current state of these keys, else returns false.
|
virtual |
|
virtual |
|
protectedvirtual |
Cleanup up box and removes from scene.
|
protectedvirtual |
Creates box to show selection/zoom area.
|
protectedvirtual |
Intersects terrain to get database positions to set box from.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |