VR-Forces 4.1.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
examples
tutorialDistributedSimulation5
DistributedSimulationDriver5.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2011 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
8
9
#pragma once
10
11
#include <
vrvCore/DtDriver.h
>
12
13
class
DtDetonationPdu;
14
typedef
DtDetonationPdu
DtDetonationInteraction
;
15
16
namespace
makVrv
17
{
18
19
class
DtSceneObjectAgent;
20
class
DtModelAgent;
21
22
namespace
tutorialDistributedSimulation5
23
{
24
25
class
DistributedSimulationConnection;
26
27
class
DistributedSimulationDriver
:
public
DtDriver
28
{
29
public
:
31
32
typedef
std::pair<DtSceneObjectAgent*, DtModelAgent*>
SceneObjectAndModelPair
;
33
typedef
std::vector<SceneObjectAndModelPair>
SceneObjectAndModelList
;
35
37
DistributedSimulationDriver
(
DtAgentManager
&
agentManager
,
const
std::string&
instanceName
);
38
40
virtual
~DistributedSimulationDriver
();
41
43
virtual
const
std::string&
className
()
const
;
44
45
protected
:
46
49
virtual
bool
onStart
();
50
52
virtual
bool
onStop
();
53
55
virtual
bool
onTick
();
56
59
static
void
processDetonationCb
(
DtDetonationInteraction
* inter,
void
* usr);
60
63
virtual
void
processDetonation
(
DtDetonationInteraction
* inter);
64
65
protected
:
66
67
DistributedSimulationConnection
*
mySimulation
;
68
SceneObjectAndModelList
mySceneObjectAgentsList
;
69
double
myRotationDegree
;
70
};
71
72
}
73
}
Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)