VR-Forces 4.3.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtObserverModeSettingCommand.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2012 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvCore/DtVrvCommand.h>
13 #include <vrvCore/DtObserverMode.h>
15 
16 namespace makVrv
17 {
22  {
23  public:
26 
29 
31  virtual DtObserverSettingsManager::ObserverSetting settingToControl() const = 0;
32 
34 
35  virtual std::string observerModeName() const;
36  virtual void setObserverModeName(const std::string& mode);
38 
40 
41  virtual bool isEnabled() const;
42  virtual void setEnabled(bool state);
44 
47  virtual void execute(DtDe& de);
48 
50  virtual void setFromControlPacket( vrvControlToolkit::DtVrvControl_v1* control );
51 
52  protected:
54  // Apply the current state to the specified observer mode, if that mode has
55  // view control enabled. Called by execute()
56  virtual void setSettingByObserverModeIntKey( DtDe& de, int observerModeIntKey );
57  virtual void setSettingByObserverModeName( DtDe& de, const std::string& observerModeName );
59 
60  protected:
61  std::string myObserverModeName;
62  bool myState;
63  };
64 } //makVrv::

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)