VR-Forces 4.0.4 Class Documentation
Public Member Functions | Protected Member Functions | Protected Attributes
makVrv::DtObserverSettingsLogic Class Reference

Logic class for editing definition ObserverMode. More...

List of all members.

Public Member Functions

 DtObserverSettingsLogic (DtDe &de, DtPersistenceControlsInterface *persistIf, DtObserverSettingsInterface *observerModeEditorIf)
 CTOR.
 ~DtObserverSettingsLogic ()
 DTOR.
virtual void setSelectedObserver (const std::string &observerName)
 Called by the settings dialog interface to indicate that a new observer is selected.
virtual void setSelectedObserverMode (const std::string &ObserverModeName)
 Called by the settings dialog interface to indicate that a new mode is selected.
virtual void modelSetChanged (int modelSet)
virtual void keyMapChanged (const std::string &keyMap)
virtual void projectionChanged (const std::string &projection)
virtual void settingChanged (int settingKey, bool value)
virtual void setModelScaleFactor (int factor)
 Set the model scale factor for the observer mode.
virtual void setModelScaleType (DtObserverObject::ScaleType type)
 Set the model scale type for the observer mode.
virtual void setMaxModelScaleFactor (double maxScaleFactor)
 Set the max model scale factor for the observer mode.
virtual void setLinearSpeedGain (int gain)
 Set the current observer's linear speed gain.
virtual void setRotationSpeedGain (int gain)
 Set the current observer's rotation speed gain.
virtual void setOrbitSpeedGain (int gain)
 Set the current observer's orbit speed gain.
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 ()
 setup the values for the current mode.
void setupSettings ()
void setupSpeedSliders ()
void setupModelScaleFactorSlider ()
void setupModelScaleTypeSelector ()
void setupMaxModelScaleFactorSpinBox ()
void setupObserverList ()
void setupObserverModeList ()
std::string projectionToString (bool is2D)
bool projectionFromString (const std::string &is2D)
virtual void onExport ()
 Called when user wants to export observer modes to a file.
virtual void onExportSelected ()
 Called when user wants to export a single mode to a file.
virtual void onExportFilenameChosen (const std::string &, bool selected)
 Called when the export filename has been chosen.
virtual void onImport ()
 Called when a user wants to import (replace) observer modes with contents of selected file.
virtual void onImportFilenameChosen (const std::string &)
 Called when the import filename has been chose.
virtual void onMerge ()
 Called when a user wants to merge observer modes with contents of selected file.
virtual void onMergeFilenameChosen (const std::string &)
 Called when the file to merge with the existing modes has been selected.
virtual void updateDeleteEnabledState (const std::string &channelKeyToIgnore="")
virtual void setCurrentObserverSelected ()
void slot_observerModeNameChanged (int modeId)
void slot_observerModeModelSetChanged (int modeId)
void slot_observerModeKeyMapChanged (int modeId)
void slot_observerModeSettingChanged (int modeId, int settingId)
void slot_observerModeIs2DChanged (int modeId)
void slot_observerModeLinearScaledSpeedGainChanged (int modeId)
void slot_observerModeLinearUnscaledSpeedGainChanged (int modeId)
void slot_observerModeRotationSpeedGainChanged (int modeId)
void slot_observerModeOrbitSpeedGainChanged (int modeId)
void slot_observerModeGainPrecisionChanged (int modeId)
void slot_observerModeModelScaleFactorChanged (int modeId)
void slot_observerModeModelScaleTypeChanged (int modeId)
void slot_observerModeMaxModelScaleFactorChanged (int modeId)
void slot_channelConfigurationModified ()
 Called by signal when a channel configuration is modified.
void slot_channelToBeDestroyed (const std::string &displayName, const std::string &windowName, const std::string &channelName)
 Called by signal when a channel configuration is destroyed.
void slot_channelConfigurationAdded ()
 Called by signal when a channel configuration is added.
void slot_observerCreated (DtInputDriver *inputDriver, DtObserver *observer)
 called by signal when an observer is created
void slot_observerAboutToBeDestroyed (DtInputDriver *inputDriver, DtObserver *observer)
 called by signal when an observer is destroyed
void slot_observerModeChanged (DtObserver *observer, int newObserverMode)
 called by signal when an observer changes observer mode

Protected Attributes

DtDemyDe
DtObserverSettingsInterfacemyEditorInterface
DtPersistenceControlsInterfacemyPersistenceInterface
DtObservermySelectedObserver
DtObservermyObserverBeingDeleted

Detailed Description

Logic class for editing definition ObserverMode.


Constructor & Destructor Documentation

CTOR.

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::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::setModelScaleFactor ( int  factor) [virtual]

Set the model scale factor for the observer mode.

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::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 ) [protected, virtual]

setup the values for the current mode.

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

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

virtual void makVrv::DtObserverSettingsLogic::onExportSelected ( ) [protected, virtual]

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

virtual void makVrv::DtObserverSettingsLogic::onExportFilenameChosen ( const std::string &  ,
bool  selected 
) [protected, virtual]

Called when the export filename has been chosen.

Will export observer modes to given file

virtual void makVrv::DtObserverSettingsLogic::onImport ( ) [protected, virtual]

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

virtual void makVrv::DtObserverSettingsLogic::onImportFilenameChosen ( const std::string &  ) [protected, virtual]

Called when the import filename has been chose.

Will import contents of file to observer mode manager

virtual void makVrv::DtObserverSettingsLogic::onMerge ( ) [protected, virtual]

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

virtual void makVrv::DtObserverSettingsLogic::onMergeFilenameChosen ( const std::string &  ) [protected, virtual]

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

virtual void makVrv::DtObserverSettingsLogic::updateDeleteEnabledState ( const std::string &  channelKeyToIgnore = "") [protected, virtual]
virtual void makVrv::DtObserverSettingsLogic::setCurrentObserverSelected ( ) [protected, virtual]
void makVrv::DtObserverSettingsLogic::slot_observerModeSettingChanged ( int  modeId,
int  settingId 
) [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.

Called by signal when a channel configuration is added.

Used to update the observer's delete button enabled status.

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

called by signal when an observer is created

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


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

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)