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

Public Member Functions | |
| DtSceneEventProcessor (DtInputDriver &inputDriver, DtDe &de) | |
| DTOR taking This class is created by the DtInputDriver. | |
| virtual | ~DtSceneEventProcessor () |
| DTOR. | |
| 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. | |
Protected Member Functions | |
| bool | pickIntoScene (const DtMouseEvent &mouseEvent, DtChannel &channel) |
| Does a pick into the scene. | |
| void | pickInitiate (const DtMouseEvent &event, double x, double y, double z) |
| Functions for implementing marquee selection. | |
| void | pickContinue (const DtMouseEvent &event) |
| void | pickComplete () |
| bool | pickInProgress () const |
| bool | requestContextMenu (DtElementEntry::ObjectType type, unsigned int x, unsigned int y, DtChannel &channel) |
| Request a context menu, returns true if a menu was signaled to be shown. | |
Protected Attributes | |
| DtDe & | myDe |
| DtInputDriver & | myInputDriver |
| bool | myPickInProgress |
| std::string | myClassName |
The Scene event processor handles user interaction with the scene.
| makVrv::DtSceneEventProcessor::DtSceneEventProcessor | ( | DtInputDriver & | inputDriver, |
| DtDe & | de | ||
| ) |
DTOR taking This class is created by the DtInputDriver.
| virtual makVrv::DtSceneEventProcessor::~DtSceneEventProcessor | ( | ) | [virtual] |
DTOR.
| virtual bool makVrv::DtSceneEventProcessor::processMouseEvent | ( | const DtMouseEvent & | ev, |
| DtChannel & | channel | ||
| ) | [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.
Reimplemented in makVrv::DtMultipleAttachEventProcessor.
| virtual bool makVrv::DtSceneEventProcessor::processKeyboardEvent | ( | const DtKeyEvent & | ev, |
| DtChannel & | channel | ||
| ) | [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.
Reimplemented in makVrv::DtMultipleAttachEventProcessor.
| virtual const std::string& makVrv::DtSceneEventProcessor::className | ( | ) | [virtual] |
Returns the name of the processor class, to be used for identifying an event processor.
Implements makVrv::DtEventProcessorInterface.
| bool makVrv::DtSceneEventProcessor::pickIntoScene | ( | const DtMouseEvent & | mouseEvent, |
| DtChannel & | channel | ||
| ) | [protected] |
Does a pick into the scene.
| void makVrv::DtSceneEventProcessor::pickInitiate | ( | const DtMouseEvent & | event, |
| double | x, | ||
| double | y, | ||
| double | z | ||
| ) | [protected] |
Functions for implementing marquee selection.
| void makVrv::DtSceneEventProcessor::pickContinue | ( | const DtMouseEvent & | event | ) | [protected] |
| void makVrv::DtSceneEventProcessor::pickComplete | ( | ) | [protected] |
| bool makVrv::DtSceneEventProcessor::pickInProgress | ( | ) | const [protected] |
| bool makVrv::DtSceneEventProcessor::requestContextMenu | ( | DtElementEntry::ObjectType | type, |
| unsigned int | x, | ||
| unsigned int | y, | ||
| DtChannel & | channel | ||
| ) | [protected] |
Request a context menu, returns true if a menu was signaled to be shown.
DtDe& makVrv::DtSceneEventProcessor::myDe [protected] |
bool makVrv::DtSceneEventProcessor::myPickInProgress [protected] |
std::string makVrv::DtSceneEventProcessor::myClassName [protected] |