VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtExampleDriver.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2019 MAK Technologies, Inc.
3  * All rights reserved.
4  *****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvCore/DtDriver.h>
13 #include <string>
14 
15 class DtExampleSimEngine;
16 
17 // This driver creates and owns the example driver.
20 {
21 public:
22 
25 
27  virtual ~DtExampleDriver();
28 
31 
34  virtual const std::string& className() const;
35 
36  protected:
39  virtual bool onStart();
40 
43  virtual bool onStop();
44 
47  virtual bool onTick();
48 
53  virtual void attachObserverToEntity( const std::string& entityName );
54 
58  virtual void slot_displayEngineAdded( const makVrv::DtDeRecord& igRecord );
59 
61 
62 protected:
64 };
DtExampleSimEngine * myExampleSimEngine
Definition: DtExampleDriver.h:63
A Record of an IG instance.
Definition: DtDeRecord.h:24
virtual ~DtExampleDriver()
Virtual DTOR.
virtual const std::string & className() const
Returns the driver&#39;s class name.
virtual bool onStart()
Performs startup logic for the driver.
DtExampleDriver(makVrv::DtAgentManager &am)
CTOR.
The DtDriver is an abstract class. Developers derive from this to create logic that &quot;directs&quot; things ...
Definition: DtDriver.h:30
The DtAgentManager manages the distributed scene object framework. This includes the objects and upda...
Definition: DtAgentManager.h:38
Contains makVrv:DtDriver class.
virtual void slot_displayEngineAdded(const makVrv::DtDeRecord &igRecord)
Ensures the driver is properly restarted when a de is connected (such as a remote display engine)...
Definition: DtExampleDriver.h:19
virtual void attachObserverToEntity(const std::string &entityName)
Tells the current observer to attach to the named entity. This method uses an observer state record...
virtual bool onStop()
Performs shutdown logic for the driver.
virtual bool onTick()
Performs update logic for the driver.
Provide a basic sim engine to use in an example showing how to embed a sim engine into a driver that ...
Definition: DtExampleSimEngine.h:48

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)