VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Member Functions
makVrv::DtVirtualRealitySettingsLogic Class Reference

Logic for the VirtualReality settings gui. More...

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

Public Member Functions

 DtVirtualRealitySettingsLogic (DtDe &de, DtVirtualRealitySettingsInterface &gui, DtPersistenceControlsInterface &persistenceGui)
 CTOR.
virtual ~DtVirtualRealitySettingsLogic ()
 DTOR.
virtual void sendSettingsToGui ()
 Update the GUI with current VirtualReality settings. Not virtual since it's called from the constructor.
- Public Member Functions inherited from makVrv::DtVirtualBaseClass
 DtVirtualBaseClass ()
 Do nothing constructor.
virtual ~DtVirtualBaseClass ()
 Virtual do nothing destructor.

Protected Member Functions

Slots for when the GUI changes
virtual void slot_enabledChanged (bool enabled)
 This signal fires when the UI enabled check box is changed.
virtual void slot_mirroringChanged (makArchives::DtVirtualRealitySettingsRecord::DtMirroring view)
 This signal fires when the UI mirroring drop down is changed.
virtual void slot_mirrorChannelChanged (std::string enabled)
 This signal fires when the UI enabled check box is changed.
virtual void slot_attachedObserverChanged (std::string observer)
 This signal fires when the UI attached observer drop down is changed, the logic will change the settings manager to reflect this.
virtual void slot_flipOverlaysChanged (bool flip)
 This signal fires when the UI flip overlays check box is changed, the logic will change the settings manger to reflect this.
Slots for when the settings changes
virtual void slot_enabledUpdated (bool enabled)
 this function is called when the settings manager changes whether or not VR is enabled so the gui can be updated
virtual void slot_mirroringUpdated (makArchives::DtVirtualRealitySettingsRecord::DtMirroring view)
 this function is called when the settings manager changes the mirror setting so the gui can be updated
virtual void slot_mirrorChannelUpdated (std::string enabled)
 this function is called when the settings manager changes the mirror channel so the gui can be updated
virtual void slot_channelsUpdated ()
 this function is called when the settings manager changes the available channels so the gui can be updated
virtual void slot_observersUpdated ()
 this function is called when the settings manager changes the available observers so the gui can be updated
virtual void slot_observerRemoved (const DtObserver *obs)
 this function is called when an observer is removed and needs to be taken out of GUI list
virtual void slot_attachedObserverUpdated (std::string observerName)
 this function is called with the settings manager changes the attached observer so the gui can be updated
virtual void slot_flipOverlaysUpdated (bool flip)
 this function is called when the settings manager changes the flip overlays setting so the gui can be updated

Private Member Functions

 DtVirtualRealitySettingsLogic ()
 prevent default constructor
 DtVirtualRealitySettingsLogic (const DtVirtualRealitySettingsLogic &)
 prevent copy-construction
DtVirtualRealitySettingsLogicoperator= (const DtVirtualRealitySettingsLogic &)
 prevent assignment

Persistence slots

DtSignalConnectionManager myConnections
DtVirtualRealitySettingsInterfacemyInterface
DtPersistenceControlsInterfacemyPersistenceControls
DtDemyDe
void on_import ()
 this function is called when the import settings button is pressed
void on_export ()
 this function is called when the export settings button is pressed
void on_importFilePathChosen (const std::string &filePath)
 this function is called when the import file path chosen button is pressed
void on_exportFilePathChosen (const std::string &filePath)
 this function is called when the export path chosen button is pressed
virtual void settingsRestored (const DtSettingsBackup *)
 Called when settings are restored.

Detailed Description

Logic for the VirtualReality settings gui.

Constructor & Destructor Documentation

makVrv::DtVirtualRealitySettingsLogic::DtVirtualRealitySettingsLogic ( )
private

prevent default constructor

makVrv::DtVirtualRealitySettingsLogic::DtVirtualRealitySettingsLogic ( const DtVirtualRealitySettingsLogic )
private

prevent copy-construction

makVrv::DtVirtualRealitySettingsLogic::DtVirtualRealitySettingsLogic ( DtDe de,
DtVirtualRealitySettingsInterface gui,
DtPersistenceControlsInterface persistenceGui 
)

CTOR.

virtual makVrv::DtVirtualRealitySettingsLogic::~DtVirtualRealitySettingsLogic ( )
virtual

DTOR.

Member Function Documentation

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

prevent assignment

virtual void makVrv::DtVirtualRealitySettingsLogic::sendSettingsToGui ( )
virtual

Update the GUI with current VirtualReality settings. Not virtual since it's called from the constructor.

virtual void makVrv::DtVirtualRealitySettingsLogic::slot_enabledChanged ( bool  enabled)
protectedvirtual

This signal fires when the UI enabled check box is changed.

The logic will change the settings manager to reflect this.

virtual void makVrv::DtVirtualRealitySettingsLogic::slot_mirroringChanged ( makArchives::DtVirtualRealitySettingsRecord::DtMirroring  view)
protectedvirtual

This signal fires when the UI mirroring drop down is changed.

The logic will change the settings manager to reflect this.

virtual void makVrv::DtVirtualRealitySettingsLogic::slot_mirrorChannelChanged ( std::string  enabled)
protectedvirtual

This signal fires when the UI enabled check box is changed.

The logic will change the settings manager to reflect this.

virtual void makVrv::DtVirtualRealitySettingsLogic::slot_attachedObserverChanged ( std::string  observer)
protectedvirtual

This signal fires when the UI attached observer drop down is changed, the logic will change the settings manager to reflect this.

virtual void makVrv::DtVirtualRealitySettingsLogic::slot_flipOverlaysChanged ( bool  flip)
protectedvirtual

This signal fires when the UI flip overlays check box is changed, the logic will change the settings manger to reflect this.

virtual void makVrv::DtVirtualRealitySettingsLogic::slot_enabledUpdated ( bool  enabled)
protectedvirtual

this function is called when the settings manager changes whether or not VR is enabled so the gui can be updated

virtual void makVrv::DtVirtualRealitySettingsLogic::slot_mirroringUpdated ( makArchives::DtVirtualRealitySettingsRecord::DtMirroring  view)
protectedvirtual

this function is called when the settings manager changes the mirror setting so the gui can be updated

virtual void makVrv::DtVirtualRealitySettingsLogic::slot_mirrorChannelUpdated ( std::string  enabled)
protectedvirtual

this function is called when the settings manager changes the mirror channel so the gui can be updated

virtual void makVrv::DtVirtualRealitySettingsLogic::slot_channelsUpdated ( )
protectedvirtual

this function is called when the settings manager changes the available channels so the gui can be updated

virtual void makVrv::DtVirtualRealitySettingsLogic::slot_observersUpdated ( )
protectedvirtual

this function is called when the settings manager changes the available observers so the gui can be updated

virtual void makVrv::DtVirtualRealitySettingsLogic::slot_observerRemoved ( const DtObserver obs)
protectedvirtual

this function is called when an observer is removed and needs to be taken out of GUI list

virtual void makVrv::DtVirtualRealitySettingsLogic::slot_attachedObserverUpdated ( std::string  observerName)
protectedvirtual

this function is called with the settings manager changes the attached observer so the gui can be updated

virtual void makVrv::DtVirtualRealitySettingsLogic::slot_flipOverlaysUpdated ( bool  flip)
protectedvirtual

this function is called when the settings manager changes the flip overlays setting so the gui can be updated

void makVrv::DtVirtualRealitySettingsLogic::on_import ( )
protected

this function is called when the import settings button is pressed

void makVrv::DtVirtualRealitySettingsLogic::on_export ( )
protected

this function is called when the export settings button is pressed

void makVrv::DtVirtualRealitySettingsLogic::on_importFilePathChosen ( const std::string &  filePath)
protected

this function is called when the import file path chosen button is pressed

void makVrv::DtVirtualRealitySettingsLogic::on_exportFilePathChosen ( const std::string &  filePath)
protected

this function is called when the export path chosen button is pressed

virtual void makVrv::DtVirtualRealitySettingsLogic::settingsRestored ( const DtSettingsBackup )
protectedvirtual

Called when settings are restored.

Resets GUI if the restored object type is of this class

Member Data Documentation

DtSignalConnectionManager makVrv::DtVirtualRealitySettingsLogic::myConnections
protected
DtVirtualRealitySettingsInterface& makVrv::DtVirtualRealitySettingsLogic::myInterface
protected
DtPersistenceControlsInterface& makVrv::DtVirtualRealitySettingsLogic::myPersistenceControls
protected
DtDe& makVrv::DtVirtualRealitySettingsLogic::myDe
protected

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

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)