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) 2025 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 namespace makVrv
20 {
21  class DtDe;
22  enum class DtModelSetId;
23 
30  {
31  public:
32  static std::string theXRScaleType;
33  static std::string theLinearScaleType;
34 
35  public:
36 
40 
42  DtObserverMode( const DtObserverMode& orig );
43 
45  virtual ~DtObserverMode();
46 
48  DtObserverMode& operator=( const DtObserverMode& orig );
49 
53  void setIntKey( int intKey );
54 
56  int intKey() const;
57 
59  void setName( const std::string& name );
60 
62  const std::string& name() const;
63 
66  void setIs2D( bool trueOrFalse );
67 
69  bool is2D() const;
70 
72  void setModelSet( DtModelSetId modelSet );
73 
75  DtModelSetId modelSet() const;
76 
78  void setKeyMap( const std::string& keyMap );
79 
81  const std::string& keyMap() const;
82 
84  virtual int gainPrecision() const;
86  virtual void setGainPrecision( int amt );
88 
90  virtual const std::string& sensor() const;
92  virtual void setSensor( const std::string& sensorName );
94 
96  virtual int orbitSpeedGain() const;
98  virtual void setOrbitSpeedGain( int gain );
100 
102  virtual int linearScaledSpeedGain() const;
104  virtual void setLinearScaledSpeedGain( int gain );
106 
108  virtual int linearUnscaledSpeedGain() const;
110  virtual void setLinearUnscaledSpeedGain( int gain );
112 
113 
115  virtual int rotationSpeedGain() const;
117  virtual void setRotationSpeedGain( int gain );
119 
121  virtual double modelScaleFactor() const;
123  virtual void setModelScaleFactor( double modelScaleFactor );
125 
126  const std::string& modelScaleType() const;
128  void setModelScaleType(const std::string& modelScaleType);
130 
132  double maxModelScaleFactor() const;
134  void setMaxModelScaleFactor( double maxModelScaleFactor );
136 
138  void setSpeedScalingMode( DtObserverObject::SpeedScalingMode mode );
140  DtObserverObject::SpeedScalingMode speedScalingMode() const;
142 
144  void setSpeedScalingMslModeOffset( double offset );
146  double speedScalingMslModeOffset() const;
148 
150  void setCameraShakeEnabled( bool enabled );
152  bool cameraShakeEnabled() const;
154 
156  void setCameraShakeIntensity( double intensity );
158  double cameraShakeIntensity() const;
160 
162  void setIsFrustumBasedViewMagnificationEnabled(bool enabled);
164  bool isFrustumBasedViewMagnificationEnabled() const;
166 
168  void setLodCenterSettings(const DtObserverObject::DtLodCenterSettings& settings);
170  const DtObserverObject::DtLodCenterSettings& lodCenterSettings() const;
172 
174  virtual void setNorthType(DtObserverObject::NorthType northType);
176  virtual DtObserverObject::NorthType northType() const;
178 
182  virtual void setColorControlEnabled(bool enabled);
183 
185  virtual bool colorControlEnabled() const;
186 
190  virtual void setColorControlInvert(bool enabled);
191 
193  virtual bool colorControlInvert() const;
194 
198  virtual void setColorControlContrast(double value);
199 
201  virtual double colorControlContrast() const;
202 
206  virtual void setColorControlBrightness(double value);
207 
209  virtual double colorControlBrightness() const;
210 
214  virtual void setColorControlColorMix(double value);
215 
217  virtual double colorControlColorMix() const;
218 
220  void setObserverSetting( int settingKey, bool value );
221 
223  bool observerSetting( int settingKey ) const;
224 
226  void getRecord( DtDe& de, makArchives::DtObserverModeRecord& record ) const;
227 
229  void setFromRecord( DtDe& de, const makArchives::DtObserverModeRecord& record );
230 
235  virtual bool wireframeModeChanged(bool onOrOff, bool& retVal );
236 
237 
238  protected:
240  DtObserverMode( int intKey );
241 
243  virtual bool hasSkyRestoreInfo();
246  virtual void setHasSkyRestoreInfo(bool trueOrFalse);
248 
250  virtual bool skyRestoreInfo();
254  virtual void setSkyRestoreInfo(bool onOrOff);
256 
257  protected:
258 
259  typedef std::map< int, bool> ObserverSettingsMap;
260 
261  int myIntKey;
262  std::string myName; // Display name
263  std::string mySensor;
265  bool myIs2D;
266  std::string myKeyMap;
273  std::string myModelScaleType;
287 
289 
292  };
293 }
DtObserverModeRecord is the serializable record used to read and write a Visual Mode&#39;s Configuration ...
Definition: DtObserverModeRecord.h:24
int myLinearScaledSpeedGain
Definition: DtObserverMode.h:268
bool myIs2D
Definition: DtObserverMode.h:265
DtObserverObject::DtLodCenterSettings myLodCenterSettings
Definition: DtObserverMode.h:288
double mySpeedScalingMslModeOffset
Definition: DtObserverMode.h:276
static std::string theXRScaleType
Definition: DtObserverMode.h:32
float myColorControlBrightness
Definition: DtObserverMode.h:285
bool myHasSkyRestoreInfo
Definition: DtObserverMode.h:290
DtObserverObject::SpeedScalingMode mySpeedScalingMode
Definition: DtObserverMode.h:275
float myColorControlColorMix
Definition: DtObserverMode.h:286
std::string myKeyMap
Definition: DtObserverMode.h:266
Definition: DtObserverObject.h:71
static std::string theLinearScaleType
Definition: DtObserverMode.h:33
SpeedScalingMode
Definition: DtObserverObject.h:56
int myGainPrecision
Definition: DtObserverMode.h:271
int myLinearUnscaledSpeedGain
Definition: DtObserverMode.h:269
bool myIsFrustumBasedViewMagnificationEnabled
Definition: DtObserverMode.h:279
double myModelScaleFactor
Definition: DtObserverMode.h:272
Contains makVrv::DtObserverObject class declaration.
bool myCameraShakeEnabled
Definition: DtObserverMode.h:277
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
ObserverSettingsMap myObserverSettings
Definition: DtObserverMode.h:280
NorthType
Definition: DtObserverObject.h:62
DtModelSetId myModelSet
Definition: DtObserverMode.h:264
std::map< int, bool > ObserverSettingsMap
Definition: DtObserverMode.h:259
bool myColorControlEnabled
Definition: DtObserverMode.h:282
double myCameraShakeIntensity
Definition: DtObserverMode.h:278
bool mySkyRestoreInfo
Definition: DtObserverMode.h:291
float myColorControlContrast
Definition: DtObserverMode.h:284
int myOrbitSpeedGain
Definition: DtObserverMode.h:267
DtObserverObject::NorthType myNorthType
Definition: DtObserverMode.h:281
Contains makArchives::DtObserverModeRecord class.
const char int mode
Definition: ioapi.h:38
int myIntKey
Definition: DtObserverMode.h:261
std::string myModelScaleType
Definition: DtObserverMode.h:273
double myMaxModelScaleFactor
Definition: DtObserverMode.h:274
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:76
std::string myName
Definition: DtObserverMode.h:262
DtObserverMode is the class used to represent a single Visual Mode Visual Modes may be saved and rest...
Definition: DtObserverMode.h:29
DtModelSetId
Definition: DtModelSetEnums.h:19
voidpf uLong offset
Definition: ioapi.h:42
bool myColorControlInvert
Definition: DtObserverMode.h:283
std::string mySensor
Definition: DtObserverMode.h:263
int myRotationSpeedGain
Definition: DtObserverMode.h:270
Contains DLL export macros.

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)