VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties 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  virtual std::string observerModeName() const;
36  virtual void setObserverModeName(const std::string& mode);
38 
40  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::
DtObserverModeSettingCommand is the common base class for all VRV Commands that toggle an observer mo...
Definition: DtObserverModeSettingCommand.h:21
Contains makVrv::DtObserverSettingsManager class.
Contains vrvCore::DtObserverMode class.
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
Base structure for all controls.
Definition: vrvControlToolkitDataTypes.h:234
std::string myObserverModeName
Definition: DtObserverModeSettingCommand.h:61
const char int mode
Definition: ioapi.h:38
DtVrvCommand is the base class for all commands.
Definition: DtVrvCommand.h:24
ObserverSetting
Definition: DtObserverSettingsManager.h:40
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
bool myState
Definition: DtObserverModeSettingCommand.h:62
Contains makVrv::DtVrvCommand and makVrv::DtVrvCommandCreator Classes.

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)