AnimatLab  2
Test
PolynomialGain.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 PolynomialGain : public Gain
22  {
23  protected:
25  float m_fltA;
26 
28  float m_fltB;
29 
31  float m_fltC;
32 
34  float m_fltD;
35 
36  public:
38  virtual ~PolynomialGain();
39 
40  static PolynomialGain *CastToDerived(AnimatBase *lpBase) {return static_cast<PolynomialGain*>(lpBase);}
41 
42  float A();
43  void A(float fltVal);
44 
45  float B();
46  void B(float fltVal);
47 
48  float C();
49  void C(float fltVal);
50 
51  float D();
52  void D(float fltVal);
53 
54  virtual void Copy(CStdSerialize *lpSource);
55  virtual CStdSerialize *Clone();
56 
57  virtual float CalculateGain(float fltInput);
58 
59  virtual bool SetData(const std::string &strDataType, const std::string &strValue, bool bThrowError = true);
60  virtual void QueryProperties(CStdPtrArray<TypeProperty> &aryProperties);
61  virtual void Load(CStdXml &oXml);
62  };
63 
64  } //Gains
65 } //AnimatSim
float m_fltD
The D parameter of the gain.
Root namespace for the base simulation library for AnimatLab.
float m_fltB
The B parameter of the gain.
float m_fltA
The A parameter of the gain.
The Gain base class.
Definition: Gain.h:35
Animat base class.
Definition: AnimatBase.h:36
float m_fltC
The C parameter of the gain.