![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /******************************************************************************* 00002 ** Copyright (c) 2003 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 *******************************************************************************/ 00005 /******************************************************************************* 00006 ** $RCSfile: ifThresholds.h,v $ $Revision: 1.5 $ $State: Exp $ 00007 *******************************************************************************/ 00008 00011 00017 00018 00019 #ifndef DtIfSetThresholds_H_ 00020 #define DtIfSetThresholds_H_ 00021 00022 #include <vlutil/vlString.h> 00023 #include <vrfExtProtocol/ifaceCont.h> 00024 #include <vl/hostStructs.h> 00025 00026 00029 struct DtNetIfSetThresholds 00030 { 00031 DtNetFloat64 myTranslation; 00032 DtNetFloat64 myRotation; 00033 DtNetFloat64 myAggDimension; 00034 DtNetBoolean myTranslationSpecified; 00035 DtNetBoolean myRotationSpecified; 00036 DtNetBoolean myAggDimensionSpecified; 00037 DtNetBoolean myPadding1; 00038 DtNetU32 myPadding2; 00039 }; 00040 00049 #include "vrfmsgs/vrfmsgsDefines.h" 00050 class DT_DLL_vrfmsgs DtIfSetThresholds : public DtSimInterfaceContent 00051 { 00052 00053 public: 00055 DtIfSetThresholds(); 00056 00058 DtIfSetThresholds(const DtIfSetThresholds & orig); 00059 00061 const DtIfSetThresholds & operator=(const DtIfSetThresholds & orig); 00062 00063 virtual ~DtIfSetThresholds(); 00064 00066 virtual int type() const; 00067 00069 virtual DtSimInterfaceContent * clone() const; 00070 00072 virtual void setRotationThreshold(DtReal thresh); 00074 virtual double rotationThreshold() const; 00075 00077 virtual void setTranslationThreshold(DtReal thresh); 00079 virtual double translationThreshold() const; 00080 00084 virtual void setAggDimensionThreshold(DtReal thresh); 00085 virtual double aggDimensionThreshold() const; 00086 00088 virtual bool isRotationThresholdSpecified(); 00090 virtual bool isTranslationThresholdSpecified(); 00092 virtual bool isAggDimensionThresholdSpecified(); 00093 00095 virtual void printDataToString(DtString& str); 00096 00098 virtual int netRepSize() const; 00099 00101 virtual bool setFromNet(const char* contentBuffer, 00102 unsigned contentSize); 00103 00105 virtual bool setToNet(); 00106 00108 static DtSimInterfaceContent* creator(); 00109 00110 protected: 00111 00112 DtReal myTranslation; 00113 bool myTranslationSpecified; 00114 DtReal myRotation; 00115 bool myRotationSpecified; 00116 DtReal myAggDimension; 00117 bool myAggDimensionSpecified; 00118 }; 00119 00120 #endif