VR-Forces 4.0.4 Class Documentation
Public Member Functions | Protected Member Functions | Protected Attributes
makVrv::DtSceneEventProcessor Class Reference

The Scene event processor handles user interaction with the scene. More...

Inheritance diagram for makVrv::DtSceneEventProcessor:
Inheritance graph
[legend]

List of all members.

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

DtDemyDe
DtInputDrivermyInputDriver
bool myPickInProgress
std::string myClassName

Detailed Description

The Scene event processor handles user interaction with the scene.


Constructor & Destructor Documentation

DTOR taking This class is created by the DtInputDriver.

DTOR.


Member Function Documentation

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]
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.


Member Data Documentation


The documentation for this class was generated from the following file:

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)