AnimatLab  2
Test
LengthTensionGain.h
Go to the documentation of this file.
1 
7 #pragma once
8 
9 namespace AnimatSim
10 {
11  namespace Gains
12  {
21  class ANIMAT_PORT LengthTensionGain : public Gain
22  {
23  protected:
26 
28  float m_fltTLwidth;
29 
31  float m_fltTLc;
32 
35 
39 
43 
46 
47  public:
49  virtual ~LengthTensionGain();
50 
51  static LengthTensionGain *CastToDerived(AnimatBase *lpBase) {return static_cast<LengthTensionGain*>(lpBase);}
52 
53  virtual float RestingLength();
54  virtual void RestingLength(float fltVal);
55 
56  virtual float TLwidth();
57  virtual void TLwidth(float fltVal);
58 
59  virtual float TLc();
60 
61  virtual float PeLengthPercentage();
62  virtual void PeLengthPercentage(float fltVal);
63 
64  virtual float MinPeLengthPercentage();
65  virtual void MinPeLengthPercentage(float fltVal);
66 
67  virtual float SeRestLength();
68  virtual float MinPeLength();
69 
70  virtual void Copy(CStdSerialize *lpSource);
71  virtual CStdSerialize *Clone();
72 
73  virtual float CalculateGain(float fltInput);
74 
75  virtual bool SetData(const std::string &strDataType, const std::string &strValue, bool bThrowError = true);
76  virtual void QueryProperties(CStdPtrArray<TypeProperty> &aryProperties);
77  virtual void Load(CStdXml &oXml);
78  };
79 
80  } //Gains
81 } //AnimatSim
float m_fltRestingLength
The resting length of the muscle.
Root namespace for the base simulation library for AnimatLab.
Length-Tension muscle gain.
float m_fltPeLengthPercentage
The percentage of the muscle length that is the Pe portion.
float m_fltTLc
precalculated value used in the determination of the length-tension curve.
The Gain base class.
Definition: Gain.h:35
Animat base class.
Definition: AnimatBase.h:36
float m_fltTLwidth
The width parameter of the curve.
float m_fltSeRestLength
Resting length of the se portion of the muscle. Used to calculate SE and PE lengths.