AnimatLab  2
Test
PropertyControlAdapter.h
1 #pragma once
2 
3 namespace AnimatSim
4 {
5 
15  namespace Adapters
16  {
17 
30  class ANIMAT_PORT PropertyControlAdapter : public Adapter
31  {
32  protected:
35 
36  float m_fltPreviousSetVal;
37  float m_fltSetThreshold;
38  float m_fltInitialValue;
39  float m_fltFinalValue;
40 
41  std::string m_strPropertyName;
42  AnimatPropertyType m_ePropertyType;
43 
44  virtual void SetPropertyValue(float fltVal);
45  virtual void SetDestinationID(std::string strXml);
46 
47  public:
49  virtual ~PropertyControlAdapter();
50 
51  static PropertyControlAdapter *CastToDerived(AnimatBase *lpBase) {return static_cast<PropertyControlAdapter*>(lpBase);}
52 
53  virtual AnimatBase *TargetObject();
54 
55  virtual void TargetID(std::string strID);
56 
57  virtual void PropertyName(std::string strPropName);
58  virtual std::string PropertyName();
59 
60  virtual void SetThreshold(float fltThreshold);
61  virtual float SetThreshold();
62 
63  virtual void InitialValue(float fltVal);
64  virtual float InitialValue();
65 
66  virtual void FinalValue(float fltVal);
67  virtual float FinalValue();
68 
69  virtual void Initialize();
70  virtual void ResetSimulation();
71  virtual void SimStarting();
72  virtual bool SetData(const std::string &strDataType, const std::string &strValue, bool bThrowError = true);
73  virtual void QueryProperties(CStdPtrArray<TypeProperty> &aryProperties);
74  virtual void StepSimulation();
75  virtual void Load(CStdXml &oXml);
76  };
77 
78  } //Adapters
79 } //AnimatSim
Root namespace for the base simulation library for AnimatLab.
Animat base class.
Definition: AnimatBase.h:36
AnimatBase * m_lpTargetObject
Pointer to the target node.