VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtDistributedDrawDriver.h
Go to the documentation of this file.
1 // /******************************************************************************
2 // ** Copyright (c) 2019 MAK Technologies, Inc.
3 // ** All rights reserved.
4 // ******************************************************************************/
5 
8 
9 #ifndef DtDistributedDrawDriver_H_
10 #define DtDistributedDrawDriver_H_
11 
12 #include <vrvCore/DtDriver.h>
13 #include <vrvCore/DtAgentManager.h>
14 #include "DtExampleDrawObjectAgent.hpp"
15 
16 using namespace makVrv;
17 
18 // This driver owns a DtExampleDrawObject, and is responsible for keeping track of
19 // the draw object's state & creating or destroying it when the driver is started or stopped.
21 {
22 public:
25  const std::string& instanceName);
26 
28  virtual ~DtDistributedDrawDriver();
29 
31  virtual const std::string& className() const;
32 
35  virtual void drawRandomSphere();
36 
37 protected:
38 
44 
47  virtual bool onStart();
48 
50  virtual bool onStop();
51 
53  virtual void slot_displayEngineAdded( const DtDeRecord& igRecord );
54 
56  virtual bool onTick();
57 
59  virtual void updateSphere();
60 
62  DtExampleDrawObjectAgent* myDrawAgent;
63 
65  double mySphereX, mySphereY, mySphereZ;
66 
69 
70 };
71 
72 #endif
A Record of an IG instance.
Definition: DtDeRecord.h:24
Contains makVrv:DtAgentManager class.
The DtDriver is an abstract class.
Definition: DtDriver.h:31
bool mySphereInScene
Whether or not a sphere is displayed.
Definition: DtDistributedDrawDriver.h:68
The DtAgentManager manages the distributed scene object framework.
Definition: DtAgentManager.h:38
Contains makVrv:DtDriver class.
Definition: DtDistributedDrawDriver.h:20
DtExampleDrawObjectAgent * myDrawAgent
The draw agent that draws the sphere.
Definition: DtDistributedDrawDriver.h:62
double mySphereZ
Definition: DtDistributedDrawDriver.h:65

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)