![]() |
VR-Link API Documentation for HLA 1516
|
00001 /******************************************************************************* 00002 ** Copyright (c) 1992-2010 VT MAK 00003 ** All rights reserved. 00004 *******************************************************************************/ 00005 00006 00007 #ifndef linearObjectSR_H 00008 #define linearObjectSR_H 00009 00013 00014 #include "envObjectSR.h" 00015 #include "objectType.h" 00016 #include "breachSegRec.h" 00017 #include "exhaustSmokeRec.h" 00018 #include "mineFldMarkRec.h" 00019 00020 #if DtHLA 00021 class DT_DLL_VL DtHlaObjectManager; 00022 #else 00023 class DT_DLL_VL DtDisObjectManager; 00024 #endif 00025 00053 class DT_DLL_VL DtLinearObjectRepository : public DtEnvironmentObjectRepository 00054 { 00055 public: 00056 00057 //default constructor 00058 DtLinearObjectRepository(); 00059 00060 //destructor 00061 virtual ~DtLinearObjectRepository(); 00062 00063 //copy constructor 00064 DtLinearObjectRepository(const DtLinearObjectRepository& orig); 00065 00066 //assignment operator 00067 DtLinearObjectRepository& operator=( const DtLinearObjectRepository& orig); 00068 00070 virtual DtStateRepository* clone(bool copy) const; 00071 00072 static DtLinearObjectRepository* create(); 00073 00077 virtual bool setNumOfBreachLinearSegments(int newNumber); 00078 virtual int numOfBreachLinearSegments() const; 00079 00080 virtual bool setBreachLinearSegment( 00081 int index, const DtBreachableSegmentRecord& record); 00082 virtual bool breachLinearSegment( 00083 int index, DtBreachableSegmentRecord& record) const; 00084 00088 virtual bool setNumOfBreachObjectSegments(int newNumber); 00089 virtual int numOfBreachObjectSegments() const; 00090 00091 virtual bool setBreachObjectSegment( 00092 int index, const DtLinearSegmentRecord& record); 00093 virtual bool breachObjectSegment( 00094 int index, DtLinearSegmentRecord& record) const; 00095 00096 00100 virtual bool setNumOfExhaustSmokeSegments(int newNumber); 00101 virtual int numOfExhaustSmokeSegments() const; 00102 00103 virtual bool setExhaustSmokeSegment( 00104 int index, const DtExhaustSmokeRecord& record); 00105 virtual bool exhaustSmokeSegment( 00106 int index, DtExhaustSmokeRecord& record) const; 00107 00108 00112 virtual bool setNumOfMinefldLaneMarkSegments(int newNumber); 00113 virtual int numOfMinefldLaneMarkSegments() const; 00114 00115 virtual bool setMinefldLaneMarkSegment( 00116 int index, const DtMinefieldLaneMarkerRecord& record); 00117 virtual bool minefldLaneMarkSegment( 00118 int index, DtMinefieldLaneMarkerRecord& record) const; 00119 00120 virtual void printData() const; 00121 virtual void printDataToStream(std::ostream& stream) const; 00122 00123 protected: 00124 int myNumOfBreachLinearSegments; 00125 DtBreachableSegmentRecord* myBreachLinearSegments; 00126 00127 int myNumOfBreachObjectSegments; 00128 DtLinearSegmentRecord* myBreachObjectSegments; 00129 00130 int myNumOfExhaustSmokeSegments; 00131 DtExhaustSmokeRecord* myExhaustSmokeSegments; 00132 00133 int myNumOfMinefldLaneMarkSegments; 00134 DtMinefieldLaneMarkerRecord* myMinefldLaneMarkSegments; 00135 00136 }; 00137 00138 #endif //linearObjSR_H_ 00139