VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
envSmokeStateRecord.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/environmentalRecord.h>
18 #include <vl/packets/envProcP.h>
19 #include <vlpi/appearance.h>
20 #include <vlpi/disEnums.h>
21 #include <vl/globalObjectDesignatorList.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 
38 {
39 public:
40  // Default Constructor.
42 
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, int protocolVersion);
73 
74 protected:
75 
77  float myDensity;
79 };
80 
81 #endif // DIS_VERS >= 5

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)