VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrfExtObjects
envSmokeState.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2008 MaK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
/*******************************************************************************
6
** $RCSfile: envSmokeState.h,v $ $Revision: 1.1 $ $State: Exp $
7
*******************************************************************************/
8
9
//
10
// File: envObjState.h
11
//
12
// Class: DtEnvSmokeStateRecord
13
//
14
#ifndef DtEnvSmokeStateRecord_H_
15
#define DtEnvSmokeStateRecord_H_
16
17
#include <vl/envRec.h>
18
#include <vl/packets/envProcP.h>
19
#include <vlpi/appearance.h>
20
#include <vlpi/disEnums.h>
21
#include <vl/objDesList.h>
22
23
struct
DtNetEnvSmokeStateRecord
:DtNetEnvironmentalRecord
24
{
25
DtNetU16
mySmokeAgent
;
// Not Used
26
DtNetU16
myGeomIndex
;
27
DtNetFloat32
myAgentMass
;
// Not Used
28
DtNetFloat32
myDensityRate
;
// %/ sec. Rate for changing the cloud density
29
DtNetFloat32
myDensity
;
// 0.0% to 100.0% Cloud density
30
};
31
32
//
33
// Class Description: DtEnvSmokeStateRecord implements tactical smoke
34
// state to be sent/received via EnvironmentProcess
35
36
#include <
vrfExtObjects/vrfExtObjectsDefines.h
>
37
class
DT_DLL_vrfExtObjects
DtEnvSmokeStateRecord
:
public
DtEnvironmentalRecord
38
{
39
public
:
40
// Default Constructor.
41
DtEnvSmokeStateRecord
();
42
43
// Copy Constructor
44
DtEnvSmokeStateRecord
(
45
const
DtEnvSmokeStateRecord
& orig);
46
47
// Assignment Operator
48
const
DtEnvSmokeStateRecord
& operator=(
49
const
DtEnvSmokeStateRecord
& orig);
50
51
// Destructor
52
virtual
~
DtEnvSmokeStateRecord
();
53
54
// Clone. Return a copy of this instance.
55
virtual
DtEnvironmentalRecord
* clone()
const
;
56
57
virtual
bool
setDensity(
double
d);
58
virtual
double
density()
const
;
59
60
virtual
bool
setDensityRate(
double
d);
61
virtual
double
densityRate()
const
;
62
63
virtual
bool
setGeometryIndex(
int
d);
64
virtual
int
geometryIndex()
const
;
65
66
// This doesn't need to be called explicitly. If any routine that needs
67
// the repository finds that it hasn't been created yet, it calls this
68
// method.
69
virtual
bool
createNetworkRepresentation();
70
71
virtual
int
netRepSize()
const
;
72
virtual
void
setFromNet(
const
DtNetEnvironmentalRecord& buffer);
73
74
protected
:
75
76
int
myGeometryIndex
;
77
float
myDensity
;
78
float
myDensityRate
;
79
};
80
81
#endif // DIS_VERS >= 5
Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (
www.mak.com
)