00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 #ifndef __SIM_ForcePoint_h__
00015 #define __SIM_ForcePoint_h__
00016
00017 #include "SIM_API.h"
00018 #include "SIM_Force.h"
00019 #include "SIM_OptionsUser.h"
00020
00021
00022
00023
00024
00025 class SIM_API SIM_ForcePoint : public SIM_Force,
00026 public SIM_OptionsUser
00027 {
00028 public:
00029
00030 GETSET_DATA_FUNCS_V3(SIM_NAME_FORCE, Force);
00031
00032 GETSET_DATA_FUNCS_V3(SIM_NAME_POSITION, ForcePosition);
00033
00034 GETSET_DATA_FUNCS_I(SIM_NAME_SAMPLEMODE, SampleMode);
00035
00036 protected:
00037 explicit SIM_ForcePoint(const SIM_DataFactory *factory);
00038 virtual ~SIM_ForcePoint();
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049 virtual void getForceSubclass(const SIM_Object &object,
00050 const UT_Vector3 &position,
00051 const UT_Vector3 &velocity,
00052 const UT_Vector3 &angvel,
00053 const fpreal mass,
00054 UT_Vector3 &force,
00055 UT_Vector3 &torque) const;
00056
00057 virtual SIM_ForceSample getOptimalForceSamplingSubclass() const;
00058
00059 private:
00060 static const SIM_DopDescription *getForcePointDopDescription();
00061
00062 DECLARE_STANDARD_GETCASTTOTYPE();
00063 DECLARE_DATAFACTORY(SIM_ForcePoint,
00064 SIM_Force,
00065 "Point Force",
00066 getForcePointDopDescription());
00067 };
00068
00069 #endif
00070