VR-Forces 4.8 Class Documentation
 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 
18 // This driver creates and owns the example driver.
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:64
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:34
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:20
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: DtExampleSimEngine.h:47

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)