VR-Forces 4.1.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrvCore
DtSmokePuffsDeadReckonUpdater.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2012 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
9
10
#pragma once
11
12
#include <
vrvCore/vrvCore.h
>
13
#include <
vrvCore/DtFixedSmoother.h
>
14
#include <
vrvCore/DtTickable.h
>
15
#include <
vrvCore/DtUniqueID.h
>
16
17
#include <vlpi/disEnums.h>
18
#include <vlutil/vlTime.h>
19
20
#include <vector>
21
#include <string>
22
23
#include <boost/foreach.hpp>
24
25
class
DtVector
;
26
27
namespace
makVrv
28
{
29
30
class
DtDe;
31
class
DtModel;
32
class
DtTacticalSmokeModel;
33
38
class
DT_DLL_VRVCORE
DtSmokePuffsDeadReckonUpdater
:
public
DtTickable
39
{
40
public
:
41
44
DtSmokePuffsDeadReckonUpdater
(
DtDe
& de );
45
47
virtual
~
DtSmokePuffsDeadReckonUpdater
();
48
53
virtual
bool
needsUpdate( DtTime tNow );
54
57
virtual
void
update( DtTime tNow );
58
61
virtual
void
setModel(
DtTacticalSmokeModel
* model );
62
65
virtual
DtTacticalSmokeModel
* model();
66
virtual
const
DtTacticalSmokeModel
* model()
const
;
67
71
virtual
void
setDensity(
int
vtx,
double
dens );
72
76
virtual
void
setDensityRate(
int
vtx,
double
rate );
77
81
virtual
void
setOneSigmas(
int
vtx,
const
DtVector
& sigma );
82
86
virtual
void
setOneSigmaRates(
int
vtx,
const
DtVector
& rate );
87
91
virtual
DtFixedSmoother
& densityDeadReckoner(
int
vtx );
92
96
virtual
DtFixedSmoother
& sigmaDeadReckoner(
int
vtx );
97
100
104
virtual
void
onModelAdded(
DtModel
* model );
105
108
virtual
void
onModelRemoved(
DtModel
* model );
109
111
112
private
:
115
struct
SmokeReckoners
116
{
117
DtFixedSmoother
density
;
118
DtFixedSmoother
sigmas
;
119
};
120
typedef
std::vector<SmokeReckoners*>
SmokePuffReckoners
;
121
125
SmokeReckoners
* deadReckoner(
int
vtx );
126
131
SmokeReckoners
* createSmokeReckoners(
SmokeReckoners
* other );
132
133
private
:
136
DtSmokePuffsDeadReckonUpdater
();
137
140
DtSmokePuffsDeadReckonUpdater
(
const
DtSmokePuffsDeadReckonUpdater
& );
141
144
DtSmokePuffsDeadReckonUpdater
&
145
operator=(
const
DtSmokePuffsDeadReckonUpdater
& );
146
147
protected
:
148
DtDe
&
myDe
;
149
DtTacticalSmokeModel
*
mySmokeModel
;
150
DtTime
myLastUpdateTime
;
151
152
SmokePuffReckoners
myReckoners
;
153
std::string
myMotionModelType
;
154
DtDeadReckonTypes
myDeadReckonTypes
;
155
156
};
157
}
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
)