VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
setObserverViewCommand.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2014 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
11 #include <vrfGuiCore/vrfGuiCore.h>
12 #include <vrvCore/DtVrvCommand.h>
14 
15 namespace makVrf
16 {
19  {
20  public:
22  virtual ~DtSetObserverViewCommand();
23 
24  virtual std::string observer();
25  virtual void setObserver(const std::string& newObs);
26 
27  virtual float smoothTime() const;
28  virtual void setSmoothTime(float);
29 
30  virtual void setFromRecord(const makArchives::DtObserverStateRecord&);
31  virtual void getRecord(makArchives::DtObserverStateRecord&) const;
32 
33  virtual void execute(makVrv::DtDe& de);
34 
35  protected:
36  std::string myObserver;
38  float mySmoothTime;
39  };
40 
43  {
44  public:
45  DtSetObserverViewCommandCreator(makVrv::GlobalIdConvertFunc func): makVrv::DtVrvCommandCreator(func) {}
47 
49  };
50 
51 }
52 
DtVrvCommandCreator is the base class for all command creators.
Definition: DtVrvCommand.h:44
A DtObserverSettingsRecord contains the state of an observer.
Definition: DtObserverStateRecord.h:20
DtSetObserverViewCommandCreator(makVrv::GlobalIdConvertFunc func)
Definition: setObserverViewCommand.h:45
#define DT_DLL_VRFGUICORE
Contains DLL export macros.
Definition: vrfGuiCore.h:25
virtual ~DtSetObserverViewCommandCreator()
Definition: setObserverViewCommand.h:46
boost::function< DtUniqueID(const std::string &)> GlobalIdConvertFunc
typedef for the function that takes a protocol specific id (as a string) and looks up the DtUniqueID ...
Definition: DtVrvCommand.h:40
DtSetObserverViewCommand sets the named observer to the record contained.
Definition: setObserverViewCommand.h:18
DtSetObserverViewCommandCreator creates DtSetObserverViewCommands.
Definition: setObserverViewCommand.h:42
float mySmoothTime
Definition: setObserverViewCommand.h:38
Base structure for all controls.
Definition: vrvControlToolkitDataTypes.h:234
Contains makArchives::DtObserverStateRecord class.
makArchives::DtObserverStateRecord myRecord
Definition: setObserverViewCommand.h:37
DtVrvCommand is the base class for all commands.
Definition: DtVrvCommand.h:24
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
Contains makVrv::DtVrvCommand and makVrv::DtVrvCommandCreator Classes.
std::string myObserver
Definition: setObserverViewCommand.h:36

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)