AnimatLab  2
Test
ConstraintRelaxation.h
Go to the documentation of this file.
1 
7 #pragma once
8 
9 namespace AnimatSim
10 {
11 
12  namespace Environment
13  {
20  class ANIMAT_PORT ConstraintRelaxation : public AnimatBase
21  {
22  protected:
25 
28 
30  float m_fltDamping;
31 
32  virtual void SetRelaxationProperties() = 0;
33 
34  public:
36  virtual ~ConstraintRelaxation();
37 
38  static ConstraintRelaxation *CastToDerived(AnimatBase *lpBase) {return static_cast<ConstraintRelaxation*>(lpBase);}
39 
40  virtual int CoordinateID();
41  virtual void CoordinateID(int iVal);
42 
43  virtual bool Enabled();
44  virtual void Enabled(bool bVal);
45 
46  virtual float Stiffness();
47  virtual void Stiffness(float fltVal, bool bUseScaling = true);
48 
49  virtual float Damping();
50  virtual void Damping(float fltVal, bool bUseScaling = true);
51 
52  virtual void CreateDefaultUnits();
53  virtual bool SetData(const std::string &strDataType, const std::string &strValue, bool bThrowError = true);
54  virtual void QueryProperties(CStdPtrArray<TypeProperty> &aryProperties);
55 
56  virtual void Load(CStdXml &oXml);
57  };
58 
59  } // Visualization
60 } //VortexAnimatSim
Root namespace for the base simulation library for AnimatLab.
int m_iCoordinateID
The constraint coordinate ID.
float m_fltDamping
The damping of the collision between those two materials.
float m_fltStiffness
The compliance of the collision between those two materials.
Animat base class.
Definition: AnimatBase.h:36