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

Logic class for editing definition ObserverMode.

Public Member Functions

 DtObserverSettingsLogic (DtDe &de, DtPersistenceControlsInterface *persistIf, DtObserverSettingsInterface *observerModeEditorIf)
 
virtual ~DtObserverSettingsLogic ()
 
virtual void setSelectedObserver (const std::string &observerName)
 
virtual void setSelectedObserverMode (const std::string &ObserverModeName)
 
virtual void modelSetChanged (int modelSet)
 
virtual void sensorChanged (const std::string &sensor)
 
virtual void keyMapChanged (const std::string &keyMap)
 
virtual void projectionChanged (const std::string &projection)
 
virtual void settingChanged (int settingKey, bool value)
 
virtual void northTypeChanged (DtObserverObject::NorthType northType)
 
virtual void setModelScaleFactor (int factor)
 
virtual void setModelScaleType (const std::string &type)
 
virtual void setMaxModelScaleFactor (double maxScaleFactor)
 
virtual void setLinearSpeedGain (int gain)
 
virtual void setRotationSpeedGain (int gain)
 
virtual void setOrbitSpeedGain (int gain)
 
virtual void setSpeedScalingMode (DtObserverObject::SpeedScalingMode mode)
 
virtual void setSpeedScalingMslModeOffset (double offset)
 
virtual void setCameraShakeIntensity (double intensity)
 
virtual void setCameraShakeEnabled (bool enabled)
 
virtual void setLodScaleCenterMagMinLimit (double limit)
 
virtual void setLodScaleCenterEnabled (bool enabled)
 
virtual void createObserver (const std::string &ObserverName)
 
virtual void deleteObserver (const std::string &ObserverName)
 
virtual void renameObserver (const std::string &oldName, const std::string &newName)
 
virtual void createObserverMode (const std::string &ObserverModeName)
 
virtual void deleteObserverMode (const std::string &ObserverModeName)
 
virtual void renameObserverMode (const std::string &oldName, const std::string &newName)
 

Protected Member Functions

virtual void observerModesRestored (const DtSettingsBackup *)
 
void setupValues ()
 
void setupSettings ()
 
void setupSpeedSliders ()
 
void setupModelScaleFactorSlider ()
 
void setupModelScaleTypeSelector ()
 
void setupMaxModelScaleFactorSpinBox ()
 
void setupObserverList ()
 
void setupModelScaleTypeList ()
 
void setupObserverModeList ()
 
void setupNorthTypeList ()
 
std::string projectionToString (bool is2D)
 
bool projectionFromString (const std::string &is2D)
 
virtual void onExport ()
 
virtual void onExportSelected ()
 
virtual void onExportFilenameChosen (const std::string &, bool selected)
 
virtual void onImport ()
 
virtual void onImportFilenameChosen (const std::string &)
 
virtual void onMerge ()
 
virtual void onMergeFilenameChosen (const std::string &)
 
virtual void updateDeleteEnabledState (const std::string &channelKeyToIgnore="")
 
virtual void setCurrentObserverSelected ()
 
void slot_observerModeNameChanged (int modeId)
 
void slot_observerModeSettingChanged (int modeId)
 
void slot_channelConfigurationModified ()
 
void slot_channelToBeDestroyed (const std::string &displayName, const std::string &windowName, const std::string &channelName)
 
void slot_channelConfigurationAdded ()
 
void slot_sensorAdded (DtSensor *sensor)
 
void slot_sensorRemoved (DtSensor *sensor)
 
void slot_sensorRenamed (DtSensor *sensor, const std::string &oldName)
 
void slot_observerCreated (DtInputDriver *inputDriver, DtObserver *observer)
 
void slot_observerAboutToBeDestroyed (DtInputDriver *inputDriver, DtObserver *observer)
 
void slot_observerModeChanged (DtObserver *observer, int newObserverMode)
 

Protected Attributes

DtDemyDe
 
DtObserverSettingsInterfacemyEditorInterface
 
DtPersistenceControlsInterfacemyPersistenceInterface
 
DtObservermySelectedObserver
 
DtObservermyObserverBeingDeleted
 

Constructor & Destructor Documentation

makVrv::DtObserverSettingsLogic::DtObserverSettingsLogic ( DtDe de,
DtPersistenceControlsInterface persistIf,
DtObserverSettingsInterface observerModeEditorIf 
)

CTOR.

virtual makVrv::DtObserverSettingsLogic::~DtObserverSettingsLogic ( )
virtual

DTOR.

Member Function Documentation

virtual void makVrv::DtObserverSettingsLogic::setSelectedObserver ( const std::string &  observerName)
virtual

Called by the settings dialog interface to indicate that a new observer is selected.

virtual void makVrv::DtObserverSettingsLogic::setSelectedObserverMode ( const std::string &  ObserverModeName)
virtual

Called by the settings dialog interface to indicate that a new mode is selected.

virtual void makVrv::DtObserverSettingsLogic::modelSetChanged ( int  modelSet)
virtual
virtual void makVrv::DtObserverSettingsLogic::sensorChanged ( const std::string &  sensor)
virtual
virtual void makVrv::DtObserverSettingsLogic::keyMapChanged ( const std::string &  keyMap)
virtual
virtual void makVrv::DtObserverSettingsLogic::projectionChanged ( const std::string &  projection)
virtual
virtual void makVrv::DtObserverSettingsLogic::settingChanged ( int  settingKey,
bool  value 
)
virtual
virtual void makVrv::DtObserverSettingsLogic::northTypeChanged ( DtObserverObject::NorthType  northType)
virtual

Called from the UI when the north type changes.

Parameters
northTypeThe current north type.
virtual void makVrv::DtObserverSettingsLogic::setModelScaleFactor ( int  factor)
virtual

Set the model scale factor for the observer mode.

virtual void makVrv::DtObserverSettingsLogic::setModelScaleType ( const std::string &  type)
virtual

Set the model scale type for the observer mode.

virtual void makVrv::DtObserverSettingsLogic::setMaxModelScaleFactor ( double  maxScaleFactor)
virtual

Set the max model scale factor for the observer mode.

virtual void makVrv::DtObserverSettingsLogic::setLinearSpeedGain ( int  gain)
virtual

Set the current observer's linear speed gain.

virtual void makVrv::DtObserverSettingsLogic::setRotationSpeedGain ( int  gain)
virtual

Set the current observer's rotation speed gain.

virtual void makVrv::DtObserverSettingsLogic::setOrbitSpeedGain ( int  gain)
virtual

Set the current observer's orbit speed gain.

virtual void makVrv::DtObserverSettingsLogic::setSpeedScalingMode ( DtObserverObject::SpeedScalingMode  mode)
virtual

Set the current observer's speed scaling mode.

virtual void makVrv::DtObserverSettingsLogic::setSpeedScalingMslModeOffset ( double  offset)
virtual

Set the current observer's speed scaling asl mode offset.

virtual void makVrv::DtObserverSettingsLogic::setCameraShakeIntensity ( double  intensity)
virtual

Set the current observer's camera shake intensity.

virtual void makVrv::DtObserverSettingsLogic::setCameraShakeEnabled ( bool  enabled)
virtual

Enable or disable the current observer's camera shake.

virtual void makVrv::DtObserverSettingsLogic::setLodScaleCenterMagMinLimit ( double  limit)
virtual

Set the current observer's camera shake intensity.

virtual void makVrv::DtObserverSettingsLogic::setLodScaleCenterEnabled ( bool  enabled)
virtual

Enable or disable the current observer's camera shake.

virtual void makVrv::DtObserverSettingsLogic::createObserver ( const std::string &  ObserverName)
virtual
virtual void makVrv::DtObserverSettingsLogic::deleteObserver ( const std::string &  ObserverName)
virtual
virtual void makVrv::DtObserverSettingsLogic::renameObserver ( const std::string &  oldName,
const std::string &  newName 
)
virtual
virtual void makVrv::DtObserverSettingsLogic::createObserverMode ( const std::string &  ObserverModeName)
virtual
virtual void makVrv::DtObserverSettingsLogic::deleteObserverMode ( const std::string &  ObserverModeName)
virtual
virtual void makVrv::DtObserverSettingsLogic::renameObserverMode ( const std::string &  oldName,
const std::string &  newName 
)
virtual
virtual void makVrv::DtObserverSettingsLogic::observerModesRestored ( const DtSettingsBackup )
protectedvirtual
void makVrv::DtObserverSettingsLogic::setupValues ( )
protected

setup the values for the current mode.

void makVrv::DtObserverSettingsLogic::setupSettings ( )
protected
void makVrv::DtObserverSettingsLogic::setupSpeedSliders ( )
protected
void makVrv::DtObserverSettingsLogic::setupModelScaleFactorSlider ( )
protected
void makVrv::DtObserverSettingsLogic::setupModelScaleTypeSelector ( )
protected
void makVrv::DtObserverSettingsLogic::setupMaxModelScaleFactorSpinBox ( )
protected
void makVrv::DtObserverSettingsLogic::setupObserverList ( )
protected
void makVrv::DtObserverSettingsLogic::setupModelScaleTypeList ( )
protected
void makVrv::DtObserverSettingsLogic::setupObserverModeList ( )
protected
void makVrv::DtObserverSettingsLogic::setupNorthTypeList ( )
protected

Sets up the list of available north types.

std::string makVrv::DtObserverSettingsLogic::projectionToString ( bool  is2D)
protected
bool makVrv::DtObserverSettingsLogic::projectionFromString ( const std::string &  is2D)
protected
virtual void makVrv::DtObserverSettingsLogic::onExport ( )
protectedvirtual

Called when user wants to export observer modes to a file.

virtual void makVrv::DtObserverSettingsLogic::onExportSelected ( )
protectedvirtual

Called when user wants to export a single mode to a file.

virtual void makVrv::DtObserverSettingsLogic::onExportFilenameChosen ( const std::string &  ,
bool  selected 
)
protectedvirtual

Called when the export filename has been chosen. Will export observer modes to given file.

virtual void makVrv::DtObserverSettingsLogic::onImport ( )
protectedvirtual

Called when a user wants to import (replace) observer modes with contents of selected file.

virtual void makVrv::DtObserverSettingsLogic::onImportFilenameChosen ( const std::string &  )
protectedvirtual

Called when the import filename has been chose. Will import contents of file to observer mode manager.

virtual void makVrv::DtObserverSettingsLogic::onMerge ( )
protectedvirtual

Called when a user wants to merge observer modes with contents of selected file.

virtual void makVrv::DtObserverSettingsLogic::onMergeFilenameChosen ( const std::string &  )
protectedvirtual

Called when the file to merge with the existing modes has been selected.

virtual void makVrv::DtObserverSettingsLogic::updateDeleteEnabledState ( const std::string &  channelKeyToIgnore = "")
protectedvirtual
virtual void makVrv::DtObserverSettingsLogic::setCurrentObserverSelected ( )
protectedvirtual
void makVrv::DtObserverSettingsLogic::slot_observerModeNameChanged ( int  modeId)
protected
void makVrv::DtObserverSettingsLogic::slot_observerModeSettingChanged ( int  modeId)
protected
void makVrv::DtObserverSettingsLogic::slot_channelConfigurationModified ( )
protected

Called by signal when a channel configuration is modified. Used to update the observer's delete button enabled status.

void makVrv::DtObserverSettingsLogic::slot_channelToBeDestroyed ( const std::string &  displayName,
const std::string &  windowName,
const std::string &  channelName 
)
protected

Called by signal when a channel configuration is destroyed. Used to update the observer's delete button enabled status.

void makVrv::DtObserverSettingsLogic::slot_channelConfigurationAdded ( )
protected

Called by signal when a channel configuration is added. Used to update the observer's delete button enabled status.

void makVrv::DtObserverSettingsLogic::slot_sensorAdded ( DtSensor sensor)
protected

Called by signal when a new sensor is added.

Updates the GUI by adding the new sensor

void makVrv::DtObserverSettingsLogic::slot_sensorRemoved ( DtSensor sensor)
protected

Called by signal when a sensor is about to be deleted.

Updates the GUI

void makVrv::DtObserverSettingsLogic::slot_sensorRenamed ( DtSensor sensor,
const std::string &  oldName 
)
protected

Called by signal when a sensor is renamed.

Updates the GUI

void makVrv::DtObserverSettingsLogic::slot_observerCreated ( DtInputDriver inputDriver,
DtObserver observer 
)
protected

called by signal when an observer is created

void makVrv::DtObserverSettingsLogic::slot_observerAboutToBeDestroyed ( DtInputDriver inputDriver,
DtObserver observer 
)
protected

called by signal when an observer is destroyed

void makVrv::DtObserverSettingsLogic::slot_observerModeChanged ( DtObserver observer,
int  newObserverMode 
)
protected

called by signal when an observer changes observer mode

Member Data Documentation

DtDe& makVrv::DtObserverSettingsLogic::myDe
protected
DtObserverSettingsInterface* makVrv::DtObserverSettingsLogic::myEditorInterface
protected
DtPersistenceControlsInterface* makVrv::DtObserverSettingsLogic::myPersistenceInterface
protected
DtObserver* makVrv::DtObserverSettingsLogic::mySelectedObserver
protected
DtObserver* makVrv::DtObserverSettingsLogic::myObserverBeingDeleted
protected

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

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)