![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /******************************************************************************* 00002 ** Copyright (c) 2003 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 *******************************************************************************/ 00005 /******************************************************************************* 00006 ** $RCSfile: humanMovementActuatorDesc.h,v $ $Revision: 1.3 $ $State: Exp $ 00007 *******************************************************************************/ 00008 00011 00014 00015 #ifndef humanMovementActuatorDesc_h 00016 #define humanMovementActuatorDesc_h 00017 00018 #include "vrfobjparam/actCompDesc.h" 00019 #include "vrfutil/rwBoolean.h" 00020 #include "vrfutil/rwReal.h" 00021 #include "vrfutil/rwStaticDynamicPostureList.h" 00022 #include "vrfutil/rwSoilSpeedFactorList.h" 00023 00026 class DT_DLL_vrfobjparam DtHumanMovementActuatorDescriptor : public DtActuatorComponentDescriptor 00027 { 00028 public: 00030 DtHumanMovementActuatorDescriptor(const DtString& componentName, 00031 DtReaderWriterRegistry* parentRegistry = 0); 00032 00034 DtHumanMovementActuatorDescriptor(const DtHumanMovementActuatorDescriptor& orig, 00035 DtReaderWriterRegistry* parentRegistry = 0); 00036 00037 virtual ~DtHumanMovementActuatorDescriptor(); 00038 00040 DtHumanMovementActuatorDescriptor & operator=( 00041 const DtHumanMovementActuatorDescriptor & orig); 00042 00045 virtual DtString type() const; 00046 00047 virtual DtComponentDescriptor* clone( 00048 DtReaderWriterRegistry* parentRegistry = 0) const; 00049 00051 static DtComponentDescriptor* creator(); 00052 00055 virtual bool checkForTerrainCollisions() const; 00056 virtual void setCheckForTerrainCollisions(bool yesOrNo); 00058 00061 virtual double maxUprightTerrainPitch() const; 00062 virtual void setMaxUprightTerrainPitch(double pitch); 00064 00067 virtual double maxWalkingSpeed() const; 00068 virtual void setMaxWalkingSpeed(double speed); 00070 00073 virtual const DtRwStaticDynamicPostureList& staticToDynamicPostureMap() const; 00075 00078 virtual const DtRwSoilSpeedFactorList& soilToMaxSpeedFactorMap() const; 00080 00081 protected: 00083 DtHumanMovementActuatorDescriptor(); 00084 00085 protected: 00088 00089 00095 DtRwBoolean myCheckForTerrainCollisions; 00096 00103 DtRwReal myMaxUprightTerrainPitch; 00104 00111 DtRwReal myMaxWalkingSpeed; 00112 00123 DtRwStaticDynamicPostureList myStaticToDynamicPostureMap; 00124 00140 DtRwSoilSpeedFactorList mySoilToMaxSpeedFactorMap; 00142 }; 00143 00144 #endif