VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | 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]

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

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
- Protected Attributes inherited from makVrv::DtEventProcessorInterface
bool myEnabled

Detailed Description

The Scene event processor handles user interaction with the scene.

Constructor & Destructor Documentation

makVrv::DtSceneEventProcessor::DtSceneEventProcessor ( DtInputDriver inputDriver,
DtDe de 
)

DTOR taking This class is created by the DtInputDriver.

virtual makVrv::DtSceneEventProcessor::~DtSceneEventProcessor ( )
virtual

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

Member Data Documentation

DtDe& makVrv::DtSceneEventProcessor::myDe
protected
DtInputDriver& makVrv::DtSceneEventProcessor::myInputDriver
protected
bool makVrv::DtSceneEventProcessor::myPickInProgress
protected
std::string makVrv::DtSceneEventProcessor::myClassName
protected

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

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)