VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtDriver.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2026 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
14 #include <vrvCore/DtElementEntry.h>
15 
16 namespace makVrv
17 {
18  class DtAgentManager;
19  class DtAgentManagerInterface;
20  class DtDeRecord;
21 
22 
32  {
33  protected:
34  static const std::string theOnDriverSelectionList;
35 
36  public:
37 
38  friend class DtDriverManager;
39 
41  DtDriver(DtAgentManager& agentManager, const std::string& instanceName);
42 
44  virtual ~DtDriver();
45 
47  virtual void realizeConfiguration(const DtConfiguration& configuration);
48 
52  virtual DtConfiguration createConfiguration(bool saveAllParameters = false) const;
53 
57  DtAgentManager& agentManager();
58 
60  virtual DtAgentManagerInterface& sceneInterface();
61 
63  inline bool started() const
64  {
65  return myStartedFlag;
66  }
67 
69  virtual const std::string& className() const = 0;
70 
72  virtual const std::string& instanceName() const;
73 
76  virtual bool autoStart() const;
77 
80  virtual void setAutoStart(bool autoStart);
81 
85  virtual bool isWindowDependent() const;
86 
90  virtual void setIsWindowDependent(bool dep);
91 
94  virtual void setIsUserControllable(bool);
95 
98  virtual bool isUserControllable() const;
99 
102  virtual void setIsPersistent(bool per);
103 
106  virtual bool isPersistent() const;
107 
110  virtual bool isOnDriverSelectionList() const;
111 
114  virtual void setOnDriverSelectionList(bool);
115 
118  bool objectFromAgentManager(const DtUniqueID& id) const;
119 
120  protected:
121 
125  void applyChangesAndDelete(DtElementChanges* changes);
126 
128  void reportElementCreated(DtElementID id, DtElementID parentId,
130 
133  void reportElementAttribute(DtElementID id, DtElementAttribute* attribute);
134 
136  void reportElementDestroyed(DtElementID id);
137 
140  void start();
141 
144  void stop();
145 
149  bool tick();
150 
155  virtual bool onStart() = 0;
156 
161  virtual bool onStop() = 0;
162 
166  virtual bool onTick() = 0;
167 
170  virtual void slot_displayEngineAdded(const DtDeRecord& igRecord);
171 
176  virtual void setInstanceName(const std::string& name);
177 
181  virtual void installAccessories();
182 
186  virtual void uninstallAccessories();
187 
188  protected:
189 
192  std::string myName;
194 
199 
202 
203  };
204 
205 
209  {
210  public:
211 
213  DtDriverCreator();
214 
216  virtual ~DtDriverCreator();
217 
221  virtual const std::string& extension() const = 0;
222 
224  virtual DtDriver* create(DtAgentManager& agentManager,
225  const std::string& instanceName) const = 0;
226  };
227 
228 }
bool myUserControllableFlag
Definition: DtDriver.h:196
A Record of an IG instance.
Definition: DtDeRecord.h:24
DtConfiguration myConfiguration
Definition: DtDriver.h:193
The DtDriverManager manages all the DtDriver&#39;s in the DtDe.
Definition: DtDriverManager.h:32
DtUniqueID DtElementID
The ElementID is a specific type of unique ID used to represent VR-Vantage uniquely defined elements...
Definition: DtUniqueID.h:23
DtElementChanges is used to communicate changes in element data between drivers and the main applicat...
Definition: DtElementChanges.h:25
The DtDriver is an abstract class. Developers derive from this to create logic that &quot;directs&quot; things ...
Definition: DtDriver.h:31
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:20
DtElementChanges myChanges
Definition: DtDriver.h:198
bool myRequestStateDiffPendingFlag
Definition: DtDriver.h:197
bool myStartedFlag
Definition: DtDriver.h:191
ElementType
Definition: DtElementEntry.h:26
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::DtConfiguration class.
DtAgentManager & myAgentManager
Definition: DtDriver.h:190
Base class to provide boost signal/slot management.
bool myPersistentFlag
Definition: DtDriver.h:195
static const std::string theOnDriverSelectionList
Definition: DtDriver.h:34
DtSignalConnectionManager myConnections
Auto-disconnects on destruction; avoids singleton lookups in the DTOR.
Definition: DtDriver.h:201
The base implementation of a configuration.
Definition: DtConfiguration.h:24
The abstract interface necessary for agents.
Definition: DtAgentManagerInterface.h:33
std::string myName
Definition: DtDriver.h:192
DtElementAttribute is a common base class used for all element attributes, such as those found in a D...
Definition: DtElementAttribute.h:20
Abstract DtDriver creator.
Definition: DtDriver.h:208
Contains makVrv::DtElementChanges class.
bool started() const
Get this driver&#39;s active state.
Definition: DtDriver.h:63
Contains makVrv::DtElementEntry class.

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)