![]() |
VR-Forces 4.6 Class Documentation
|
The Scene event processor handles user interaction with the observer and the scene. More...

Public Member Functions | |
| DtObserverEventProcessor (DtInputDriver &inputDriver, DtDe &de) | |
| CTOR. | |
| virtual | ~DtObserverEventProcessor () |
| DTOR. | |
| virtual bool | isMouseLooking () const |
| virtual bool | isTerrainDragging () const |
| virtual bool | isTerrainOrbitDragging () const |
| virtual bool | isViewDragging () const |
| virtual void | getHiddenMousePosition (int &mouseX, int &mouseY) |
| in the case where the mouse is hidden (because it's being warped to the center of the screen during a drag operation) get the location of the mouse when the operation was initiated (and where the mouse will warp back to on completion). | |
| virtual bool | processMouseEvent (const DtMouseEvent &ev, DtChannel &channel) |
| Processes a mouse event on the channel. | |
| virtual bool | processKeyboardEvent (const DtKeyEvent &ev, DtChannel &channel) |
| Processes a keyboard event on the channel. | |
| virtual bool | processPinchGesture (const DtPinchGesture &ev, DtChannel &channel) |
| Processes a pinch gesture event on the channel. | |
| virtual const std::string & | className () |
| Returns the name of the processor class, to be used for identifying an event processor. | |
Public Member Functions inherited from makVrv::DtEventProcessorInterface | |
| DtEventProcessorInterface () | |
| CTOR. | |
| virtual | ~DtEventProcessorInterface () |
| DTOR. | |
| virtual void | setEnabled (bool b) |
| Get/set enabled flag. | |
| bool | enabled () const |
Static Public Member Functions | |
| static bool | isJumpToEvent (DtMouseEvent::EventType mouseEventType, DtMouseState::MouseModifier mouseModifiers, DtElementEntry::ObjectType type) |
| Check to see if a mouse event is a jumpTo event for the given object type. | |
| static bool | isAttachToEvent (DtMouseEvent::EventType mouseEventType, DtMouseState::MouseModifier mouseModifiers, DtElementEntry::ObjectType type) |
| Check to see if a mouse event is a attachTo event for the given object type. | |
The Scene event processor handles user interaction with the observer and the scene.
| makVrv::DtObserverEventProcessor::DtObserverEventProcessor | ( | DtInputDriver & | inputDriver, |
| DtDe & | de | ||
| ) |
CTOR.
|
virtual |
DTOR.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
in the case where the mouse is hidden (because it's being warped to the center of the screen during a drag operation) get the location of the mouse when the operation was initiated (and where the mouse will warp back to on completion).
This is only valid when isViewDragging() or isMouseLooking() is true.
|
virtual |
Processes a mouse 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 |
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 |
Processes a pinch gesture event on the channel.
Should return true if the event should be consumed, and false to reject it and pass it on to the next event processor.
Reimplemented from makVrv::DtEventProcessorInterface.
|
virtual |
Returns the name of the processor class, to be used for identifying an event processor.
Implements makVrv::DtEventProcessorInterface.
|
static |
Check to see if a mouse event is a jumpTo event for the given object type.
|
static |
Check to see if a mouse event is a attachTo event for the given object type.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Get the element type by id.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
This bool says we're really terrain dragging.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
The quadrant the mouse was pressed into – 1 upper left, 2 upper right 3 lower right, 4 lower left.
|
protected |
For 2D rotate, keep a "virtual" mouse to keep the actual mouse centered.
Use the virual mouse for the quadrants
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
This variable keep track of the mouse move event(exclued the center mouse event) count during the mouse look.
|
protected |
variables for keeping track of when the last
|
protected |
|
protected |