VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtStateViewDriver.h
Go to the documentation of this file.
1 // /******************************************************************************
2 // ** Copyright (c) 2019 MAK Technologies, Inc.
3 // ** All rights reserved.
4 // ******************************************************************************/
5 
8 
9 #ifndef DtStateViewDriver_H_
10 #define DtStateViewDriver_H_
11 
12 #include <vrvCore/DtDriver.h>
13 #include <vrvCore/DtAgentManager.h>
14 #include <vrvCore/DtEntityState.h>
15 
16 using namespace makVrv;
17 
18 namespace makVrv
19 {
20  class DtObserver;
21  class DtSimEntry;
22 }
23 
29 {
30 public:
32  DtStateViewDriver(DtAgentManager& agentManager,
33  const std::string& instanceName);
34 
36  virtual ~DtStateViewDriver();
37 
39  virtual const std::string& className() const;
40 
41 protected:
42 
46 
49  virtual bool onStart();
50 
52  virtual bool onStop();
53 
55  virtual void slot_displayEngineAdded( const DtDeRecord& igRecord );
56 
58  virtual bool onTick();
59 
62  virtual void handleAttachToChanged(DtObserver* observer);
63 
65  DtSimEntry* findSimEntry( DtUniqueID elementId );
66 
68  void disableCurrentStateView();
69 
71  virtual void slot_stateViewUpdated(DtVrlinkEntityStateView* stateView);
72 
75  virtual void slot_simObjectRemoved(DtSimObjectEntry&);
76 
79 };
80 
81 #endif
A Record of an IG instance.
Definition: DtDeRecord.h:24
A DtSimEntry is a container of DtSimState&#39;s and represents the total state of an simulation object...
Definition: DtSimEntry.h:27
A facade for a DtObserverObject.
Definition: DtObserver.h:37
Contains makVrv:DtAgentManager class.
This driver illustrates the use of state views to access sim data. When the DtAttachManager emits its...
Definition: DtStateViewDriver.h:28
The DtDriver is an abstract class. Developers derive from this to create logic that &quot;directs&quot; things ...
Definition: DtDriver.h:31
A DtSimObjectEntry is an entry for a persistent simulation object like an entity. ...
Definition: DtSimObjectEntry.h:22
A DtStateView is a the interface to simulation state information. Users can create DtStateViews for s...
Definition: DtStateView.h:49
Contains makVrv::DtVrlinkSimulatedEntityState class.
The DtAgentManager manages the distributed scene object framework. This includes the objects and upda...
Definition: DtAgentManager.h:38
Contains makVrv:DtDriver class.
DtVrlinkEntityStateView * myStateView
The currently active state view.
Definition: DtStateViewDriver.h:78

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)