VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtObserverMode.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2015 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
14 
15 
16 namespace makVrv
17 {
18  class DtDe;
19 
26  {
27  public:
28 
32 
34  DtObserverMode( const DtObserverMode& orig );
35 
37  virtual ~DtObserverMode();
38 
40  DtObserverMode& operator=( const DtObserverMode& orig );
41 
45  void setIntKey( int intKey );
46 
48  int intKey() const;
49 
51  void setName( const std::string& name );
52 
54  const std::string& name() const;
55 
58  void setIs2D( bool trueOrFalse );
59 
61  bool is2D() const;
62 
64  void setModelSet( int modelSet );
65 
67  int modelSet() const;
68 
70  void setKeyMap( const std::string& keyMap );
71 
73  const std::string& keyMap() const;
74 
76 
77  virtual int gainPrecision() const;
78  virtual void setGainPrecision( int amt );
80 
82 
83  virtual const std::string& sensor() const;
84  virtual void setSensor( const std::string& sensorName );
86 
88 
89  virtual int orbitSpeedGain() const;
90  virtual void setOrbitSpeedGain( int gain );
92 
94 
95  virtual int linearScaledSpeedGain() const;
96  virtual void setLinearScaledSpeedGain( int gain );
98 
100 
101  virtual int linearUnscaledSpeedGain() const;
102  virtual void setLinearUnscaledSpeedGain( int gain );
104 
105 
107 
108  virtual int rotationSpeedGain() const;
109  virtual void setRotationSpeedGain( int gain );
111 
113 
114  virtual double modelScaleFactor() const;
115  virtual void setModelScaleFactor( double modelScaleFactor );
117 
118 
119  DtObserverObject::ScaleType modelScaleType() const;
120  void setModelScaleType( DtObserverObject::ScaleType modelScaleType );
122 
124 
125  double maxModelScaleFactor() const;
126  void setMaxModelScaleFactor( double maxModelScaleFactor );
128 
130 
131  void setSpeedScalingMode( DtObserverObject::SpeedScalingMode mode );
132  DtObserverObject::SpeedScalingMode speedScalingMode() const;
134 
136 
137  void setSpeedScalingMslModeOffset( double offset );
138  double speedScalingMslModeOffset() const;
140 
142 
143  void setCameraShakeEnabled( bool enabled );
144  bool cameraShakeEnabled() const;
146 
148 
149  void setCameraShakeIntensity( double intensity );
150  double cameraShakeIntensity() const;
152 
154  void setObserverSetting( int settingKey, bool value );
155 
157  bool observerSetting( int settingKey ) const;
158 
160  void getRecord( DtDe& de, makArchives::DtObserverModeRecord& record ) const;
161 
163  void setFromRecord( DtDe& de, const makArchives::DtObserverModeRecord& record );
164 
165  protected:
167  DtObserverMode( int intKey );
168 
169  protected:
170 
171  typedef std::map< int, bool> ObserverSettingsMap;
172 
173  int myIntKey;
174  std::string myName; // Display name
175  std::string mySensor;
177  bool myIs2D;
178  std::string myKeyMap;
192  };
193 }

Document ID: Generated on Mon Jul 4 01:00:18 EDT 2016 from SVN revision 166489
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)