VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtObserverMode.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2020 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvCore/vrvCore.h>
13 
16 
17 #include <string>
18 
19 
20 namespace makVrv
21 {
22  class DtDe;
23 
30  {
31  public:
32  enum ModelSets
33  {
34  ModelSet3dModels = 0,
35  ModelSetColorizedModels = 1,
36  ModelSetMinimap = 4,
37  ModelSet2dIcons = 5
38  };
39  public:
40  static std::string theXRScaleType;
41  static std::string theLinearScaleType;
42 
43  public:
44 
48 
50  DtObserverMode( const DtObserverMode& orig );
51 
53  virtual ~DtObserverMode();
54 
56  DtObserverMode& operator=( const DtObserverMode& orig );
57 
61  void setIntKey( int intKey );
62 
64  int intKey() const;
65 
67  void setName( const std::string& name );
68 
70  const std::string& name() const;
71 
74  void setIs2D( bool trueOrFalse );
75 
77  bool is2D() const;
78 
80  void setModelSet( int modelSet );
81 
83  int modelSet() const;
84 
86  void setKeyMap( const std::string& keyMap );
87 
89  const std::string& keyMap() const;
90 
92  virtual int gainPrecision() const;
94  virtual void setGainPrecision( int amt );
96 
98  virtual const std::string& sensor() const;
100  virtual void setSensor( const std::string& sensorName );
102 
104  virtual int orbitSpeedGain() const;
106  virtual void setOrbitSpeedGain( int gain );
108 
110  virtual int linearScaledSpeedGain() const;
112  virtual void setLinearScaledSpeedGain( int gain );
114 
116  virtual int linearUnscaledSpeedGain() const;
118  virtual void setLinearUnscaledSpeedGain( int gain );
120 
121 
123  virtual int rotationSpeedGain() const;
125  virtual void setRotationSpeedGain( int gain );
127 
129  virtual double modelScaleFactor() const;
131  virtual void setModelScaleFactor( double modelScaleFactor );
133 
134  const std::string& modelScaleType() const;
136  void setModelScaleType(const std::string& modelScaleType);
138 
140  double maxModelScaleFactor() const;
142  void setMaxModelScaleFactor( double maxModelScaleFactor );
144 
146  void setSpeedScalingMode( DtObserverObject::SpeedScalingMode mode );
148  DtObserverObject::SpeedScalingMode speedScalingMode() const;
150 
152  void setSpeedScalingMslModeOffset( double offset );
154  double speedScalingMslModeOffset() const;
156 
158  void setCameraShakeEnabled( bool enabled );
160  bool cameraShakeEnabled() const;
162 
164  void setCameraShakeIntensity( double intensity );
166  double cameraShakeIntensity() const;
168 
170  void setLodScaleCenterEnabled(bool enabled);
172  bool lodScaleCenterEnabled() const;
174 
176  void setLodScaleCenterMagMinLimit(double limit);
178  double lodScaleCenterMagMinLimit() const;
180 
182  virtual void setNorthType(DtObserverObject::NorthType northType);
184  virtual DtObserverObject::NorthType northType() const;
186 
188  void setObserverSetting( int settingKey, bool value );
189 
191  bool observerSetting( int settingKey ) const;
192 
194  void getRecord( DtDe& de, makArchives::DtObserverModeRecord& record ) const;
195 
197  void setFromRecord( DtDe& de, const makArchives::DtObserverModeRecord& record );
198 
203  virtual bool wireframeModeChanged(bool onOrOff, bool& retVal );
204 
205 
206  protected:
208  DtObserverMode( int intKey );
209 
211  virtual bool hasSkyRestoreInfo();
214  virtual void setHasSkyRestoreInfo(bool trueOrFalse);
216 
218  virtual bool skyRestoreInfo();
222  virtual void setSkyRestoreInfo(bool onOrOff);
224 
225  protected:
226 
227  typedef std::map< int, bool> ObserverSettingsMap;
228 
229  int myIntKey;
230  std::string myName; // Display name
231  std::string mySensor;
233  bool myIs2D;
234  std::string myKeyMap;
241  std::string myModelScaleType;
251 
254  };
255 }
ModelSets
Definition: DtObserverMode.h:32
DtObserverModeRecord is the serializable record used to read and write a Visual Mode&#39;s Configuration ...
Definition: DtObserverModeRecord.h:23
int myLinearScaledSpeedGain
Definition: DtObserverMode.h:236
bool myIs2D
Definition: DtObserverMode.h:233
double mySpeedScalingMslModeOffset
Definition: DtObserverMode.h:244
static std::string theXRScaleType
Definition: DtObserverMode.h:40
bool myHasSkyRestoreInfo
Definition: DtObserverMode.h:252
DtObserverObject::SpeedScalingMode mySpeedScalingMode
Definition: DtObserverMode.h:243
std::string myKeyMap
Definition: DtObserverMode.h:234
static std::string theLinearScaleType
Definition: DtObserverMode.h:41
SpeedScalingMode
Definition: DtObserverObject.h:50
int myGainPrecision
Definition: DtObserverMode.h:239
int myLinearUnscaledSpeedGain
Definition: DtObserverMode.h:237
double myModelScaleFactor
Definition: DtObserverMode.h:240
Contains makVrv::DtObserverObject class.
bool myCameraShakeEnabled
Definition: DtObserverMode.h:245
int myModelSet
Definition: DtObserverMode.h:232
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
ObserverSettingsMap myObserverSettings
Definition: DtObserverMode.h:249
NorthType
Definition: DtObserverObject.h:56
std::map< int, bool > ObserverSettingsMap
Definition: DtObserverMode.h:227
double myCameraShakeIntensity
Definition: DtObserverMode.h:246
bool mySkyRestoreInfo
Definition: DtObserverMode.h:253
int myOrbitSpeedGain
Definition: DtObserverMode.h:235
DtObserverObject::NorthType myNorthType
Definition: DtObserverMode.h:250
Contains makArchives::DtObserverModeRecord class.
const char int mode
Definition: ioapi.h:38
int myIntKey
Definition: DtObserverMode.h:229
std::string myModelScaleType
Definition: DtObserverMode.h:241
double myMaxModelScaleFactor
Definition: DtObserverMode.h:242
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
std::string myName
Definition: DtObserverMode.h:230
DtObserverMode is the class used to represent a single Visual Mode Visual Modes may be saved and rest...
Definition: DtObserverMode.h:29
voidpf uLong offset
Definition: ioapi.h:42
std::string mySensor
Definition: DtObserverMode.h:231
bool myLodScaleCenterEnabled
Definition: DtObserverMode.h:247
int myRotationSpeedGain
Definition: DtObserverMode.h:238
Contains DLL export macros.
double myLodScaleCenterMagMinLimit
Definition: DtObserverMode.h:248

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)