VR-Forces 4.3 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
vrvCore
DtSmokePuffsDeadReckonUpdater.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2013 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,
DtUniqueID
id
);
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
98
private
:
101
struct
SmokeReckoners
102
{
103
DtFixedSmoother
density
;
104
DtFixedSmoother
sigmas
;
105
};
106
typedef
std::vector<SmokeReckoners*>
SmokePuffReckoners
;
107
111
SmokeReckoners
* deadReckoner(
int
vtx );
112
117
SmokeReckoners
* createSmokeReckoners(
SmokeReckoners
* other );
118
119
private
:
122
DtSmokePuffsDeadReckonUpdater
();
123
126
DtSmokePuffsDeadReckonUpdater
(
const
DtSmokePuffsDeadReckonUpdater
& );
127
130
DtSmokePuffsDeadReckonUpdater
&
131
operator=(
const
DtSmokePuffsDeadReckonUpdater
& );
132
133
protected
:
134
DtDe
&
myDe
;
135
DtUniqueID
myId
;
136
137
DtTacticalSmokeModel
*
mySmokeModel
;
138
DtTime
myLastUpdateTime
;
139
140
SmokePuffReckoners
myReckoners
;
141
std::string
myMotionModelType
;
142
DtDeadReckonTypes
myDeadReckonTypes
;
143
144
};
145
}
Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (
www.mak.com
)