24 class DtObserverModeManager;
28 makArchives::DtObserverModesRecord >
33 const std::string& name,
const std::string& displayName );
39 virtual int currentSelectedObserverMode()
const;
40 virtual void setCurrentSelectedObserverMode(
int modeKey );
74 int numberOfObserverModes()
const;
79 virtual int createObserverMode(
const std::string& stringKey,
80 const std::string& displayName );
84 virtual int cloneObserverMode(
int modeKeyOrig,
const std::string& newStringKey,
85 const std::string& newDisplayName );
90 virtual int createModeKey(
const std::string& stringKey );
93 virtual void removeObserverMode(
int mode );
97 int lookupObserverModeKey(
const std::string& stringKey )
const;
100 const std::string* findObserverModeStringKey(
int modeKey )
const;
103 bool getObserverModeById(
int modeKey,
DtObserverMode& result )
const;
109 bool getObserverModeByName(
const std::string& observerModeName,
113 std::string name(
int modeKey )
const;
116 void setName(
int modeKey,
const std::string& name );
119 int modelSet(
int modeKey )
const;
123 void setModelSet(
int modeKey,
int modelSet );
126 std::string keyMap(
int modeKey )
const;
130 void setKeyMap(
int modeKey,
const std::string& keyMap );
133 void setIs2D(
int modeKey,
bool trueOrFalse );
136 bool is2D(
int modeKey )
const;
139 void setSensor(
int modeKey,
const std::string& sensorName);
142 std::string sensor(
int modeKey )
const;
145 void setGainPrecision(
int modeKey,
int precision );
148 int gainPrecision(
int modeKey )
const;
151 void setModelScaleFactor(
int modeKey,
double modelScaleFactor );
154 double modelScaleFactor(
int modeKey )
const;
163 void setMaxModelScaleFactor(
int modeKey,
double maxModelScaleFactor );
166 double maxModelScaleFactor(
int modeKey )
const;
169 void setMaxLinearModelScaleFactor(
int modeKey,
double maxLinearModelScaleFactor );
172 double maxLinearModelScaleFactor(
int modeKey )
const;
175 void setOrbitSpeedGain(
int modeKey,
int gain );
178 int orbitSpeedGain(
int modeKey )
const;
181 void setLinearScaledSpeedGain(
int modeKey,
int gain );
184 int linearScaledSpeedGain(
int modeKey )
const;
187 void setLinearUnscaledSpeedGain(
int modeKey,
int gain );
190 int linearUnscaledSpeedGain(
int modeKey )
const;
193 void setRotationSpeedGain(
int modeKey,
int gain );
196 int rotationSpeedGain(
int modeKey )
const;
200 void setSpeedScalingMode(
int modeKey,
207 void setSpeedScalingMslModeOffset(
int modeKey,
double offset );
208 double speedScalingMslModeOffset(
int modeKey )
const;
213 void setCameraShakeEnabled(
int modeKey,
bool enabled );
214 bool cameraShakeEnabled(
int modeKey )
const;
219 void setCameraShakeIntensity(
int modeKey,
double intensity );
220 double cameraShakeIntensity(
int modeKey )
const;
227 void setObserverSetting(
int modeKey,
int settingKey,
bool val );
233 bool observerSetting(
int modeKey,
int settingKey )
const;
239 virtual void loadDefaultSettings(
bool loadOnlyDefaultSettings );
242 virtual void loadDefaultSettings(
bool loadOnlyDefaultSettings,
bool merge );
249 virtual void importSettings(
const std::string& filepath,
bool merge );
252 virtual void exportObserverMode(
int modeKey,
253 const std::string& filepath )
const;
347 template <
typename ManagerClass>
351 template <
typename ManagerClass>
367 const DtObserverMode* getObserverModeConstPtr(
int modeKey )
const;
374 virtual void clear();
376 virtual void initializeBackup();
378 virtual void slot_wireframeModeChanged(
bool onOrOff);