VR-Link API Documentation for HLA 1516
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
linearSegmentRecord.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 1992-2025 MAK Technologies, Inc
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vl/packets/linObjStP.h>
13 #include <vlpi/disEnums.h>
14 
20 {
21 public:
22 
25 
28 
30  virtual ~DtLinearSegmentRecord();
31 
34 
35  virtual DtLinearSegmentRecord& operator = ( const DtLinearSegmentRecord& orig );
36  virtual DtLinearSegmentRecord& operator = ( const DtNetLinearSegmentRecord& orig );
37  virtual DtLinearSegmentRecord& operator = ( const DtNetLinearSegmentParameter& orig );
38 
40 
43 
44  virtual bool operator == ( const DtLinearSegmentRecord& rec ) const;
45  virtual bool operator != ( const DtLinearSegmentRecord& rec ) const;
46 
48 
50  virtual void setSegmentNumber( const DtU32 value );
51  virtual DtU32 segmentNumber() const;
52 
53 #if DtDIS
54 
56  virtual void setModifications(DtU8 value);
57  virtual DtU8 modifications() const;
58 
60  virtual void setModificationsField(
61  DtModificationField field, bool value);
62  virtual bool modificationsField(
63  DtModificationField field) const;
64 
65 #endif
66 
68  virtual void setLocation( const DtVector& coords );
69  virtual const DtVector& location() const;
70 
72  virtual void setOrientation( const DtTaitBryan& orientation );
73  virtual const DtTaitBryan& orientation() const;
74 
76  virtual void setLength( const DtU16 value );
77  virtual DtU16 length() const;
78 
80  virtual void setWidth( const DtU16 value );
81  virtual DtU16 width() const;
82 
84  virtual void setHeight( const DtU16 value );
85  virtual DtU16 height() const;
86 
88  virtual void setDepth( const DtU16 value );
89  virtual DtU16 depth() const;
90 
92  virtual void setGeneralAppearance( DtU16 appearance );
93  virtual DtU16 generalAppearance() const;
94 
96  virtual void setSpecificAppearance( DtU32 appearance );
97  virtual DtU32 specificAppearance() const;
98 
100  virtual void setGeneralAppearanceAttribute(
102  virtual DtAppearAttrVal generalAppearanceAttribute(
103  DtAppearAttribute attr ) const;
104 
106  virtual void setSpecificAppearanceAttribute(
108  virtual DtU32 specificAppearanceAttribute(
109  DtAppearAttribute attr ) const;
110 
112  virtual void setPercentComplete( const DtU32 value );
113  virtual DtU32 percentComplete() const;
114 
116  virtual void setDamagedState( const DtDamageState state );
117  virtual DtDamageState damagedState() const;
118 
120  virtual void setObjectPreDistributed( bool onOff );
121  virtual bool objectPreDistributed() const;
122 
124  virtual void setDeactivated( bool onOff );
125  virtual bool deactivated() const;
126 
128  virtual void setSmoking( bool onOff );
129  virtual bool smoking() const;
130 
132  virtual void setFlaming( bool onOff );
133  virtual bool flaming() const;
134 
136  virtual void printData() const;
137  virtual void printDataToStream( std::ostream& stream ) const;
138 
140  virtual void unloadNetRecord( const DtNetLinearSegmentParameter& record );
141  virtual void loadNetRecord( DtNetLinearSegmentParameter& record ) const;
142 
144  virtual void unloadNetRecord( const DtNetLinearSegmentRecord& record );
145  virtual void loadNetRecord( DtNetLinearSegmentRecord& record ) const;
146 
147 protected:
148 
150 #if DtDIS
151  DtU8 myModifications;
152 #endif
159 
162 
163 };
DtU16 myGeneralAppearance
Definition: linearSegmentRecord.h:160
DtAppearAttrVal
Create an enumeration type, but since many of the names will have the same value, define them all as ...
Definition: disEnums.h:1441
DtNetLinearSegmentParameter is the network structure for the linear segment parameter which is used b...
Definition: linObjStP.h:21
const bool operator==(const DtU128 &lhs, const DtU128 &rhs)
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
DtU16 myWidth
Definition: linearSegmentRecord.h:156
DtU16 myDepth
Definition: linearSegmentRecord.h:158
Instances of DtLinearSegmentRecord are used to implement the LinearSegmentStruct defined in the RPR F...
Definition: linearSegmentRecord.h:19
DtTaitBryans are used to represent orientation of an object, using a set of three Euler angles...
Definition: vlTaitBryan.h:43
DtU16 myHeight
Definition: linearSegmentRecord.h:157
DtU16 myLength
Definition: linearSegmentRecord.h:155
DtVector myLocation
Definition: linearSegmentRecord.h:153
This file declares classes for the LinearObject Pdu.
Definition: vlVector.h:224
unsigned char DtU8
An eight bit unsigned integer value.
Definition: vlMachineTypes.h:137
DtU32 mySpecificAppearance
Definition: linearSegmentRecord.h:161
DtDamageState
This is for the tank ditch and concertina wire breach appearance Areal object specific appearance...
Definition: disEnums.h:1664
DtU32 mySegmentNumber
Definition: linearSegmentRecord.h:149
DtTaitBryan myOrientation
Definition: linearSegmentRecord.h:154
unsigned short DtU16
A 16 bit unsigned integer value.
Definition: vlMachineTypes.h:140
Contains the standard DIS enumerations.
const bool operator!=(const DtU128 &lhs, const DtU128 &rhs)
DtModificationField
Definition: disEnums.h:2592
unsigned long DtU32
A 32 bit unsigned integer value.
Definition: vlMachineTypes.h:153
DtAppearAttribute
If you put spaces between the &quot;&lt;&lt;&quot; and the surrounding strings, enumstr gets confused and thinks the ...
Definition: disEnums.h:1286
DtNetLinearSegment record is the network structure for the LinearSegmentStruct defined in the RPR FOM...
Definition: linObjStP.h:55

Document ID: Generated on Thu Oct 16 00:12:25 EDT 2025 from SVN revision 280738
Copyright © 1992-2025 MAK Technologies. All Rights Reserved (www.mak.com)