VR-Vantage 3.1.1 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
exampleDriver.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 
14 #include <string>
15 
16 class DtExampleSimEngine;
17 
18 // This driver creates and owns the example driver.
20 class DtExampleDriver : public makVrv::DtDriver
21 {
22 public:
23 
26 
28  virtual ~DtExampleDriver();
29 
32 
35  virtual const std::string& className() const;
36 
37 protected:
40  virtual bool onStart();
41 
44  virtual bool onStop();
45 
48  virtual bool onTick();
49 
54  virtual void attachObserverToEntity(const std::string& entityName);
55 
59  virtual void slot_displayEngineAdded(const makVrv::DtDeRecord& igRecord);
60 
62 
63 protected:
65 };
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.
Definition: DtDriver.h:31
The DtAgentManager manages the distributed scene object framework.
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.
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: exampleDriver/DtExampleSimEngine.h:48


Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)