AnimatLab  2
Test
VsMaterialType.h
1 // VsMaterialType.h: interface for the VsMaterialType class.
2 //
4 #pragma once
5 
6 namespace VortexAnimatSim
7 {
8  namespace Environment
9  {
10 
12  {
13  protected:
16 
19 
22 
25 
28 
31 
34 
37 
40 
43 
46 
48  float m_fltDamping;
49 
52 
55 
58 
61 
64 
67 
70 
73 
76 
79 
82 
85 
86  VxMaterialTable *m_vxMaterialTable;
87  VxMaterial *m_vxMaterial;
88 
89  virtual void SetMaterialProperties();
90  virtual void RegisterMaterialType();
91 
92  public:
94  virtual ~VsMaterialType();
95 
96  virtual float FrictionLinearPrimary();
97  virtual void FrictionLinearPrimary(float fltVal);
98  virtual float FrictionLinearSecondary();
99  virtual void FrictionLinearSecondary(float fltVal);
100  virtual float FrictionAngularNormal();
101  virtual void FrictionAngularNormal(float fltVal);
102  virtual float FrictionAngularPrimary();
103  virtual void FrictionAngularPrimary(float fltVal);
104  virtual float FrictionAngularSecondary();
105  virtual void FrictionAngularSecondary(float fltVal);
106 
107  virtual float FrictionLinearPrimaryMax();
108  virtual void FrictionLinearPrimaryMax(float fltVal, bool bUseScaling = true);
109  virtual float FrictionLinearSecondaryMax();
110  virtual void FrictionLinearSecondaryMax(float fltVal, bool bUseScaling = true);
111  virtual float FrictionAngularNormalMax();
112  virtual void FrictionAngularNormalMax(float fltVal, bool bUseScaling = true);
113  virtual float FrictionAngularPrimaryMax();
114  virtual void FrictionAngularPrimaryMax(float fltVal, bool bUseScaling = true);
115  virtual float FrictionAngularSecondaryMax();
116  virtual void FrictionAngularSecondaryMax(float fltVal, bool bUseScaling = true);
117 
118  virtual float SlipLinearPrimary();
119  virtual void SlipLinearPrimary(float fltVal, bool bUseScaling = true);
120  virtual float SlipLinearSecondary();
121  virtual void SlipLinearSecondary(float fltVal, bool bUseScaling = true);
122  virtual float SlipAngularNormal();
123  virtual void SlipAngularNormal(float fltVal, bool bUseScaling = true);
124  virtual float SlipAngularPrimary();
125  virtual void SlipAngularPrimary(float fltVal, bool bUseScaling = true);
126  virtual float SlipAngularSecondary();
127  virtual void SlipAngularSecondary(float fltVal, bool bUseScaling = true);
128 
129  virtual float SlideLinearPrimary();
130  virtual void SlideLinearPrimary(float fltVal, bool bUseScaling = true);
131  virtual float SlideLinearSecondary();
132  virtual void SlideLinearSecondary(float fltVal, bool bUseScaling = true);
133  virtual float SlideAngularNormal();
134  virtual void SlideAngularNormal(float fltVal, bool bUseScaling = true);
135  virtual float SlideAngularPrimary();
136  virtual void SlideAngularPrimary(float fltVal, bool bUseScaling = true);
137  virtual float SlideAngularSecondary();
138  virtual void SlideAngularSecondary(float fltVal, bool bUseScaling = true);
139 
140  virtual float Compliance();
141  virtual void Compliance(float fltVal, bool bUseScaling = true);
142 
143  virtual float Damping();
144  virtual void Damping(float fltVal, bool bUseScaling = true);
145 
146  virtual float Restitution();
147  virtual void Restitution(float fltVal);
148 
149  virtual float MaxAdhesive();
150  virtual void MaxAdhesive(float fltVal, bool bUseScaling = true);
151 
152  virtual int GetMaterialID(std::string strName);
153  virtual void Initialize();
154 
155  virtual void CreateDefaultUnits();
156  virtual bool SetData(const std::string &strDataType, const std::string &strValue, bool bThrowError = true);
157  virtual void QueryProperties(CStdPtrArray<TypeProperty> &aryProperties);
158 
159  virtual void Load(CStdXml &oXml);
160  };
161 
162  } // Visualization
163 } //VortexAnimatSim
float m_fltFrictionAngularNormal
The angular normal coefficient of friction parameter. (this simulates spinning resistance) ...
float m_fltFrictionAngularSecondaryMax
The maximum angular secondary friction that can created.
float m_fltFrictionAngularPrimaryMax
The maximum angular primary friction that can created.
float m_fltFrictionAngularPrimary
The angular primary coefficient of friction parameter.(this simulates rolling resistance) ...
float m_fltSlipAngularSecondary
The angular secondary slip of the collision between those two materials.
float m_fltCompliance
The compliance of the collision between those two materials.
float m_fltMaxAdhesive
The maximum adhesion of the collision between those two materials.
float m_fltSlipAngularNormal
The angular normal slip of the collision between those two materials.
float m_fltSlipLinearSecondary
The secondary linear slip of the collision between those two materials.
float m_fltDamping
The damping of the collision between those two materials.
float m_fltSlipAngularPrimary
The angular primary slip of the collision between those two materials.
float m_fltSlipLinearPrimary
The primary linear slip of the collision between those two materials.
float m_fltSlideLinearSecondary
The primary linear slide of the collision between those two materials.
Classes for implementing the cm-labs vortex physics engine for AnimatLab.
float m_fltFrictionLinearPrimary
The primary linear coefficient of friction parameter.
float m_fltFrictionLinearSecondary
The secondary linear coefficient of friction parameter.
float m_fltFrictionLinearPrimaryMax
The maximum linear primary friction that can created.
float m_fltSlideAngularNormal
The angular normal slide of the collision between those two materials.
float m_fltFrictionLinearSecondaryMax
The maximum linear secondary friction that can created.
float m_fltSlideAngularPrimary
The angular primary slide of the collision between those two materials.
float m_fltRestitution
The restitution of the collision between those two materials.
float m_fltFrictionAngularNormalMax
The maximum angular normal friction that can created.
float m_fltFrictionAngularSecondary
The angular secondary coefficient of friction parameter.(this simulates rolling resistance) ...
float m_fltSlideLinearPrimary
The primary linear slide of the collision between those two materials.
float m_fltSlideAngularSecondary
The angular secondary slide of the collision between those two materials.