VR-Forces Development_Version 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
vrfExtObjects
tacticalSmokeObjectRepository.h
Go to the documentation of this file.
1
#ifndef tacticalSmokeObjectRepository_H_
2
#define tacticalSmokeObjectRepository_H_
3
4
#include <
vrfExtObjects/vrfExtObjectsDefines.h
>
5
#include <vl/environmentProcessRepository.h>
6
8
class
DT_DLL_vrfExtObjects
DtTacticalSmokeObjectRepository
:
public
DtEnvironmentProcessRepository
9
{
10
public
:
11
DtTacticalSmokeObjectRepository
();
12
static
DtEnvironmentProcessRepository
* create();
13
15
virtual
void
setTranslationThreshold(
double
d);
16
virtual
double
translationThreshold()
const
;
17
19
virtual
void
setRotationThreshold(
double
d);
20
virtual
double
rotationThreshold()
const
;
21
23
virtual
void
setDensityThreshold(
double
d);
24
virtual
double
densityThreshold()
const
;
25
27
virtual
void
setSigmaThreshold(
double
d);
28
virtual
double
sigmaThreshold()
const
;
29
30
// Utility to compare this repository against a remote estimate
31
// Returns True is an update should be sent; False otherwise
32
virtual
bool
sendNeeded(
const
DtEnvironmentProcessRepository
& asSeenByRemote);
33
34
void
setClock(
DtClock
* clock);
35
DtClock
* clock()
const
;
36
37
double
lastUpdateTime()
const
;
38
void
setLastUpdateTime(
DtTime
t);
39
40
protected
:
41
42
virtual
bool
sendRecordsNeeded(
const
DtEnvironmentProcessRepository
& asSeenByRemote);
43
virtual
bool
sendGaussianNeeded(
DtTime
dt, DtNetEnvironmentalRecord* rec, DtNetEnvironmentalRecord* recRemote);
44
virtual
bool
sendSmokeStateNeeded(
DtTime
dt, DtNetEnvironmentalRecord* rec, DtNetEnvironmentalRecord* recRemote);
45
virtual
bool
sendNetRecNeeded(DtNetEnvironmentalRecord* rec1, DtNetEnvironmentalRecord* rec2);
46
47
protected
:
48
// Thresholds for send-side dead reckoning (used to limit #updates sent)
49
double
myTranslationThreshold
;
50
double
myRotationThreshold
;
51
double
myDensityThreshold
;
52
double
mySigmaThreshold
;
53
54
// Helpers for send-side dead reckoning (used to limit #updates sent)
55
DtClock
*
myClock
;
56
DtTime
myLastUpdateTime
;
57
};
58
59
#endif
60
61
Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (
www.mak.com
)