VR-Forces 5.0.3 Developer's Guide
 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  ModelSetInvalid = -1,
35  ModelSet3dModels = 0,
36  ModelSetColorizedModels = 1,
37  ModelSetMinimap = 4,
38  ModelSet2dIcons = 5
39  };
40  public:
41  static std::string theXRScaleType;
42  static std::string theLinearScaleType;
43 
44  public:
45 
49 
51  DtObserverMode( const DtObserverMode& orig );
52 
54  virtual ~DtObserverMode();
55 
57  DtObserverMode& operator=( const DtObserverMode& orig );
58 
62  void setIntKey( int intKey );
63 
65  int intKey() const;
66 
68  void setName( const std::string& name );
69 
71  const std::string& name() const;
72 
75  void setIs2D( bool trueOrFalse );
76 
78  bool is2D() const;
79 
81  void setModelSet( int modelSet );
82 
84  int modelSet() const;
85 
87  void setKeyMap( const std::string& keyMap );
88 
90  const std::string& keyMap() const;
91 
93  virtual int gainPrecision() const;
95  virtual void setGainPrecision( int amt );
97 
99  virtual const std::string& sensor() const;
101  virtual void setSensor( const std::string& sensorName );
103 
105  virtual int orbitSpeedGain() const;
107  virtual void setOrbitSpeedGain( int gain );
109 
111  virtual int linearScaledSpeedGain() const;
113  virtual void setLinearScaledSpeedGain( int gain );
115 
117  virtual int linearUnscaledSpeedGain() const;
119  virtual void setLinearUnscaledSpeedGain( int gain );
121 
122 
124  virtual int rotationSpeedGain() const;
126  virtual void setRotationSpeedGain( int gain );
128 
130  virtual double modelScaleFactor() const;
132  virtual void setModelScaleFactor( double modelScaleFactor );
134 
135  const std::string& modelScaleType() const;
137  void setModelScaleType(const std::string& modelScaleType);
139 
141  double maxModelScaleFactor() const;
143  void setMaxModelScaleFactor( double maxModelScaleFactor );
145 
147  void setSpeedScalingMode( DtObserverObject::SpeedScalingMode mode );
149  DtObserverObject::SpeedScalingMode speedScalingMode() const;
151 
153  void setSpeedScalingMslModeOffset( double offset );
155  double speedScalingMslModeOffset() const;
157 
159  void setCameraShakeEnabled( bool enabled );
161  bool cameraShakeEnabled() const;
163 
165  void setCameraShakeIntensity( double intensity );
167  double cameraShakeIntensity() const;
169 
171  void setLodScaleCenterEnabled(bool enabled);
173  bool lodScaleCenterEnabled() const;
175 
177  void setLodScaleCenterMagMinLimit(double limit);
179  double lodScaleCenterMagMinLimit() const;
181 
183  virtual void setNorthType(DtObserverObject::NorthType northType);
185  virtual DtObserverObject::NorthType northType() const;
187 
189  void setObserverSetting( int settingKey, bool value );
190 
192  bool observerSetting( int settingKey ) const;
193 
195  void getRecord( DtDe& de, makArchives::DtObserverModeRecord& record ) const;
196 
198  void setFromRecord( DtDe& de, const makArchives::DtObserverModeRecord& record );
199 
204  virtual bool wireframeModeChanged(bool onOrOff, bool& retVal );
205 
206 
207  protected:
209  DtObserverMode( int intKey );
210 
212  virtual bool hasSkyRestoreInfo();
215  virtual void setHasSkyRestoreInfo(bool trueOrFalse);
217 
219  virtual bool skyRestoreInfo();
223  virtual void setSkyRestoreInfo(bool onOrOff);
225 
226  protected:
227 
228  typedef std::map< int, bool> ObserverSettingsMap;
229 
230  int myIntKey;
231  std::string myName; // Display name
232  std::string mySensor;
234  bool myIs2D;
235  std::string myKeyMap;
242  std::string myModelScaleType;
252 
255  };
256 }
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:237
bool myIs2D
Definition: DtObserverMode.h:234
double mySpeedScalingMslModeOffset
Definition: DtObserverMode.h:245
static std::string theXRScaleType
Definition: DtObserverMode.h:41
bool myHasSkyRestoreInfo
Definition: DtObserverMode.h:253
DtObserverObject::SpeedScalingMode mySpeedScalingMode
Definition: DtObserverMode.h:244
std::string myKeyMap
Definition: DtObserverMode.h:235
static std::string theLinearScaleType
Definition: DtObserverMode.h:42
SpeedScalingMode
Definition: DtObserverObject.h:50
int myGainPrecision
Definition: DtObserverMode.h:240
int myLinearUnscaledSpeedGain
Definition: DtObserverMode.h:238
double myModelScaleFactor
Definition: DtObserverMode.h:241
Contains makVrv::DtObserverObject class.
bool myCameraShakeEnabled
Definition: DtObserverMode.h:246
int myModelSet
Definition: DtObserverMode.h:233
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
ObserverSettingsMap myObserverSettings
Definition: DtObserverMode.h:250
NorthType
Definition: DtObserverObject.h:56
std::map< int, bool > ObserverSettingsMap
Definition: DtObserverMode.h:228
double myCameraShakeIntensity
Definition: DtObserverMode.h:247
bool mySkyRestoreInfo
Definition: DtObserverMode.h:254
int myOrbitSpeedGain
Definition: DtObserverMode.h:236
DtObserverObject::NorthType myNorthType
Definition: DtObserverMode.h:251
Contains makArchives::DtObserverModeRecord class.
const char int mode
Definition: ioapi.h:38
int myIntKey
Definition: DtObserverMode.h:230
std::string myModelScaleType
Definition: DtObserverMode.h:242
double myMaxModelScaleFactor
Definition: DtObserverMode.h:243
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:70
std::string myName
Definition: DtObserverMode.h:231
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:232
bool myLodScaleCenterEnabled
Definition: DtObserverMode.h:248
int myRotationSpeedGain
Definition: DtObserverMode.h:239
Contains DLL export macros.
double myLodScaleCenterMagMinLimit
Definition: DtObserverMode.h:249

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)