21 class DtObserverModeManager;
25 makArchives::DtObserverModesRecord >
30 const std::string& name,
const std::string& displayName );
36 virtual int currentSelectedObserverMode()
const;
37 virtual void setCurrentSelectedObserverMode(
int modeKey );
71 int numberOfObserverModes()
const;
76 virtual int createObserverMode(
const std::string& stringKey,
77 const std::string& displayName );
81 virtual int cloneObserverMode(
int modeKeyOrig,
const std::string& newStringKey,
82 const std::string& newDisplayName );
87 virtual int createModeKey(
const std::string& stringKey );
90 virtual void removeObserverMode(
int mode );
94 int lookupObserverModeKey( std::string stringKey )
const;
97 const std::string* findObserverModeStringKey(
int modeKey )
const;
100 bool getObserverModeById(
int modeKey,
DtObserverMode& result )
const;
106 bool getObserverModeByName(
const std::string& observerModeName,
110 std::string name(
int modeKey )
const;
113 void setName(
int modeKey,
const std::string& name );
116 int modelSet(
int modeKey )
const;
120 void setModelSet(
int modeKey,
int modelSet );
123 std::string keyMap(
int modeKey )
const;
127 void setKeyMap(
int modeKey,
const std::string& keyMap );
130 void setIs2D(
int modeKey,
bool trueOrFalse );
133 bool is2D(
int modeKey )
const;
136 void setSensor(
int modeKey,
const std::string& sensorName);
139 std::string sensor(
int modeKey )
const;
142 void setGainPrecision(
int modeKey,
int precision );
145 int gainPrecision(
int modeKey )
const;
148 void setModelScaleFactor(
int modeKey,
double modelScaleFactor );
151 double modelScaleFactor(
int modeKey )
const;
160 void setMaxModelScaleFactor(
int modeKey,
double maxModelScaleFactor );
163 double maxModelScaleFactor(
int modeKey )
const;
166 void setMaxLinearModelScaleFactor(
int modeKey,
double maxLinearModelScaleFactor );
169 double maxLinearModelScaleFactor(
int modeKey )
const;
172 void setOrbitSpeedGain(
int modeKey,
int gain );
175 int orbitSpeedGain(
int modeKey )
const;
178 void setLinearScaledSpeedGain(
int modeKey,
int gain );
181 int linearScaledSpeedGain(
int modeKey )
const;
184 void setLinearUnscaledSpeedGain(
int modeKey,
int gain );
187 int linearUnscaledSpeedGain(
int modeKey )
const;
190 void setRotationSpeedGain(
int modeKey,
int gain );
193 int rotationSpeedGain(
int modeKey )
const;
197 void setSpeedScalingMode(
int modeKey,
204 void setSpeedScalingMslModeOffset(
int modeKey,
double offset );
205 double speedScalingMslModeOffset(
int modeKey )
const;
210 void setCameraShakeEnabled(
int modeKey,
bool enabled );
211 bool cameraShakeEnabled(
int modeKey )
const;
216 void setCameraShakeIntensity(
int modeKey,
double intensity );
217 double cameraShakeIntensity(
int modeKey )
const;
224 void setObserverSetting(
int modeKey,
int settingKey,
bool val );
230 bool observerSetting(
int modeKey,
int settingKey )
const;
236 virtual void loadDefaultSettings(
bool loadOnlyDefaultSettings );
239 virtual void loadDefaultSettings(
bool loadOnlyDefaultSettings,
bool merge );
246 virtual void importSettings(
const std::string& filepath,
bool merge );
249 virtual void exportObserverMode(
int modeKey,
250 const std::string& filepath )
const;
344 template <
typename ManagerClass>
348 template <
typename ManagerClass>
364 const DtObserverMode* getObserverModeConstPtr(
int modeKey )
const;
371 virtual void clear();
373 virtual void initializeBackup();