AnimatLab  2
Test
EnablerStimulus.h
Go to the documentation of this file.
1 
7 #pragma once
8 
9 namespace AnimatSim
10 {
11  namespace ExternalStimuli
12  {
19  class ANIMAT_PORT EnablerStimulus : public ExternalStimulus
20  {
21  protected:
23  std::string m_strTargetNodeID;
24 
27 
28  public:
30  virtual ~EnablerStimulus();
31 
32  static EnablerStimulus *CastToDerived(AnimatBase *lpBase) {return static_cast<EnablerStimulus*>(lpBase);}
33 
34  virtual std::string Type();
35 
36  virtual std::string TargetNodeID();
37  virtual void TargetNodeID(std::string strID);
38 
39  virtual bool EnableWhenActive();
40  virtual void EnableWhenActive(bool bVal);
41 
42  virtual void Initialize();
43  virtual void Activate();
44  virtual void StepSimulation();
45  virtual void Deactivate();
46  virtual bool SetData(const std::string &strDataType, const std::string &strValue, bool bThrowError = true);
47  virtual void QueryProperties(CStdPtrArray<TypeProperty> &aryProperties);
48 
49  virtual void Load(CStdXml &oXml);
50 
51  };
52 
53  } //ExternalStimuli
54 } //VortexAnimatSim
Root namespace for the base simulation library for AnimatLab.
std::string m_strTargetNodeID
GUID ID of the target node to enable.
bool m_bEnableWhenActive
Tells whether the node is enabled while stimulus is active or not.
Animat base class.
Definition: AnimatBase.h:36
This stimulus enables or disables a joint or body part for a specified period of time.