VR-Forces Development_Version Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
examples
exampleDistributedDraw
DtDistributedDrawDriver.h
Go to the documentation of this file.
1
// /******************************************************************************
2
// ** Copyright (c) 2008 MAK Technologies, Inc.
3
// ** All rights reserved.
4
// ******************************************************************************/
5
// /******************************************************************************
6
// ** $RCSfile: DtDistributedDrawDriver.h,v $ $Revision: 1.1 $ $State: Exp $
7
// ******************************************************************************/
8
11
12
#ifndef DtDistributedDrawDriver_H_
13
#define DtDistributedDrawDriver_H_
14
15
#include <
vrvCore/DtDriver.h
>
16
#include <
vrvCore/DtAgentManager.h
>
17
#include "DtExampleDrawObjectAgent.hpp"
18
19
using namespace
makVrv;
20
21
// This driver owns a DtExampleDrawObject, and is responsible for keeping track of
22
// the draw object's state & creating or destroying it when the driver is started or stopped.
23
class
DtDistributedDrawDriver
:
public
DtDriver
24
{
25
public
:
27
DtDistributedDrawDriver
(
DtAgentManager
& agentManager,
28
const
std::string& instanceName);
29
31
virtual
~
DtDistributedDrawDriver
();
32
34
virtual
const
std::string& className()
const
;
35
38
virtual
void
drawRandomSphere();
39
40
protected
:
41
47
50
virtual
bool
onStart();
51
53
virtual
bool
onStop();
54
56
virtual
void
slot_displayEngineAdded(
const
DtDeRecord
& igRecord );
57
59
virtual
bool
onTick();
60
62
virtual
void
updateSphere();
63
65
DtExampleDrawObjectAgent*
myDrawAgent
;
66
68
double
mySphereX, mySphereY,
mySphereZ
;
69
71
bool
mySphereInScene
;
72
73
};
74
75
#endif
Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (
www.mak.com
)