VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtObserverSettingsInterface.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2016 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 #include <vrvCoreQt/vrvCoreQt.h>
13 #include <vrvUtil/DtUnicode.h>
14 
15 namespace makVrv
16 {
17  class DtUnicode;
18 
22  {
23 
24  public:
26  virtual ~DtObserverSettingsInterface();
27 
30  virtual int currentObserverIndex() const = 0;
31 
34  virtual std::string currentObserverName() const = 0;
35 
38  virtual int findObserverInstanceIndex(const std::string& instanceName) = 0;
39 
41  virtual void setObserverInstanceNames(const std::list<std::string>& instanceNames) = 0;
42 
45  virtual void setCurrentObserverIndex(int i) = 0;
46 
50  virtual void setCurrentObserverInstanceName(const std::string& instanceName) = 0;
51 
56  virtual void addObserverInstance(const DtUnicode& name, int index = -1) = 0;
57 
63  virtual void removeObserverInstance(int i) = 0;
64 
66  virtual void setDeleteObserverEnabled( bool enabled ) = 0;
67 
70  virtual int currentObserverModeIndex() const = 0;
71 
74  virtual std::string currentObserverModeName() const = 0;
75 
78  virtual int findObserverModeInstanceIndex(const std::string& instanceName) = 0;
79 
81  virtual void setObserverModeInstanceNames(const std::list<std::string>& instanceNames) = 0;
82 
85  virtual void setCurrentObserverModeIndex(int i) = 0;
86 
90  virtual void setCurrentObserverModeInstanceName(const std::string& instanceName) = 0;
91 
96  virtual void addObserverModeInstance(const std::string& name, int index = -1) = 0;
97 
103  virtual void removeObserverModeInstance(int i) = 0;
104 
105  // ! \brief This is called by the logic if a request to create an observer fails
106  virtual void observerCreateRequestFailed( const std::string& observerName ) = 0;
107 
108  virtual void addModelSet( int modelSet, const DtUnicode& displayName ) = 0;
109  virtual void setCurrentModelSet( int modelSet ) = 0;
110 
111  virtual void addSensorMode( const std::string& sensorName ) = 0;
112  virtual void setCurrentSensorMode( const std::string& sensorName ) = 0;
113  virtual void removeSensorMode( const std::string& sensorName ) = 0;
114  virtual void renameSensorMode( const std::string& oldName, const std::string& newName ) = 0;
115  virtual void enableSensorMode( bool enable ) = 0;
116 
117  virtual void addProjection( const std::string& projectionName ) = 0;
118  virtual void setCurrentProjection( const std::string& projectionName ) = 0;
119 
120  virtual void addKeyMap( const std::string& keyMapName ) = 0;
121  virtual void setCurrentKeyMap( const std::string& keyMapName ) = 0;
122 
123  virtual void setModelScaleFactorSlider( int factor ) = 0;
124  virtual void enableModelScaleFactorSlider( bool enable ) = 0;
125  virtual void setModelScaleFactorSliderMaximum( int maximum ) = 0;
126 
127  virtual void setModelScaleTypeSelector( DtObserverObject::ScaleType scaleType ) = 0;
128  virtual void enableModelScaleTypeSelector( bool enable ) = 0;
129 
130  virtual void setMaxModelScaleFactorSpinBox( double maxScaleFactor ) = 0;
131  virtual void enableMaxModelScaleFactorSpinBox( bool enable ) = 0;
132 
133  virtual void setOrbitSpeedGainSlider( int gain ) = 0;
134  virtual void setRotationSpeedGainSlider( int gain ) = 0;
135  virtual void setLinearSpeedGainSlider( int gain ) = 0;
136  virtual void setSliderGainPrecision( int precision ) = 0;
137 
138  virtual void setSpeedScalingMode( DtObserverObject::SpeedScalingMode mode ) = 0;
139  virtual void setSpeedScalingMslModeOffset( double offset ) = 0;
140  virtual void setSpeedScalingMslModeOffsetRanges( double minRange, double maxRange ) = 0;
141  virtual void setDistanceUnitLabels( const DtUnicode& unitLabel ) = 0;
142  virtual void setDistanceDecimals( int decimals ) = 0;
143 
144  virtual void setCameraShakeEnabled( bool enabled ) = 0;
145  virtual void setCameraShakeIntensity( float intensity ) = 0;
146 
147  virtual void clearObserverSettings() = 0;
148  virtual void addObserverSetting( int key, const DtUnicode& displayName ) = 0;
149  virtual void setObserverSetting( const DtUnicode& displayName, bool checked ) = 0;
150  };
151 }

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)