AnimatLab  2
Test
BellGain.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 BellGain : 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:
37  BellGain();
38  virtual ~BellGain();
39 
40  static BellGain *CastToDerived(AnimatBase *lpBase) {return static_cast<BellGain*>(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
Root namespace for the base simulation library for AnimatLab.
float m_fltB
The B parameter of the gain.
Definition: BellGain.h:28
float m_fltA
The A parameter of the gain.
Definition: BellGain.h:25
The Gain base class.
Definition: Gain.h:35
float m_fltD
The D parameter of the gain.
Definition: BellGain.h:34
float m_fltC
The C parameter of the gain.
Definition: BellGain.h:31
Animat base class.
Definition: AnimatBase.h:36
Bell gain class.
Definition: BellGain.h:21