![]() |
VR-Link API Documentation for HLA 1516
|
00001 /********************************************************************* 00002 ** Copyright (c) 1992-2010 VT MAK 00003 ** All rights reserved. 00004 *********************************************************************/ 00005 00006 00007 #ifndef linearSegRec_H_ 00008 #define linearSegRec_H_ 00009 00013 00014 #include "hostStructs.h" 00015 #include "packets/linObjStP.h" 00016 00022 class DT_DLL_VL DtLinearSegmentRecord 00023 { 00024 public: 00025 00027 DtLinearSegmentRecord(); 00028 00030 DtLinearSegmentRecord(const DtLinearSegmentRecord& orig); 00031 00033 DtLinearSegmentRecord& operator=( 00034 const DtLinearSegmentRecord& orig); 00035 DtLinearSegmentRecord& operator=( 00036 const DtNetLinearSegmentRecord& orig); 00037 00039 int operator==( 00040 const DtLinearSegmentRecord& rec); 00041 int operator!=( 00042 const DtLinearSegmentRecord& rec); 00043 00045 virtual ~DtLinearSegmentRecord(); 00046 00048 virtual void setSegmentNumber(const DtU32 value); 00049 virtual DtU32 segmentNumber() const; 00050 00052 virtual void setPercentComplete(const DtU32 value); 00053 virtual DtU32 percentComplete() const; 00054 00056 virtual void setLocation(const DtVector& coords); 00057 virtual const DtVector& location() const; 00058 00060 virtual void setOrientation(const DtTaitBryan& orientation); 00061 virtual const DtTaitBryan& orientation() const; 00062 00064 virtual void setLength(const DtU16 value); 00065 virtual DtU16 length() const; 00066 00068 virtual void setWidth(const DtU16 value); 00069 virtual DtU16 width() const; 00070 00072 virtual void setHeight(const DtU16 value); 00073 virtual DtU16 height() const; 00074 00076 virtual void setDepth(const DtU16 value); 00077 virtual DtU16 depth() const; 00078 00080 virtual void setDamagedState(const DtDamageState state); 00081 virtual DtDamageState damagedState() const; 00082 00084 virtual void setDeactivated(bool onOff); 00085 virtual bool deactivated() const; 00086 00088 virtual void setFlaming(bool onOff); 00089 virtual bool flaming() const; 00090 00092 virtual void setObjectPreDistributed(bool onOff); 00093 virtual bool objectPreDistributed() const; 00094 00096 virtual void setSmoking(bool onOff); 00097 virtual bool smoking() const; 00098 00100 virtual void unloadNetRecord(const DtNetLinearSegmentRecord& record); 00101 virtual void loadNetRecord(DtNetLinearSegmentRecord& record) const; 00102 00104 virtual void printData() const; 00105 virtual void printDataToStream(std::ostream& stream) const; 00106 00107 protected: 00108 DtU32 mySegmentNumber; 00109 DtU32 myPercentComplete; 00110 DtVector myLocation; 00111 DtTaitBryan myOrientation; 00112 DtU16 myLength; 00113 DtU16 myWidth; 00114 DtU16 myHeight; 00115 DtU16 myDepth; 00116 DtDamageState myDamagedState; 00117 bool myDeactivated; 00118 bool myFlaming; 00119 bool myObjectPreDistributed; 00120 bool mySmoking; 00121 }; 00122 00123 #endif //! linearSegRec_H_ 00124