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
include
vrfExtObjects
envSmokeStateRecord.h
Go to the documentation of this file.
1
/****************************************************************************
2
* Copyright (c) 2017 VT MAK
3
* All rights reserved.
4
****************************************************************************/
5
9
10
#pragma once
11
12
#include <
vrfExtObjects/dllExport.h
>
13
#include <vl/globalObjectDesignatorList.h>
14
#include <vl/environmentalRecord.h>
15
#include <vl/packets/envProcP.h>
16
#include <vlpi/appearance.h>
17
#include <vlpi/disEnums.h>
18
19
struct
DtNetEnvSmokeStateRecord
:DtNetEnvironmentalRecord
20
{
21
DtNetU16
mySmokeAgent
;
// Not Used
22
DtNetU16
myGeomIndex
;
23
DtNetFloat32
myAgentMass
;
// Not Used
24
DtNetFloat32
myDensityRate
;
// %/ sec. Rate for changing the cloud density
25
DtNetFloat32
myDensity
;
// 0.0% to 100.0% Cloud density
26
};
27
28
// \brief DtEnvSmokeStateRecord implements tactical smoke
29
// state to be sent/received via EnvironmentProcess
30
class
DT_DLL_vrfExtObjects
DtEnvSmokeStateRecord
:
public
DtEnvironmentalRecord
31
{
32
public
:
33
34
// Default Constructor.
35
DtEnvSmokeStateRecord
();
36
38
DtEnvSmokeStateRecord
(
39
const
DtEnvSmokeStateRecord
& orig);
40
41
// Assignment Operator
42
const
DtEnvSmokeStateRecord
& operator=(
43
const
DtEnvSmokeStateRecord
& orig);
44
45
// Destructor
46
virtual
~
DtEnvSmokeStateRecord
();
47
48
// Clone. Return a copy of this instance.
49
virtual
DtEnvironmentalRecord
* clone()
const
;
50
51
virtual
bool
setDensity(
double
d);
52
virtual
double
density()
const
;
53
54
virtual
bool
setDensityRate(
double
d);
55
virtual
double
densityRate()
const
;
56
57
virtual
bool
setGeometryIndex(
int
d);
58
virtual
int
geometryIndex()
const
;
59
60
// This doesn't need to be called explicitly. If any routine that needs
61
// the repository finds that it hasn't been created yet, it calls this
62
// method.
63
virtual
bool
createNetworkRepresentation();
64
65
virtual
int
netRepSize()
const
;
66
virtual
void
setFromNet(
const
DtNetEnvironmentalRecord& buffer,
int
protocolVersion);
67
68
protected
:
69
70
int
myGeometryIndex
;
71
float
myDensity
;
72
float
myDensityRate
;
73
74
};
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
)