12 namespace ExternalStimuli
18 Structure *m_lpStructure;
19 std::string m_strStructureID;
21 std::string m_strBodyID;
24 CStdFPoint m_oRelativePosition;
26 std::string m_strForceXEquation;
27 std::string m_strForceYEquation;
28 std::string m_strForceZEquation;
30 CStdPostFixEval *m_lpForceXEval;
31 CStdPostFixEval *m_lpForceYEval;
32 CStdPostFixEval *m_lpForceZEval;
38 float m_fltForceReportX;
39 float m_fltForceReportY;
40 float m_fltForceReportZ;
42 std::string m_strTorqueXEquation;
43 std::string m_strTorqueYEquation;
44 std::string m_strTorqueZEquation;
46 CStdPostFixEval *m_lpTorqueXEval;
47 CStdPostFixEval *m_lpTorqueYEval;
48 CStdPostFixEval *m_lpTorqueZEval;
54 float m_fltTorqueReportX;
55 float m_fltTorqueReportY;
56 float m_fltTorqueReportZ;
58 CStdPostFixEval *SetupEquation(std::string strEquation);
66 float RelativePositionX() {
return m_oRelativePosition.x;};
67 float RelativePositionY() {
return m_oRelativePosition.y;};
68 float RelativePositionZ() {
return m_oRelativePosition.z;};
70 void RelativePositionX(
float fltVal);
71 void RelativePositionY(
float fltVal);
72 void RelativePositionZ(
float fltVal);
74 std::string ForceXEquation() {
return m_strForceXEquation;};
75 std::string ForceYEquation() {
return m_strForceYEquation;};
76 std::string ForceZEquation() {
return m_strForceZEquation;};
78 void ForceXEquation(std::string strVal);
79 void ForceYEquation(std::string strVal);
80 void ForceZEquation(std::string strVal);
82 std::string TorqueXEquation() {
return m_strTorqueXEquation;};
83 std::string TorqueYEquation() {
return m_strTorqueYEquation;};
84 std::string TorqueZEquation() {
return m_strTorqueZEquation;};
86 void TorqueXEquation(std::string strVal);
87 void TorqueYEquation(std::string strVal);
88 void TorqueZEquation(std::string strVal);
90 virtual void Load(CStdXml &oXml);
93 virtual std::string
Type() {
return "ForceInput";};
94 virtual void Initialize();
95 virtual void ResetSimulation();
96 virtual void StepSimulation();
97 virtual void Deactivate();
99 virtual float *GetDataPointer(
const std::string &strDataType);
100 virtual bool SetData(
const std::string &strDataType,
const std::string &strValue,
bool bThrowError =
true);
101 virtual void QueryProperties(CStdPtrArray<TypeProperty> &aryProperties);
Root namespace for the base simulation library for AnimatLab.
External stimulus base class.
virtual std::string Type()
returns the string type name of this object.