VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes
makVrf::DtGuiEventProcessor Class Reference

The Gui Event Processor will process certain events that pertain to the VRF Gui, most notably terrain zoom and box selection. More...

Inheritance diagram for makVrf::DtGuiEventProcessor:
Inheritance graph
[legend]

Public Member Functions

 DtGuiEventProcessor (makVrv::DtDe &de)
 CTOR.
virtual ~DtGuiEventProcessor ()
 DTOR.
virtual bool processMouseEvent (const makVrv::DtMouseEvent &ev, makVrv::DtChannel &channel)
 Processes a mouse event on the channel.
virtual bool processKeyboardEvent (const makVrv::DtKeyEvent &ev, makVrv::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 void setEnabled (bool b)
 Get/set enabled flag.
bool enabled () const

Static Public Member Functions

static void setCurrentMousePosition (makVrv::DtDe &, int x, int y)
static void setCurrentMousePosition (int x, int y)
static void getCurrentMousePosition (int &x, int &y)
static void setMousePositionProvider (DtMousePositionProvider *)
 Accessor for mouse position provider.
static DtMousePositionProvidermousePositionProvider ()

Protected Member Functions

virtual void cleanupBox ()
 Cleanup up box and removes from scene.
virtual void createBox (int modelSet)
 Creates box to show selection/zoom area.
virtual void setBoxFromExtents (makVrv::DtChannel &channel, int anchorX, int anchorY, int toX, int toY)
 Intersects terrain to get database positions to set box from.

Protected Attributes

makVrv::DtDemyDe
makVrv::DtOverlayPolygonModelAgent * myBox
makVrv::DtSceneObjectAgent * mySceneObjectAgent
makVrv::DtSelectionManager::IdSet myCurrentSelections
int myInitialMousePositionX
int myInitialMousePositionY
- Protected Attributes inherited from makVrv::DtEventProcessorInterface
bool myEnabled

Static Protected Attributes

static makVrv::DtUniqueID theLineId
static DtMousePositionProvidertheMousePositionProvider
static int theCurrentMousePositionX
static int theCurrentMousePositionY

Detailed Description

The Gui Event Processor will process certain events that pertain to the VRF Gui, most notably terrain zoom and box selection.

Constructor & Destructor Documentation

makVrf::DtGuiEventProcessor::DtGuiEventProcessor ( makVrv::DtDe de)

CTOR.

virtual makVrf::DtGuiEventProcessor::~DtGuiEventProcessor ( )
virtual

DTOR.

Member Function Documentation

virtual bool makVrf::DtGuiEventProcessor::processMouseEvent ( const makVrv::DtMouseEvent ev,
makVrv::DtChannel channel 
)
virtual

Processes a mouse event on the channel.

Will return true if processes event, else return false.

Implements makVrv::DtEventProcessorInterface.

virtual bool makVrf::DtGuiEventProcessor::processKeyboardEvent ( const makVrv::DtKeyEvent ev,
makVrv::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.

virtual const std::string& makVrf::DtGuiEventProcessor::className ( )
virtual

Returns the name of the processor class, to be used for identifying an event processor.

Implements makVrv::DtEventProcessorInterface.

static void makVrf::DtGuiEventProcessor::setCurrentMousePosition ( makVrv::DtDe ,
int  x,
int  y 
)
static
static void makVrf::DtGuiEventProcessor::setCurrentMousePosition ( int  x,
int  y 
)
static
static void makVrf::DtGuiEventProcessor::getCurrentMousePosition ( int x,
int y 
)
static
static void makVrf::DtGuiEventProcessor::setMousePositionProvider ( DtMousePositionProvider )
static

Accessor for mouse position provider.

static DtMousePositionProvider* makVrf::DtGuiEventProcessor::mousePositionProvider ( )
static
virtual void makVrf::DtGuiEventProcessor::cleanupBox ( )
protectedvirtual

Cleanup up box and removes from scene.

virtual void makVrf::DtGuiEventProcessor::createBox ( int  modelSet)
protectedvirtual

Creates box to show selection/zoom area.

virtual void makVrf::DtGuiEventProcessor::setBoxFromExtents ( makVrv::DtChannel channel,
int  anchorX,
int  anchorY,
int  toX,
int  toY 
)
protectedvirtual

Intersects terrain to get database positions to set box from.

Member Data Documentation

makVrv::DtDe& makVrf::DtGuiEventProcessor::myDe
protected
makVrv::DtOverlayPolygonModelAgent* makVrf::DtGuiEventProcessor::myBox
protected
makVrv::DtSceneObjectAgent* makVrf::DtGuiEventProcessor::mySceneObjectAgent
protected
makVrv::DtUniqueID makVrf::DtGuiEventProcessor::theLineId
staticprotected
DtMousePositionProvider* makVrf::DtGuiEventProcessor::theMousePositionProvider
staticprotected
makVrv::DtSelectionManager::IdSet makVrf::DtGuiEventProcessor::myCurrentSelections
protected
int makVrf::DtGuiEventProcessor::myInitialMousePositionX
protected
int makVrf::DtGuiEventProcessor::myInitialMousePositionY
protected
int makVrf::DtGuiEventProcessor::theCurrentMousePositionX
staticprotected
int makVrf::DtGuiEventProcessor::theCurrentMousePositionY
staticprotected

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

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)