11 namespace ExternalStimuli
17 std::string m_strStructureID;
18 std::string m_strJointID;
19 MotorizedJoint *m_lpJoint;
25 std::string m_strVelocityEquation;
26 CStdPostFixEval *m_lpEval;
28 bool m_bDisableMotorWhenDone;
31 float m_fltVelocityReport;
37 std::string StructureID() {
return m_strStructureID;};
38 void StructureID(std::string strVal) {m_strStructureID = strVal;};
40 std::string JointID() {
return m_strJointID;};
41 void JointID(std::string strVal) {m_strJointID = strVal;};
43 std::string VelocityEquation() {
return m_strVelocityEquation;};
44 void VelocityEquation(std::string strVal);
46 bool DisableMotorWhenDone() {
return m_bDisableMotorWhenDone;};
47 void DisableMotorWhenDone(
bool bVal) {m_bDisableMotorWhenDone = bVal;};
49 int TargetID() {
return m_iTargetID;}
50 void TargetID(
int iID);
51 void TargetID(std::string strID);
53 virtual void Load(CStdXml &oXml);
56 virtual std::string
Type() {
return "MotorVelocity";};
57 virtual void Initialize();
58 virtual void Activate();
59 virtual void ResetSimulation();
60 virtual void StepSimulation();
61 virtual void Deactivate();
63 virtual float *GetDataPointer(
const std::string &strDataType);
64 virtual bool SetData(
const std::string &strDataType,
const std::string &strValue,
bool bThrowError =
true);
65 virtual void QueryProperties(CStdPtrArray<TypeProperty> &aryProperties);
Classes for implementing the cm-labs vortex physics engine for AnimatLab.
External stimulus base class.
virtual std::string Type()
returns the string type name of this object.