AnimatLab  2
Test
LinearHillStretchReceptor.h
1 // LinearHillStretchReceptor.h: interface for the LinearHillStretchReceptor class.
2 //
4 
5 #if !defined(AFX_LINEAR_HILL_STRETCH_RECEPTOR_H__C0EE52F2_D31B_48CD_B5F7_B18EEE81BE72__INCLUDED_)
6 #define AFX_LINEAR_HILL_STRETCH_RECEPTOR_H__C0EE52F2_D31B_48CD_B5F7_B18EEE81BE72__INCLUDED_
7 
8 #if _MSC_VER > 1000
9 #pragma once
10 #endif
11 
12 namespace AnimatSim
13 {
14  namespace Environment
15  {
16  namespace Bodies
17  {
18 
55  class ANIMAT_PORT LinearHillStretchReceptor : public LinearHillMuscle
56  {
57  protected:
60 
63 
66 
68  float m_fltIaRate;
69 
71  float m_fltIIRate;
72 
73  virtual void CalculateTension();
74 
75  public:
77  virtual ~LinearHillStretchReceptor();
78 
79  static LinearHillStretchReceptor *CastToDerived(AnimatBase *lpBase) {return static_cast<LinearHillStretchReceptor*>(lpBase);}
80 
81  virtual bool ApplyTension();
82  virtual void ApplyTension(bool bVal);
83 
84  virtual float IaDischargeConstant();
85  virtual void IaDischargeConstant(float fltVal);
86 
87  virtual float IIDischargeConstant();
88  virtual void IIDischargeConstant(float fltVal);
89 
90  virtual float IaRate();
91  virtual float IIRate();
92 
93  virtual float *GetDataPointer(const std::string &strDataType);
94  virtual bool SetData(const std::string &strDataType, const std::string &strValue, bool bThrowError = true);
95  virtual void QueryProperties(CStdPtrArray<TypeProperty> &aryProperties);
96 
97  virtual void ResetSimulation();
98 
99  virtual void Load(CStdXml &oXml);
100  };
101 
102  } //Bodies
103  } // Environment
104 } //AnimatSim
105 
106 #endif // !defined(AFX_LINEAR_HILL_STRETCH_RECEPTOR_H__C0EE52F2_D31B_48CD_B5F7_B18EEE81BE72__INCLUDED_)
float m_fltIIDischargeConstant
Constant that relates length of muscle segment to discharge rate of type II fibers.
A muscle that is connected between two attachment points.
Root namespace for the base simulation library for AnimatLab.
bool m_bApplyTension
Determines whether the receptor applies tension or not.
Animat base class.
Definition: AnimatBase.h:36
A muscle that is connected between two attachment points.
float m_fltIaDischargeConstant
Constant that relates length of muscle segment to discharge rate of type Ia fibers.