12 namespace ExternalStimuli
18 Structure *m_lpStructure;
19 std::string m_strStructureID;
21 std::string m_strBodyID;
23 VsRigidBody *m_lpVsBody;
25 CStdFPoint m_oRelativePosition;
27 std::string m_strForceXEquation;
28 std::string m_strForceYEquation;
29 std::string m_strForceZEquation;
31 CStdPostFixEval *m_lpForceXEval;
32 CStdPostFixEval *m_lpForceYEval;
33 CStdPostFixEval *m_lpForceZEval;
39 float m_fltForceReportX;
40 float m_fltForceReportY;
41 float m_fltForceReportZ;
43 std::string m_strTorqueXEquation;
44 std::string m_strTorqueYEquation;
45 std::string m_strTorqueZEquation;
47 CStdPostFixEval *m_lpTorqueXEval;
48 CStdPostFixEval *m_lpTorqueYEval;
49 CStdPostFixEval *m_lpTorqueZEval;
55 float m_fltTorqueReportX;
56 float m_fltTorqueReportY;
57 float m_fltTorqueReportZ;
59 CStdPostFixEval *SetupEquation(std::string strEquation);
65 float RelativePositionX() {
return m_oRelativePosition.x;};
66 float RelativePositionY() {
return m_oRelativePosition.y;};
67 float RelativePositionZ() {
return m_oRelativePosition.z;};
69 void RelativePositionX(
float fltVal);
70 void RelativePositionY(
float fltVal);
71 void RelativePositionZ(
float fltVal);
73 std::string ForceXEquation() {
return m_strForceXEquation;};
74 std::string ForceYEquation() {
return m_strForceYEquation;};
75 std::string ForceZEquation() {
return m_strForceZEquation;};
77 void ForceXEquation(std::string strVal);
78 void ForceYEquation(std::string strVal);
79 void ForceZEquation(std::string strVal);
81 std::string TorqueXEquation() {
return m_strTorqueXEquation;};
82 std::string TorqueYEquation() {
return m_strTorqueYEquation;};
83 std::string TorqueZEquation() {
return m_strTorqueZEquation;};
85 void TorqueXEquation(std::string strVal);
86 void TorqueYEquation(std::string strVal);
87 void TorqueZEquation(std::string strVal);
89 virtual void Load(CStdXml &oXml);
92 virtual std::string
Type() {
return "ForceInput";};
93 virtual void Initialize();
94 virtual void ResetSimulation();
95 virtual void StepSimulation();
96 virtual void Deactivate();
98 virtual float *GetDataPointer(
const std::string &strDataType);
99 virtual bool SetData(
const std::string &strDataType,
const std::string &strValue,
bool bThrowError =
true);
100 virtual void QueryProperties(CStdPtrArray<TypeProperty> &aryProperties);
virtual std::string Type()
returns the string type name of this object.
Classes for implementing the cm-labs vortex physics engine for AnimatLab.
External stimulus base class.