VR-Forces 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) 2023 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 #include <vrvUtil/signalslib.h>
17 
18 using namespace makVrv;
19 
20 namespace makVrv
21 {
22  class DtObserver;
23  class DtSimEntry;
24 }
25 
31 {
32 public:
34  DtStateViewDriver(DtAgentManager& agentManager,
35  const std::string& instanceName);
36 
38  virtual ~DtStateViewDriver();
39 
41  virtual const std::string& className() const;
42 
43 protected:
44 
48 
51  virtual bool onStart();
52 
54  virtual bool onStop();
55 
57  virtual void slot_displayEngineAdded( const DtDeRecord& igRecord );
58 
60  virtual bool onTick();
61 
64  virtual void handleAttachToChanged(DtObserver* observer);
65 
67  DtSimEntry* findSimEntry( DtUniqueID elementId );
68 
70  void disableCurrentStateView();
71 
73  virtual void slot_stateViewUpdated(DtVrlinkEntityStateView* stateView);
74 
77  virtual void slot_simObjectRemoved(DtSimObjectEntry&);
78 
81 
82  makVrv::vrvSignalsLib::connection myAttachedToChangedConnection;
83  makVrv::vrvSignalsLib::connection mySimObjectEntryToBeRemovedConnection;
84 
85 };
86 
87 #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
makVrv::vrvSignalsLib::connection myAttachedToChangedConnection
Definition: DtStateViewDriver.h:82
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:30
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.
makVrv::vrvSignalsLib::connection mySimObjectEntryToBeRemovedConnection
Definition: DtStateViewDriver.h:83
The DtAgentManager manages the distributed scene object framework. This includes the objects and upda...
Definition: DtAgentManager.h:38
unsigned long long DtUniqueID
Definition: DtUniqueID.h:19
Contains makVrv:DtDriver class.
DtVrlinkEntityStateView * myStateView
The currently active state view.
Definition: DtStateViewDriver.h:80

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)