VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Private Member Functions
makVrv::DtInputDriver Class Reference

This class's main responsibility is to handle keyboard and mouse events from OSG (Qt events are routed through OSG when a Qt window is used).

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

Public Types

typedef std::list
< DtEventProcessorInterface * > 
EventProcessorList
 
typedef std::map< std::string,
makArchives::DtObserverStateRecord
ObserverStateMap
 
typedef std::map< std::string,
DtObserverConfiguration
ObserverConfigurationMap
 

Public Member Functions

 DtInputDriver (DtAgentManager &agentManager, const std::string &instanceName)
 
virtual ~DtInputDriver ()
 
virtual bool onStart ()
 
virtual bool onStop ()
 
virtual bool onTick ()
 
virtual const std::string & className () const
 
virtual bool processKeyEvent (const DtKeyEvent &keyEvent, DtChannel *channel)
 
virtual bool processMouseEvent (const DtMouseEvent &mouseEvent, DtChannel *channel)
 
virtual bool processPinchGesture (const DtPinchGesture &pinchGesture, DtChannel *channel)
 
virtual void setMouseHideProccessorEnabled (bool enabled)
 
virtual void hideMouse (DtChannel *channel, float mouseX, float mouseY)
 
virtual bool isMouseHidden () const
 
virtual void showMouse (DtChannel *channel)
 
virtual void centerMouse (DtChannel *channel)
 
virtual void setMousePosition (DtChannel *channel, float x, float y)
 
virtual void clearState ()
 
virtual void addEventProcessorToFront (DtEventProcessorInterface *epi)
 
virtual void addEventProcessorToBack (DtEventProcessorInterface *epi)
 
virtual EventProcessorListeventProcessorList ()
 
virtual DtEventProcessorInterfacefindEventProcessor (const std::string &className)
 
virtual void removeEventProcessor (DtEventProcessorInterface *epi)
 
bool saveKeyMapToFile (const DtKeyMap &keyMap, const std::string &filename) const
 
DtKeyMaploadKeyMapFromFile (const std::string &filename, bool createBackup=false)
 
void setKeyMap (const std::string &mapName)
 
const std::string & keyMap () const
 
DtKeyMapcreateKeyMap (const std::string &mapName)
 
DtKeyMapfindKeyMap (const std::string &mapName)
 
void addKeyBinding (DtKeyMap *map, DtKeyState::KeyType key, const std::string &functionName, DtKeyState::KeyModifier modifiers=DtKeyState::NO_MODIFIER, bool replace=false, DtKeyEvent::KeyEventType eventType=DtKeyEvent::KEY_DOWN)
 
void addBinaryKeyBinding (DtKeyMap *map, DtKeyState::KeyType key, const std::string &binaryName, DtKeyState::KeyModifier modifiers=DtKeyState::NO_MODIFIER, bool replace=false)
 
virtual void realizeConfiguration (const DtConfiguration &configuration)
 
virtual void realizeObserverConfiguration (const DtObserverConfiguration &configuration)
 
const ObserverConfigurationMapobserverConfigurations () const
 
void addObserverConfiguration (const DtObserverConfiguration &config)
 
void addObserverState (const std::string &observerName, const makArchives::DtObserverStateRecord &stateRecord)
 
void initializeObserver (DtObserver *observer, const makArchives::DtObserverStateRecord &stateRecord)
 
virtual void addObserver (DtObserver *observer)
 
virtual void removeObserver (DtObserver *observer)
 
virtual void removeObserver (const std::string &name)
 
virtual std::vector< DtObserver * > observers () const
 
virtual void setCurrentObserver (const std::string &observerName)
 
void setTerrainContextEnabled (bool enabled)
 
bool terrainContextEnabled () const
 
virtual void performObserverAction (const DtViewStateProcessor::ObserverAction &action)
 
virtual void toggleTerrainScaling ()
 
virtual void toggleWireframe ()
 
virtual void toggleSimulationTimePaused ()
 
virtual void incrementTerrainScaleFactor ()
 
virtual void decrementTerrainScaleFactor ()
 
virtual void toggleEntityLabels ()
 
virtual void toggleEmbarkedEntityLabels ()
 
virtual void toggleRotateEntitySymbols ()
 
virtual void toggleTacticalGraphics ()
 
virtual void toggleEntityHatLines ()
 
virtual void toggleTacticalGraphicsHatLines ()
 
virtual void toggleEntityHatMode ()
 
virtual void toggleTacticalGraphicsHatMode ()
 
virtual void toggleShowActiveTacticalGraphics ()
 
virtual void togglePropTransparencySelected ()
 
virtual void toggleViewControl ()
 
void resetObservers (DtUniqueID id)
 
virtual void setAllowObserverReset (bool allow)
 
virtual bool allowObserverReset ()
 
virtual void setObserverRestoreOnSlaveConnectEnabled (bool enable)
 
virtual bool isObserverRestoreOnSlaveConnectEnabled ()
 
void saveObservers (const std::string &filename)
 
void loadObservers (const std::string &filename, bool force=false)
 
DtElementEntry::ObjectType typeFromId (const DtUniqueID &id)
 
virtual void animateObserver (DtObserverAnimator *newAnimator)
 
virtual void removeAnimatorFromObserver (DtObserver *observer)
 
virtual void takeScreenCapture ()
 
virtual void toggleDeveloperDebugUI ()
 
bool getLastMouseEventPosition (int &x, int &y)
 
DtChannellastMouseEventChannel () const
 
DtChannelcurrentChannel () const
 
virtual DtChannelfindCurrentChannel () const
 
virtual DtObserverfindObserverByName (const std::string &name)
 
virtual const DtObserverfindObserverByName (const std::string &name) const
 
DtObservercurrentObserver () const
 
virtual DtObserverfindCurrentObserver () const
 
const DtObserverViewsManagerobserverViewsManager () const
 
DtObserverViewsManagerobserverViewsManager ()
 
- Public Member Functions inherited from makVrv::DtDriver
 DtDriver (DtAgentManager &agentManager, const std::string &instanceName)
 
virtual ~DtDriver ()
 
virtual DtConfiguration createConfiguration (bool saveAllParameters=false) const
 
DtAgentManageragentManager ()
 
virtual DtAgentManagerInterfacesceneInterface ()
 
bool started () const
 
virtual const std::string & instanceName () const
 
virtual bool autoStart () const
 
virtual void setAutoStart (bool autoStart)
 
virtual bool isWindowDependent () const
 
virtual void setIsWindowDependent (bool dep)
 
virtual void setIsUserControllable (bool)
 
virtual bool isUserControllable () const
 
virtual void setIsPersistent (bool per)
 
virtual bool isPersistent () const
 
virtual bool isOnDriverSelectionList () const
 
virtual void setOnDriverSelectionList (bool)
 
bool objectFromAgentManager (const DtUniqueID &id) const
 

Protected Types

typedef std::map< std::string,
DtObserver * > 
ObserversMap
 

Protected Member Functions

void setCurrentObserver (DtObserver *observer)
 
virtual void initializeKeyMapManager (const std::string &defaultKeyMap)
 
virtual void bindFunctions ()
 
virtual void createMaps ()
 
virtual void loadMaps (bool loadFromFactory=false)
 
void removeObserver (ObserversMap &observers, DtObserver *observer)
 
void removeObserver (ObserversMap &observers, const std::string &name)
 
void destroyObservers ()
 
bool setCurrentObserverFromChannel (const DtChannel &channel)
 
void slot_channelCreated (DtChannelManager *channelManager, DtChannel *channel)
 
void slot_channelDestroyed (DtChannelManager *channelManager, DtChannel *channel)
 
void slot_channelConfigurationModified (const std::string &deName, const std::string &winName, const std::string &oldChannelName, const DtChannelConfiguration &config)
 
void slot_attachedToChanged (DtObserver *observer)
 
void createRequiredObservers (const std::string &engineName)
 
virtual void slot_displayEngineAdded (const DtDeRecord &igRecord)
 
std::string restoreObserversPart1 ()
 
void restoreObserversPart2 (const std::string &filename)
 
virtual void slot_displayEngineRealized (const std::string &, const std::string &engineName)
 
bool trimmedMatch (DtObserver *observer)
 
bool showObserverNameWarning ()
 
void setShowObserverNameWarning (bool warn)
 
- Protected Member Functions inherited from makVrv::DtDriver
void applyChangesAndDelete (DtElementChanges *changes)
 
void reportElementCreated (DtElementID id, DtElementID parentId, DtElementEntry::ElementType type)
 
void reportElementAttribute (DtElementID id, DtElementAttribute *attribute)
 
void reportElementDestroyed (DtElementID id)
 
void start ()
 
void stop ()
 
bool tick ()
 
virtual void setInstanceName (const std::string &name)
 
virtual void installAccessories ()
 
virtual void uninstallAccessories ()
 

Protected Attributes

DtDemyDe
 
EventProcessorList myEventProcessors
 
ObserversMap myObservers
 
DtObserverControllermyObserverController
 
ObserverConfigurationMap myObserverConfigurations
 
ObserverStateMap myObserverStates
 
std::string myClassName
 
DtKeyAndMouseEventListenermyKeyAndMouseEventListener
 
int myLastMouseEventPositionX
 
int myLastMouseEventPositionY
 
DtChannelmyLastMouseEventChannel
 
DtObservermyCurrentObserver
 
bool myAllowResetFlag
 
bool myIsTerrainContextEnabled
 
DtChannelmyCurrentChannel
 
DtKeyMapManagermyCachedKeyMapManager
 
bool mySyncingObservers
 
std::list< DtObserverAnimator * > myAnimatingObservers
 
DtObserverViewsManagermyObserverViewsManager
 
DtMouseHideProcessormyMouseHideProcessor
 
bool myObserverRestoreOnSlaveConnectEnabled
 
bool myShowObserverNameWarning
 
- Protected Attributes inherited from makVrv::DtDriver
DtAgentManagermyAgentManager
 
bool myStartedFlag
 
std::string myName
 
DtConfiguration myConfiguration
 
bool myPersistentFlag
 
bool myUserControllableFlag
 
bool myRequestStateDiffPendingFlag
 
DtElementChanges myChanges
 

Private Member Functions

 DtInputDriver (const DtInputDriver &)
 
DtInputDriveroperator= (const DtInputDriver &)
 

Additional Inherited Members

- Static Protected Attributes inherited from makVrv::DtDriver
static const std::string theOnDriverSelectionList
 

Member Typedef Documentation

A list of DtEventProcessorInterface, called in order for each event until one handles it.

A map of observer names, to DtObserverStateRecords.

A map of observer names, to DtObserverConfigurations.

typedef std::map<std::string, DtObserver*> makVrv::DtInputDriver::ObserversMap
protected

Observer Manager bound.

Constructor & Destructor Documentation

makVrv::DtInputDriver::DtInputDriver ( DtAgentManager agentManager,
const std::string &  instanceName 
)

CTOR.

virtual makVrv::DtInputDriver::~DtInputDriver ( )
virtual

DTOR.

makVrv::DtInputDriver::DtInputDriver ( const DtInputDriver )
private

Copy Constructor (not implemented)

Member Function Documentation

virtual bool makVrv::DtInputDriver::onStart ( )
virtual

Create and initialize our listener.

Implements makVrv::DtDriver.

virtual bool makVrv::DtInputDriver::onStop ( )
virtual

Uninitialize and destroy our listener.

Implements makVrv::DtDriver.

virtual bool makVrv::DtInputDriver::onTick ( )
virtual

Tick our keyboard/mouse listener.

Implements makVrv::DtDriver.

virtual const std::string& makVrv::DtInputDriver::className ( ) const
virtual

Get the class name for the input driver.

Implements makVrv::DtDriver.

virtual bool makVrv::DtInputDriver::processKeyEvent ( const DtKeyEvent keyEvent,
DtChannel channel 
)
virtual

handle a key event from our listener

virtual bool makVrv::DtInputDriver::processMouseEvent ( const DtMouseEvent mouseEvent,
DtChannel channel 
)
virtual

handle a mouse event from our listener

Reimplemented in makVrf::DtVrfInputDriver.

virtual bool makVrv::DtInputDriver::processPinchGesture ( const DtPinchGesture pinchGesture,
DtChannel channel 
)
virtual
virtual void makVrv::DtInputDriver::setMouseHideProccessorEnabled ( bool  enabled)
virtual

Enable/Disable myMouseHideProcessor which, if enabled,.

virtual void makVrv::DtInputDriver::hideMouse ( DtChannel channel,
float  mouseX,
float  mouseY 
)
virtual

hide the mouse cursor

virtual bool makVrv::DtInputDriver::isMouseHidden ( ) const
virtual

Check to see if the mouse is hidden.

virtual void makVrv::DtInputDriver::showMouse ( DtChannel channel)
virtual

show the mouse cursor

virtual void makVrv::DtInputDriver::centerMouse ( DtChannel channel)
virtual

warp the mouse cursor to the center of the view

virtual void makVrv::DtInputDriver::setMousePosition ( DtChannel channel,
float  x,
float  y 
)
virtual

warp the mouse cursor to the given window position

virtual void makVrv::DtInputDriver::clearState ( )
virtual

clear any remembered keyboard modifiers and stop any observer motion

DtChannel* makVrv::DtInputDriver::currentChannel ( ) const

the last channel a mouse or keyboard event was received in. Note that this may be Null if no events have happened on any channel OR if the last channel that received an event has been destroyed. Do not hold onto channel pointers unless you are also listening for channelToBeDestroyed signals. The 'currentChannel()' form is deprecated. Our naming convention requires methods that return pointers that may be NULL to start with 'find'

virtual DtChannel* makVrv::DtInputDriver::findCurrentChannel ( ) const
virtual

the last channel a mouse or keyboard event was received in. Note that this may be Null if no events have happened on any channel OR if the last channel that received an event has been destroyed. Do not hold onto channel pointers unless you are also listening for channelToBeDestroyed signals. The 'currentChannel()' form is deprecated. Our naming convention requires methods that return pointers that may be NULL to start with 'find'

virtual void makVrv::DtInputDriver::addEventProcessorToFront ( DtEventProcessorInterface epi)
virtual

This transfers resource management of the event processor to the input driver.

virtual void makVrv::DtInputDriver::addEventProcessorToBack ( DtEventProcessorInterface epi)
virtual

Add an event processor to the driver. It will be added to the back of the processor list in priority. This transfers resource management of the event processor to the input driver.

virtual EventProcessorList& makVrv::DtInputDriver::eventProcessorList ( )
virtual

Get the list of event processors. Intended for more complex ordering of several event processors by mutating the list. Processors in the list are managed by the input driver.

virtual DtEventProcessorInterface* makVrv::DtInputDriver::findEventProcessor ( const std::string &  className)
virtual

Find an event processor owned by the input driver that has the specified class name. Returns 0 if none is found.

virtual void makVrv::DtInputDriver::removeEventProcessor ( DtEventProcessorInterface epi)
virtual

Remove an event processor from the driver. This will remove the first processor in the list that matches the passed-in pointer. This relinquishes resource management of the event processor from the input driver.

bool makVrv::DtInputDriver::saveKeyMapToFile ( const DtKeyMap keyMap,
const std::string &  filename 
) const

Save a key map to a file.

DtKeyMap* makVrv::DtInputDriver::loadKeyMapFromFile ( const std::string &  filename,
bool  createBackup = false 
)

Save a key map to a file. If createBackup is true, creates a backup object in the key map manager to manage key map backups.

void makVrv::DtInputDriver::setKeyMap ( const std::string &  mapName)

explicitly set a key map

Note that if you name a map that does not exist, the input driver will throw an exception

const std::string& makVrv::DtInputDriver::keyMap ( ) const

Get the name of the current keyMap.

DtKeyMap* makVrv::DtInputDriver::createKeyMap ( const std::string &  mapName)

create a (blank) key map

DtKeyMap* makVrv::DtInputDriver::findKeyMap ( const std::string &  mapName)

lookup a key map

void makVrv::DtInputDriver::addKeyBinding ( DtKeyMap map,
DtKeyState::KeyType  key,
const std::string &  functionName,
DtKeyState::KeyModifier  modifiers = DtKeyState::NO_MODIFIER,
bool  replace = false,
DtKeyEvent::KeyEventType  eventType = DtKeyEvent::KEY_DOWN 
)

bind a key down or key up event (possibly modified) to a function name

void makVrv::DtInputDriver::addBinaryKeyBinding ( DtKeyMap map,
DtKeyState::KeyType  key,
const std::string &  binaryName,
DtKeyState::KeyModifier  modifiers = DtKeyState::NO_MODIFIER,
bool  replace = false 
)

bind the up and down events for a key (possibly modified) to a binary function set

virtual void makVrv::DtInputDriver::realizeConfiguration ( const DtConfiguration configuration)
virtual

Realize the driver using the configuration.

Reimplemented from makVrv::DtDriver.

virtual void makVrv::DtInputDriver::realizeObserverConfiguration ( const DtObserverConfiguration configuration)
virtual
const ObserverConfigurationMap& makVrv::DtInputDriver::observerConfigurations ( ) const
void makVrv::DtInputDriver::addObserverConfiguration ( const DtObserverConfiguration config)

Observer name is already in the config... If the input driver is already started, this will create the observer indicated. In any event, the configuration goes onto the configuration list (so it will be created on inputDriver start) N.B. This method will throw an exception if you attempt to add an observer configuration for an observer that already exists.

void makVrv::DtInputDriver::addObserverState ( const std::string &  observerName,
const makArchives::DtObserverStateRecord stateRecord 
)

put this state onto the observerState map and, if the observer currently exists, set its state from this record

void makVrv::DtInputDriver::initializeObserver ( DtObserver observer,
const makArchives::DtObserverStateRecord stateRecord 
)

set the state of the specified observer from stateRecord. This does NOT put the state record onto the onbserverState map; use addObserverState to do that

virtual void makVrv::DtInputDriver::addObserver ( DtObserver observer)
virtual

Observer Management.

add an observer object to the manager

virtual void makVrv::DtInputDriver::removeObserver ( DtObserver observer)
virtual

Remove an observer object from the manager.

virtual void makVrv::DtInputDriver::removeObserver ( const std::string &  name)
virtual

Remove an observer object from the manager.

virtual std::vector<DtObserver*> makVrv::DtInputDriver::observers ( ) const
virtual

Get a list of all observers.

virtual DtObserver* makVrv::DtInputDriver::findObserverByName ( const std::string &  name)
virtual

Find an observer by its name.

virtual const DtObserver* makVrv::DtInputDriver::findObserverByName ( const std::string &  name) const
virtual

Find an observer by its name.

virtual void makVrv::DtInputDriver::setCurrentObserver ( const std::string &  observerName)
virtual

Set the current observer by name.

DtObserver* makVrv::DtInputDriver::currentObserver ( ) const

Get the current observer. This will be the observer that controls the last channel that we received any mouse or keyboard events on (and on startup, especially, it's possible that no key or mouse events have happened yet, this may return NULL. The 'currentObserver()' form is deprecated. Our naming convention requires methods that return pointers that may be NULL to start with 'find'.

virtual DtObserver* makVrv::DtInputDriver::findCurrentObserver ( ) const
virtual

Get the current observer. This will be the observer that controls the last channel that we received any mouse or keyboard events on (and on startup, especially, it's possible that no key or mouse events have happened yet, this may return NULL. The 'currentObserver()' form is deprecated. Our naming convention requires methods that return pointers that may be NULL to start with 'find'.

void makVrv::DtInputDriver::setTerrainContextEnabled ( bool  enabled)

Set whether terrain context menus are enabed.

bool makVrv::DtInputDriver::terrainContextEnabled ( ) const
virtual void makVrv::DtInputDriver::performObserverAction ( const DtViewStateProcessor::ObserverAction action)
virtual

View controls:

Run a function on the "main" observer

virtual void makVrv::DtInputDriver::toggleTerrainScaling ( )
virtual

Toggle terrain scaling on or off.

virtual void makVrv::DtInputDriver::toggleWireframe ( )
virtual

Toggle wireframe mode on or off.

virtual void makVrv::DtInputDriver::toggleSimulationTimePaused ( )
virtual

Toggle sim time pause on or off.

virtual void makVrv::DtInputDriver::incrementTerrainScaleFactor ( )
virtual

Increment terrain scale factor.

virtual void makVrv::DtInputDriver::decrementTerrainScaleFactor ( )
virtual

Decrement terrain scale factor.

virtual void makVrv::DtInputDriver::toggleEntityLabels ( )
virtual

Toggle entity labels on or off.

virtual void makVrv::DtInputDriver::toggleEmbarkedEntityLabels ( )
virtual

Toggle embarked entity labels on or off.

virtual void makVrv::DtInputDriver::toggleRotateEntitySymbols ( )
virtual

Toggle entity symbol rotate on or off.

virtual void makVrv::DtInputDriver::toggleTacticalGraphics ( )
virtual

Toggle tactical graphics display on or off.

virtual void makVrv::DtInputDriver::toggleEntityHatLines ( )
virtual

Toggle entity height above terrain lines display on or off.

virtual void makVrv::DtInputDriver::toggleTacticalGraphicsHatLines ( )
virtual

Toggle tactical graphics height above terrain lines display on or off.

virtual void makVrv::DtInputDriver::toggleEntityHatMode ( )
virtual

Toggle entity height above terrain mode.

virtual void makVrv::DtInputDriver::toggleTacticalGraphicsHatMode ( )
virtual

Toggle tactical graphics height above terrain mode.

virtual void makVrv::DtInputDriver::toggleShowActiveTacticalGraphics ( )
virtual

Toggle show active tactical graphics on or off.

virtual void makVrv::DtInputDriver::togglePropTransparencySelected ( )
virtual

Toggles the transparency of all selected props.

virtual void makVrv::DtInputDriver::toggleViewControl ( )
virtual

Toggle global listening to view controls (does not affect VR-Link driver view control listening overrides)

void makVrv::DtInputDriver::resetObservers ( DtUniqueID  id)

Reset all of the observers to the unique id.

virtual void makVrv::DtInputDriver::setAllowObserverReset ( bool  allow)
virtual

Control whether reset observers functions or not. This is used during saving/loading scene for connecting slaves not to modify the observers.

virtual bool makVrv::DtInputDriver::allowObserverReset ( )
virtual
virtual void makVrv::DtInputDriver::setObserverRestoreOnSlaveConnectEnabled ( bool  enable)
virtual

Control whether the observers are saved and restored when the slave is connected Turned off during postInit so that if a terrain is loaded on the command line and the slave is connected on the command line then it won't jump to the origin after connection.

virtual bool makVrv::DtInputDriver::isObserverRestoreOnSlaveConnectEnabled ( )
virtual
void makVrv::DtInputDriver::saveObservers ( const std::string &  filename)

Create an observer settings file.

void makVrv::DtInputDriver::loadObservers ( const std::string &  filename,
bool  force = false 
)

Load an observer settings file. This method won't actually load an observer if it thinks its waiting for an entity to attach to the force parameter overrides that.

DtElementEntry::ObjectType makVrv::DtInputDriver::typeFromId ( const DtUniqueID id)
virtual void makVrv::DtInputDriver::animateObserver ( DtObserverAnimator newAnimator)
virtual

Animate an observer to a given absolute location and orientation. The input driver takes control of the animator object; do not delete.

virtual void makVrv::DtInputDriver::removeAnimatorFromObserver ( DtObserver observer)
virtual

Remove the animator associated with the specified observer.

virtual void makVrv::DtInputDriver::takeScreenCapture ( )
virtual

Takes Screen capture of the current channel.

virtual void makVrv::DtInputDriver::toggleDeveloperDebugUI ( )
virtual

Toggle ImGui based debug ui.

const DtObserverViewsManager& makVrv::DtInputDriver::observerViewsManager ( ) const

Returns the observer view list manager.

DtObserverViewsManager& makVrv::DtInputDriver::observerViewsManager ( )

Returns the observer view list manager.

bool makVrv::DtInputDriver::getLastMouseEventPosition ( int x,
int y 
)

Return the position of the last processed mouse event.

DtChannel* makVrv::DtInputDriver::lastMouseEventChannel ( ) const

Return a pointer to the channel of the last processed mouse event.

void makVrv::DtInputDriver::setCurrentObserver ( DtObserver observer)
protected
virtual void makVrv::DtInputDriver::initializeKeyMapManager ( const std::string &  defaultKeyMap)
protectedvirtual

This will eventually load up key maps.

virtual void makVrv::DtInputDriver::bindFunctions ( )
protectedvirtual
virtual void makVrv::DtInputDriver::createMaps ( )
protectedvirtual

This creates the default key maps by hand. Kept around for now.

virtual void makVrv::DtInputDriver::loadMaps ( bool  loadFromFactory = false)
protectedvirtual

Load all the key maps (*.kmpx) files in the $APP_DIR/settings directory. If loadFromFactory is true, loads from factory directory, not app directory.

void makVrv::DtInputDriver::removeObserver ( ObserversMap observers,
DtObserver observer 
)
protected
void makVrv::DtInputDriver::removeObserver ( ObserversMap observers,
const std::string &  name 
)
protected
void makVrv::DtInputDriver::destroyObservers ( )
protected
bool makVrv::DtInputDriver::setCurrentObserverFromChannel ( const DtChannel channel)
protected
void makVrv::DtInputDriver::slot_channelCreated ( DtChannelManager channelManager,
DtChannel channel 
)
protected
void makVrv::DtInputDriver::slot_channelDestroyed ( DtChannelManager channelManager,
DtChannel channel 
)
protected
void makVrv::DtInputDriver::slot_channelConfigurationModified ( const std::string &  deName,
const std::string &  winName,
const std::string &  oldChannelName,
const DtChannelConfiguration config 
)
protected
void makVrv::DtInputDriver::slot_attachedToChanged ( DtObserver observer)
protected
void makVrv::DtInputDriver::createRequiredObservers ( const std::string &  engineName)
protected
virtual void makVrv::DtInputDriver::slot_displayEngineAdded ( const DtDeRecord igRecord)
protectedvirtual

Called when a display engine is added. Restarts this driver.

Reimplemented from makVrv::DtDriver.

std::string makVrv::DtInputDriver::restoreObserversPart1 ( )
protected

Create a temporary observer settings file using a default filename - called when a display engine is added, before shutting down. Returns the name of the file.

void makVrv::DtInputDriver::restoreObserversPart2 ( const std::string &  filename)
protected

Loads a temporary observer settings file and deletes the file.

virtual void makVrv::DtInputDriver::slot_displayEngineRealized ( const std::string &  ,
const std::string &  engineName 
)
protectedvirtual
bool makVrv::DtInputDriver::trimmedMatch ( DtObserver observer)
protected

Helper function for bindObserver where is a user does Observer1, Observer2 instead of Observer1,Observer2 it will still match.

bool makVrv::DtInputDriver::showObserverNameWarning ( )
protected

Is trimmedMatch showing warnings?

void makVrv::DtInputDriver::setShowObserverNameWarning ( bool  warn)
protected

Set whether to warn if an observer name is not in our start up list.

DtInputDriver& makVrv::DtInputDriver::operator= ( const DtInputDriver )
private

Assignment Operator (not implemented)

Member Data Documentation

DtDe& makVrv::DtInputDriver::myDe
protected
EventProcessorList makVrv::DtInputDriver::myEventProcessors
protected
ObserversMap makVrv::DtInputDriver::myObservers
protected
DtObserverController* makVrv::DtInputDriver::myObserverController
protected
ObserverConfigurationMap makVrv::DtInputDriver::myObserverConfigurations
protected
ObserverStateMap makVrv::DtInputDriver::myObserverStates
protected
std::string makVrv::DtInputDriver::myClassName
protected
DtKeyAndMouseEventListener* makVrv::DtInputDriver::myKeyAndMouseEventListener
protected
int makVrv::DtInputDriver::myLastMouseEventPositionX
protected
int makVrv::DtInputDriver::myLastMouseEventPositionY
protected
DtChannel* makVrv::DtInputDriver::myLastMouseEventChannel
protected
DtObserver* makVrv::DtInputDriver::myCurrentObserver
protected

Temp, so we can look this up ONCE each event.

bool makVrv::DtInputDriver::myAllowResetFlag
protected

Control whether observers can be reset.

bool makVrv::DtInputDriver::myIsTerrainContextEnabled
protected

Switch to enable or disable terrain context menus;.

DtChannel* makVrv::DtInputDriver::myCurrentChannel
protected
DtKeyMapManager& makVrv::DtInputDriver::myCachedKeyMapManager
protected
bool makVrv::DtInputDriver::mySyncingObservers
protected
std::list<DtObserverAnimator*> makVrv::DtInputDriver::myAnimatingObservers
protected
DtObserverViewsManager* makVrv::DtInputDriver::myObserverViewsManager
protected
DtMouseHideProcessor* makVrv::DtInputDriver::myMouseHideProcessor
protected
bool makVrv::DtInputDriver::myObserverRestoreOnSlaveConnectEnabled
protected
bool makVrv::DtInputDriver::myShowObserverNameWarning
protected

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

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)