VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
MyAttachObserverCommand.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2024 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
9 
10 #pragma once
11 
13 
14 #include <vrvCore/DtVrvCommand.h>
15 #include "MyViewControlDataTypes.h"
16 
17 using namespace makVrv;
18 
19 namespace MyViewControl
20 {
27  {
28  public:
31 
33  virtual ~MyAttachObserverCommand();
34 
36  virtual const DtUniqueID& entityId();
37  virtual void setEntityId( const DtUniqueID& entityId );
38 
40  virtual const std::string& sensorName();
41  virtual void setSensorName( const std::string& sensorName );
42 
44  virtual const std::string& observerName();
45  virtual void setObserverName( const std::string& observerName );
46 
48  virtual bool createOverlay() const;
49  virtual void setCreateOverlay( bool );
50 
55  virtual void execute( DtDe& de );
56 
57  protected:
59  std::string mySensorName;
60  std::string myObserverName;
62  };
63 
69  : public DtVrvCommandCreator
70  {
71  public:
79 
82 
85  virtual DtVrvCommand* create( vrvControlToolkit::DtVrvControl_v1* control );
86  };
87 }
DtVrvCommandCreator is the base class for all command creators.
Definition: DtVrvCommand.h:44
std::string myObserverName
Definition: MyAttachObserverCommand.h:60
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
MyAttachObserverCommand is a custom VR-Vantage class that processes view control messages with the co...
Definition: MyAttachObserverCommand.h:26
unsigned long long DtUniqueID
Definition: DtUniqueID.h:19
bool myCreateOverlay
Definition: MyAttachObserverCommand.h:61
Base structure for all controls.
Definition: vrvControlToolkitDataTypes.h:277
Contains MyControlToolkit control structures and defines.
std::string mySensorName
Definition: MyAttachObserverCommand.h:59
DtUniqueID myEntityId
Definition: MyAttachObserverCommand.h:58
DtVrvCommand is the base class for all commands.
Definition: DtVrvCommand.h:24
#define DT_DLL_EXAMPLEVIEWCONTROL
Definition: exampleViewControlPlugin.h:18
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:76
Contains makVrv::DtVrvCommand and makVrv::DtVrvCommandCreator Classes.
MyAttachObserverCommandCreator creates a MyAttachObserverCommand. It is registered with the DtSharedV...
Definition: MyAttachObserverCommand.h:68

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)