VR-Engage  2.2
Loading...
Searching...
No Matches
makVre::DtSavedViewInputLogic Class Reference

Detailed Description

DtSavedViewInputLogic processes keyboard and controller inputs to navigate between saved observer views. It provides functionality for cycling through views sequentially, directly accessing specific views by number, and toggling special views such as the backup view. This component works in conjunction with the DtSavedViewUpdater to provide a complete saved view navigation system.

#include <savedViewInputLogic.h>

Inheritance diagram for makVre::DtSavedViewInputLogic:
[legend]

Public Member Functions

 DtSavedViewInputLogic (makVrv::DtDe &de, DtSavedViewUpdater &updater)
 
virtual ~DtSavedViewInputLogic () override
 
virtual void initialize () override
 
virtual void shutdown () override
 
virtual const std::string & className ()
 
virtual void nextView (float value)
 
virtual void previousView (float value)
 
virtual void toggleBackupView (float value)
 
virtual void view1 (float value)
 
virtual void view2 (float value)
 
virtual void view3 (float value)
 
virtual void view4 (float value)
 
virtual void view5 (float value)
 
virtual void view6 (float value)
 
virtual void view7 (float value)
 
virtual void view8 (float value)
 
virtual void view9 (float value)
 
virtual void view10 (float value)
 
- Public Member Functions inherited from makVre::DtInputLogic
 DtInputLogic ()
 
virtual ~DtInputLogic ()
 
virtual bool loadInputConfig (const std::string &config, const std::string &group, bool alwaysOnTop=false, bool alwaysEnabled=false)
 
virtual void unloadInputConfig (const std::string &category, const std::string &group)
 
virtual void addActionHandler (const std::string &group, const std::string &action, const DtActionDelegate &handler)
 
virtual void removeActionGroup (const std::string &group)
 
virtual void setRawInputHandler (const DtInputDelegate &inputDelegate)
 
virtual void removeRawInputHandler ()
 
virtual void removeActionHandler (const std::string &group, const std::string &action)
 

Protected Attributes

makVrv::DtDe & myDe
 
std::string myClassName
 
DtSavedViewUpdatermyUpdater
 
- Protected Attributes inherited from makVre::DtInputLogic
DtVreInputManagermyInputManager
 
std::vector< std::pair< std::string, std::string > > myInputConfigurations
 
std::unordered_map< std::string, std::vector< std::string > > myActionGroups
 
bool myHandlingRawInput
 

Constructor & Destructor Documentation

◆ DtSavedViewInputLogic()

makVre::DtSavedViewInputLogic::DtSavedViewInputLogic ( makVrv::DtDe & de,
DtSavedViewUpdater & updater )

Constructor for DtSavedViewInputLogic.

Parameters
deReference to the display engine
updaterReference to the saved view updater that will execute view changes

Initializes the input logic component with references to the display engine and the saved view updater that will perform the actual view changes

References de().

◆ ~DtSavedViewInputLogic()

virtual makVre::DtSavedViewInputLogic::~DtSavedViewInputLogic ( )
overridevirtual

Virtual destructor for DtSavedViewInputLogic.

Member Function Documentation

◆ initialize()

virtual void makVre::DtSavedViewInputLogic::initialize ( )
overridevirtual

Initializes the saved view input logic.

Loads the input configuration from commonInput.lua and sets up action handlers for view navigation commands

Reimplemented from makVre::DtInputLogic.

◆ shutdown()

virtual void makVre::DtSavedViewInputLogic::shutdown ( )
overridevirtual

Shuts down the saved view input logic.

Performs cleanup operations before component destruction

Reimplemented from makVre::DtInputLogic.

◆ className()

virtual const std::string & makVre::DtSavedViewInputLogic::className ( )
virtual

Gets the class name of this component.

Returns
String containing the class name

Returns the name of this component class for identification purposes

◆ nextView()

virtual void makVre::DtSavedViewInputLogic::nextView ( float value)
virtual

Handler for the next view input action.

Parameters
valueInput value (non-zero to trigger the action)

Advances to the next saved view in sequence when triggered

◆ previousView()

virtual void makVre::DtSavedViewInputLogic::previousView ( float value)
virtual

Handler for the previous view input action.

Parameters
valueInput value (non-zero to trigger the action)

Returns to the previous saved view in sequence when triggered

◆ toggleBackupView()

virtual void makVre::DtSavedViewInputLogic::toggleBackupView ( float value)
virtual

Handler for toggling to/from the backup view.

Parameters
valueInput value (non-zero to trigger the action)

Toggles between the current view and a view containing "Backup View" in its name. If already in the backup view, returns to the previous view.

◆ view1()

virtual void makVre::DtSavedViewInputLogic::view1 ( float value)
virtual

Handler for directly selecting view 1.

Parameters
valueInput value (non-zero to trigger the action)

◆ view2()

virtual void makVre::DtSavedViewInputLogic::view2 ( float value)
virtual

Handler for directly selecting view 2.

Parameters
valueInput value (non-zero to trigger the action)

◆ view3()

virtual void makVre::DtSavedViewInputLogic::view3 ( float value)
virtual

Handler for directly selecting view 3.

Parameters
valueInput value (non-zero to trigger the action)

◆ view4()

virtual void makVre::DtSavedViewInputLogic::view4 ( float value)
virtual

Handler for directly selecting view 4.

Parameters
valueInput value (non-zero to trigger the action)

◆ view5()

virtual void makVre::DtSavedViewInputLogic::view5 ( float value)
virtual

Handler for directly selecting view 5.

Parameters
valueInput value (non-zero to trigger the action)

◆ view6()

virtual void makVre::DtSavedViewInputLogic::view6 ( float value)
virtual

Handler for directly selecting view 6.

Parameters
valueInput value (non-zero to trigger the action)

◆ view7()

virtual void makVre::DtSavedViewInputLogic::view7 ( float value)
virtual

Handler for directly selecting view 7.

Parameters
valueInput value (non-zero to trigger the action)

◆ view8()

virtual void makVre::DtSavedViewInputLogic::view8 ( float value)
virtual

Handler for directly selecting view 8.

Parameters
valueInput value (non-zero to trigger the action)

◆ view9()

virtual void makVre::DtSavedViewInputLogic::view9 ( float value)
virtual

Handler for directly selecting view 9.

Parameters
valueInput value (non-zero to trigger the action)

◆ view10()

virtual void makVre::DtSavedViewInputLogic::view10 ( float value)
virtual

Handler for directly selecting view 10.

Parameters
valueInput value (non-zero to trigger the action)

Member Data Documentation

◆ myDe

makVrv::DtDe& makVre::DtSavedViewInputLogic::myDe
protected

Reference to the display engine.

◆ myClassName

std::string makVre::DtSavedViewInputLogic::myClassName
protected

Name of this component class.

◆ myUpdater

DtSavedViewUpdater& makVre::DtSavedViewInputLogic::myUpdater
protected

Reference to the saved view updater that executes view changes.


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