VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
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 Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (
www.mak.com
)