VR-Forces 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) 2023 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  enum class DtModelSetId;
24 
31  {
32  public:
33  static std::string theXRScaleType;
34  static std::string theLinearScaleType;
35 
36  public:
37 
41 
43  DtObserverMode( const DtObserverMode& orig );
44 
46  virtual ~DtObserverMode();
47 
49  DtObserverMode& operator=( const DtObserverMode& orig );
50 
54  void setIntKey( int intKey );
55 
57  int intKey() const;
58 
60  void setName( const std::string& name );
61 
63  const std::string& name() const;
64 
67  void setIs2D( bool trueOrFalse );
68 
70  bool is2D() const;
71 
73  void setModelSet( DtModelSetId modelSet );
74 
76  DtModelSetId modelSet() const;
77 
79  void setKeyMap( const std::string& keyMap );
80 
82  const std::string& keyMap() const;
83 
85  virtual int gainPrecision() const;
87  virtual void setGainPrecision( int amt );
89 
91  virtual const std::string& sensor() const;
93  virtual void setSensor( const std::string& sensorName );
95 
97  virtual int orbitSpeedGain() const;
99  virtual void setOrbitSpeedGain( int gain );
101 
103  virtual int linearScaledSpeedGain() const;
105  virtual void setLinearScaledSpeedGain( int gain );
107 
109  virtual int linearUnscaledSpeedGain() const;
111  virtual void setLinearUnscaledSpeedGain( int gain );
113 
114 
116  virtual int rotationSpeedGain() const;
118  virtual void setRotationSpeedGain( int gain );
120 
122  virtual double modelScaleFactor() const;
124  virtual void setModelScaleFactor( double modelScaleFactor );
126 
127  const std::string& modelScaleType() const;
129  void setModelScaleType(const std::string& modelScaleType);
131 
133  double maxModelScaleFactor() const;
135  void setMaxModelScaleFactor( double maxModelScaleFactor );
137 
139  void setSpeedScalingMode( DtObserverObject::SpeedScalingMode mode );
141  DtObserverObject::SpeedScalingMode speedScalingMode() const;
143 
145  void setSpeedScalingMslModeOffset( double offset );
147  double speedScalingMslModeOffset() const;
149 
151  void setCameraShakeEnabled( bool enabled );
153  bool cameraShakeEnabled() const;
155 
157  void setCameraShakeIntensity( double intensity );
159  double cameraShakeIntensity() const;
161 
163  void setLodScaleCenterEnabled(bool enabled);
165  bool lodScaleCenterEnabled() const;
167 
169  void setLodScaleCenterMagMinLimit(double limit);
171  double lodScaleCenterMagMinLimit() const;
173 
175  virtual void setNorthType(DtObserverObject::NorthType northType);
177  virtual DtObserverObject::NorthType northType() const;
179 
183  virtual void setColorControlEnabled(bool enabled);
184 
186  virtual bool colorControlEnabled() const;
187 
191  virtual void setColorControlInvert(bool enabled);
192 
194  virtual bool colorControlInvert() const;
195 
199  virtual void setColorControlContrast(double value);
200 
202  virtual double colorControlContrast() const;
203 
207  virtual void setColorControlBrightness(double value);
208 
210  virtual double colorControlBrightness() const;
211 
215  virtual void setColorControlColorMix(double value);
216 
218  virtual double colorControlColorMix() const;
219 
221  void setObserverSetting( int settingKey, bool value );
222 
224  bool observerSetting( int settingKey ) const;
225 
227  void getRecord( DtDe& de, makArchives::DtObserverModeRecord& record ) const;
228 
230  void setFromRecord( DtDe& de, const makArchives::DtObserverModeRecord& record );
231 
236  virtual bool wireframeModeChanged(bool onOrOff, bool& retVal );
237 
238 
239  protected:
241  DtObserverMode( int intKey );
242 
244  virtual bool hasSkyRestoreInfo();
247  virtual void setHasSkyRestoreInfo(bool trueOrFalse);
249 
251  virtual bool skyRestoreInfo();
255  virtual void setSkyRestoreInfo(bool onOrOff);
257 
258  protected:
259 
260  typedef std::map< int, bool> ObserverSettingsMap;
261 
262  int myIntKey;
263  std::string myName; // Display name
264  std::string mySensor;
266  bool myIs2D;
267  std::string myKeyMap;
274  std::string myModelScaleType;
289 
292  };
293 }
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:269
bool myIs2D
Definition: DtObserverMode.h:266
double mySpeedScalingMslModeOffset
Definition: DtObserverMode.h:277
static std::string theXRScaleType
Definition: DtObserverMode.h:33
float myColorControlBrightness
Definition: DtObserverMode.h:287
bool myHasSkyRestoreInfo
Definition: DtObserverMode.h:290
DtObserverObject::SpeedScalingMode mySpeedScalingMode
Definition: DtObserverMode.h:276
float myColorControlColorMix
Definition: DtObserverMode.h:288
std::string myKeyMap
Definition: DtObserverMode.h:267
static std::string theLinearScaleType
Definition: DtObserverMode.h:34
SpeedScalingMode
Definition: DtObserverObject.h:53
int myGainPrecision
Definition: DtObserverMode.h:272
int myLinearUnscaledSpeedGain
Definition: DtObserverMode.h:270
double myModelScaleFactor
Definition: DtObserverMode.h:273
Contains makVrv::DtObserverObject class.
bool myCameraShakeEnabled
Definition: DtObserverMode.h:278
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
ObserverSettingsMap myObserverSettings
Definition: DtObserverMode.h:282
NorthType
Definition: DtObserverObject.h:59
DtModelSetId myModelSet
Definition: DtObserverMode.h:265
std::map< int, bool > ObserverSettingsMap
Definition: DtObserverMode.h:260
bool myColorControlEnabled
Definition: DtObserverMode.h:284
double myCameraShakeIntensity
Definition: DtObserverMode.h:279
bool mySkyRestoreInfo
Definition: DtObserverMode.h:291
float myColorControlContrast
Definition: DtObserverMode.h:286
int myOrbitSpeedGain
Definition: DtObserverMode.h:268
DtObserverObject::NorthType myNorthType
Definition: DtObserverMode.h:283
Contains makArchives::DtObserverModeRecord class.
const char int mode
Definition: ioapi.h:38
int myIntKey
Definition: DtObserverMode.h:262
std::string myModelScaleType
Definition: DtObserverMode.h:274
double myMaxModelScaleFactor
Definition: DtObserverMode.h:275
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:72
std::string myName
Definition: DtObserverMode.h:263
DtObserverMode is the class used to represent a single Visual Mode Visual Modes may be saved and rest...
Definition: DtObserverMode.h:30
DtModelSetId
Definition: DtModelSetEnums.h:19
voidpf uLong offset
Definition: ioapi.h:42
bool myColorControlInvert
Definition: DtObserverMode.h:285
std::string mySensor
Definition: DtObserverMode.h:264
bool myLodScaleCenterEnabled
Definition: DtObserverMode.h:280
int myRotationSpeedGain
Definition: DtObserverMode.h:271
Contains DLL export macros.
double myLodScaleCenterMagMinLimit
Definition: DtObserverMode.h:281

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)