VR-Forces 4.7 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) 2017 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvCore/vrvCore.h>
13 
16 
17 
18 namespace makVrv
19 {
20  class DtDe;
21 
28  {
29  public:
30 
34 
36  DtObserverMode( const DtObserverMode& orig );
37 
39  virtual ~DtObserverMode();
40 
42  DtObserverMode& operator=( const DtObserverMode& orig );
43 
47  void setIntKey( int intKey );
48 
50  int intKey() const;
51 
53  void setName( const std::string& name );
54 
56  const std::string& name() const;
57 
60  void setIs2D( bool trueOrFalse );
61 
63  bool is2D() const;
64 
66  void setModelSet( int modelSet );
67 
69  int modelSet() const;
70 
72  void setKeyMap( const std::string& keyMap );
73 
75  const std::string& keyMap() const;
76 
78 
79  virtual int gainPrecision() const;
80  virtual void setGainPrecision( int amt );
82 
84 
85  virtual const std::string& sensor() const;
86  virtual void setSensor( const std::string& sensorName );
88 
90 
91  virtual int orbitSpeedGain() const;
92  virtual void setOrbitSpeedGain( int gain );
94 
96 
97  virtual int linearScaledSpeedGain() const;
98  virtual void setLinearScaledSpeedGain( int gain );
100 
102 
103  virtual int linearUnscaledSpeedGain() const;
104  virtual void setLinearUnscaledSpeedGain( int gain );
106 
107 
109 
110  virtual int rotationSpeedGain() const;
111  virtual void setRotationSpeedGain( int gain );
113 
115 
116  virtual double modelScaleFactor() const;
117  virtual void setModelScaleFactor( double modelScaleFactor );
119 
120 
121  DtObserverObject::ScaleType modelScaleType() const;
122  void setModelScaleType( DtObserverObject::ScaleType modelScaleType );
124 
126 
127  double maxModelScaleFactor() const;
128  void setMaxModelScaleFactor( double maxModelScaleFactor );
130 
132 
133  void setSpeedScalingMode( DtObserverObject::SpeedScalingMode mode );
134  DtObserverObject::SpeedScalingMode speedScalingMode() const;
136 
138 
139  void setSpeedScalingMslModeOffset( double offset );
140  double speedScalingMslModeOffset() const;
142 
144 
145  void setCameraShakeEnabled( bool enabled );
146  bool cameraShakeEnabled() const;
148 
150 
151  void setCameraShakeIntensity( double intensity );
152  double cameraShakeIntensity() const;
154 
156  void setObserverSetting( int settingKey, bool value );
157 
159  bool observerSetting( int settingKey ) const;
160 
162  void getRecord( DtDe& de, makArchives::DtObserverModeRecord& record ) const;
163 
165  void setFromRecord( DtDe& de, const makArchives::DtObserverModeRecord& record );
166 
171  virtual bool wireframeModeChanged(bool onOrOff, bool& retVal );
172 
173 
174  protected:
176  DtObserverMode( int intKey );
177 
179 
180 
181  virtual bool hasSkyRestoreInfo();
182  virtual void setHasSkyRestoreInfo(bool trueOrFalse);
184 
186 
187 
188 
189  virtual bool skyRestoreInfo();
190  virtual void setSkyRestoreInfo(bool onOrOff);
192 
193  protected:
194 
195  typedef std::map< int, bool> ObserverSettingsMap;
196 
197  int myIntKey;
198  std::string myName; // Display name
199  std::string mySensor;
201  bool myIs2D;
202  std::string myKeyMap;
216 
219  };
220 }

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)