![]() |
VR-Forces 4.1 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. | |
| bool | isMouseLooking () const |
| bool | isTerrainDragging () const |
| bool | isTerrainOrbitDragging () const |
| bool | isViewDragging () const |
| 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 const std::string & | className () |
| Returns the name of the processor class, to be used for identifying an event processor. | |
| void | processRightClickOnSelection (DtChannel &channel, const DtUniqueID &objectId, const DtMouseState &mouseState) |
| Process a mouse right click on selection event. | |
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. | |
Protected Attributes | |
| DtDe & | myDe |
| DtInputDriver & | myInputDriver |
| std::string | myName |
| bool | myIsMouseLooking |
| double | myLastMouseLookX |
| double | myLastMouseLookY |
| bool | myIsTerrainDragging |
| This bool says we're really terrain dragging. | |
| bool | myIsTerrainOrbitDragging |
| DtMouseEvent | myLastTerrainDragMouseEvent |
| bool | myIsViewDragging |
| double | myLastViewDragX |
| double | myLastViewDragY |
| int | myHiddenMouseX |
| int | myHiddenMouseY |
| double | myDragStartX |
| double | myDragStartY |
| double | myDragStartZ |
| char | myQuadrant |
| The quadrant the mouse was pressed into – 1 upper left, 2 upper right 3 lower right, 4 lower left. | |
| double | myVirtualMouseX |
| For 2D rotate, keep a "virtual" mouse to keep the actual mouse centered. | |
| double | myVirtualMouseY |
| double | myHalfWindowWidth |
| double | myHalfWindowHeight |
Protected Attributes inherited from makVrv::DtEventProcessorInterface | |
| bool | myEnabled |
The Scene event processor handles user interaction with the observer and the scene.
| makVrv::DtObserverEventProcessor::DtObserverEventProcessor | ( | DtInputDriver & | inputDriver, |
| DtDe & | de | ||
| ) |
CTOR.
|
virtual |
DTOR.
| bool makVrv::DtObserverEventProcessor::isMouseLooking | ( | ) | const |
| bool makVrv::DtObserverEventProcessor::isTerrainDragging | ( | ) | const |
| bool makVrv::DtObserverEventProcessor::isTerrainOrbitDragging | ( | ) | const |
| bool makVrv::DtObserverEventProcessor::isViewDragging | ( | ) | const |
| void makVrv::DtObserverEventProcessor::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).
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 |
Returns the name of the processor class, to be used for identifying an event processor.
Implements makVrv::DtEventProcessorInterface.
| void makVrv::DtObserverEventProcessor::processRightClickOnSelection | ( | DtChannel & | channel, |
| const DtUniqueID & | objectId, | ||
| const DtMouseState & | mouseState | ||
| ) |
Process a mouse right click on selection event.
|
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.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Get the element type by id.
|
protected |
|
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 |