![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /******************************************************************************* 00002 ** Copyright (c) 2003 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 *******************************************************************************/ 00005 /******************************************************************************* 00006 ** $RCSfile: gndMoveToDesc.h,v $ $Revision: 1.12 $ $State: Exp $ 00007 *******************************************************************************/ 00008 00011 00015 00016 #ifndef DtGroundMoveToDescriptor_H_ 00017 #define DtGroundMoveToDescriptor_H_ 00018 00019 00020 #include "vrfobjparam/compDesc.h" 00021 #include "vrfutil/rwReal.h" 00022 #include "vrfutil/rwBoolean.h" 00023 00024 class DtReaderWriterRegistry; 00025 00029 #include "vrfobjparam/vrfobjparamDefines.h" 00030 class DT_DLL_vrfobjparam DtGroundMoveToDescriptor : public DtComponentDescriptor 00031 { 00032 public: 00034 DtGroundMoveToDescriptor(const DtString& name, DtReaderWriterRegistry * 00035 parentRegistry = 0); 00036 00038 DtGroundMoveToDescriptor(const DtGroundMoveToDescriptor & orig, 00039 DtReaderWriterRegistry * parentRegistry = 0); 00040 00042 DtGroundMoveToDescriptor & operator=(const 00043 DtGroundMoveToDescriptor & orig); 00044 00046 virtual ~DtGroundMoveToDescriptor(); 00047 00050 virtual DtString type() const; 00051 00054 virtual void setAtDistance(DtReal atDistance); 00055 virtual DtReal atDistance() const; 00057 00058 00061 virtual void setNearDistance(DtReal nearDistance); 00062 virtual DtReal nearDistance() const; 00064 00067 virtual void setApproachSpeed(DtReal approachSpeed); 00068 virtual DtReal approachSpeed() const; 00070 00073 virtual void setStayInLane(bool value); 00074 virtual bool stayInLane() const; 00076 00079 virtual void setRoadCenterOffset(double value); 00080 virtual double roadCenterOffset() const; 00082 00083 virtual DtComponentDescriptor * clone(DtReaderWriterRegistry * parentRegistry 00084 = 0) const; 00085 00087 static DtComponentDescriptor * creator(); 00088 00089 protected: 00091 DtGroundMoveToDescriptor(); 00092 00093 protected: 00094 00098 00104 DtRwReal myNearDistance; 00105 00111 DtRwReal myAtDistance; 00112 00119 DtRwReal myApproachSpeed; 00120 00126 DtRwBoolean myStayInLane; 00127 00135 DtRwReal myRoadCenterOffset; 00136 00138 }; 00139 00140 #endif 00141 00142 00143