VR-Forces 4.3.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtObserverSettingsInterface.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 #include <vrvCoreQt/vrvCoreQt.h>
13 #include <vrvUtil/DtUnicode.h>
14 
15 namespace makVrv
16 {
20  {
21 
22  public:
24  virtual ~DtObserverSettingsInterface();
25 
28  virtual int currentObserverIndex() const = 0;
29 
32  virtual std::string currentObserverName() const = 0;
33 
36  virtual int findObserverInstanceIndex(const std::string& instanceName) = 0;
37 
39  virtual void setObserverInstanceNames(const std::list<std::string>& instanceNames) = 0;
40 
43  virtual void setCurrentObserverIndex(int i) = 0;
44 
48  virtual void setCurrentObserverInstanceName(const std::string& instanceName) = 0;
49 
54  virtual void addObserverInstance(const DtUnicode& name, int index = -1) = 0;
55 
61  virtual void removeObserverInstance(int i) = 0;
62 
64  virtual void setDeleteObserverEnabled( bool enabled ) = 0;
65 
68  virtual int currentObserverModeIndex() const = 0;
69 
72  virtual std::string currentObserverModeName() const = 0;
73 
76  virtual int findObserverModeInstanceIndex(const std::string& instanceName) = 0;
77 
79  virtual void setObserverModeInstanceNames(const std::list<std::string>& instanceNames) = 0;
80 
83  virtual void setCurrentObserverModeIndex(int i) = 0;
84 
88  virtual void setCurrentObserverModeInstanceName(const std::string& instanceName) = 0;
89 
94  virtual void addObserverModeInstance(std::string name, int index = -1) = 0;
95 
101  virtual void removeObserverModeInstance(int i) = 0;
102 
103  // ! \brief This is called by the logic if a request to create an observer fails
104  virtual void observerCreateRequestFailed( const std::string& observerName ) = 0;
105 
106  virtual void addModelSet( int modelSet, const DtUnicode& displayName ) = 0;
107  virtual void setCurrentModelSet( int modelSet ) = 0;
108 
109  virtual void addSensorMode( const std::string& sensorName ) = 0;
110  virtual void setCurrentSensorMode( const std::string& sensorName ) = 0;
111  virtual void removeSensorMode( const std::string& sensorName ) = 0;
112  virtual void renameSensorMode( const std::string& oldName, const std::string& newName ) = 0;
113  virtual void enableSensorMode( bool enable ) = 0;
114 
115  virtual void addProjection( const std::string& projectionName ) = 0;
116  virtual void setCurrentProjection( const std::string& projectionName ) = 0;
117 
118  virtual void addKeyMap( const std::string& keyMapName ) = 0;
119  virtual void setCurrentKeyMap( const std::string& keyMapName ) = 0;
120 
121  virtual void setModelScaleFactorSlider( int factor ) = 0;
122  virtual void enableModelScaleFactorSlider( bool enable ) = 0;
123  virtual void setModelScaleFactorSliderMaximum( int maximum ) = 0;
124 
125  virtual void setModelScaleTypeSelector( DtObserverObject::ScaleType scaleType ) = 0;
126  virtual void enableModelScaleTypeSelector( bool enable ) = 0;
127 
128  virtual void setMaxModelScaleFactorSpinBox( double maxScaleFactor ) = 0;
129  virtual void enableMaxModelScaleFactorSpinBox( bool enable ) = 0;
130 
131  virtual void setOrbitSpeedGainSlider( int gain ) = 0;
132  virtual void setRotationSpeedGainSlider( int gain ) = 0;
133  virtual void setLinearSpeedGainSlider( int gain ) = 0;
134  virtual void setSliderGainPrecision( int precision ) = 0;
135 
136  virtual void setSpeedScalingMode( DtObserverObject::SpeedScalingMode mode ) = 0;
137  virtual void setSpeedScalingAslModeOffset( double offset ) = 0;
138 
139  virtual void setCameraShakeEnabled( bool enabled ) = 0;
140  virtual void setCameraShakeIntensity( float intensity ) = 0;
141 
142  virtual void clearObserverSettings() = 0;
143  virtual void addObserverSetting( int key, const DtUnicode& displayName ) = 0;
144  virtual void setObserverSetting( const DtUnicode& displayName, bool checked ) = 0;
145  };
146 }

Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)