VR-Forces 4.6.1 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
include
vrvCore
DtSmokePuffsDeadReckonUpdater.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2015 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
9
10
#pragma once
11
12
#include <
vrvCore/vrvCore.h
>
13
#include <vlpi/exponentialSmoother.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 <matrix/vlVector.h>
24
25
namespace
makVrv
26
{
27
28
class
DtDe;
29
class
DtModel;
30
class
DtTacticalSmokeModel;
31
36
class
DT_DLL_VRVCORE
DtSmokePuffsDeadReckonUpdater
:
public
DtTickable
37
{
38
public
:
39
42
DtSmokePuffsDeadReckonUpdater
(
DtDe
& de,
DtUniqueID
id
);
43
45
virtual
~
DtSmokePuffsDeadReckonUpdater
();
46
51
virtual
bool
needsUpdate(
DtTime
tNow );
52
55
virtual
void
update(
DtTime
tNow );
56
59
virtual
void
setModel(
DtModel
* model );
60
63
virtual
DtTacticalSmokeModel
* model();
64
virtual
const
DtTacticalSmokeModel
* model()
const
;
65
69
virtual
void
setDensity(
int
vtx,
double
dens );
70
74
virtual
void
setDensityRate(
int
vtx,
double
rate );
75
79
virtual
void
setOneSigmas(
int
vtx,
const
DtVector
& sigma );
80
84
virtual
void
setOneSigmaRates(
int
vtx,
const
DtVector
& rate );
85
89
virtual
DtExponentialSmoother& densityDeadReckoner(
int
vtx );
90
94
virtual
DtExponentialSmoother& sigmaDeadReckoner(
int
vtx );
95
96
private
:
99
struct
SmokeReckoners
100
{
101
DtExponentialSmoother
density
;
102
DtExponentialSmoother
sigmas
;
103
};
104
typedef
std::vector<SmokeReckoners*>
SmokePuffReckoners
;
105
109
SmokeReckoners
* deadReckoner(
int
vtx );
110
115
SmokeReckoners
* createSmokeReckoners(
SmokeReckoners
* other );
116
117
private
:
120
DtSmokePuffsDeadReckonUpdater
();
121
124
DtSmokePuffsDeadReckonUpdater
(
const
DtSmokePuffsDeadReckonUpdater
& );
125
128
DtSmokePuffsDeadReckonUpdater
&
129
operator=(
const
DtSmokePuffsDeadReckonUpdater
& );
130
131
protected
:
132
DtDe
&
myDe
;
133
DtUniqueID
myId
;
134
135
DtTacticalSmokeModel
*
mySmokeModel
;
136
DtTime
myLastUpdateTime
;
137
138
SmokePuffReckoners
myReckoners
;
139
std::string
myMotionModelType
;
140
DtDeadReckonTypes
myDeadReckonTypes
;
141
142
};
143
}
Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (
www.mak.com
)