VR-Forces 4.7 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
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 Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (
www.mak.com
)