AnimatLab  2
Test
LinearJoint.h
Go to the documentation of this file.
1 
7 #pragma once
8 
9 namespace AnimatSim
10 {
11  namespace Environment
12  {
13  namespace Joints
14  {
15 
24  class ANIMAT_PORT LinearJoint : public Joint
25  {
26  protected:
27  int m_iLinearType;
28 
29  public:
30  LinearJoint();
31  virtual ~LinearJoint();
32 
33  static LinearJoint *CastToDerived(AnimatBase *lpBase) {return static_cast<LinearJoint*>(lpBase);}
34 
35  virtual void LinearType(std::string strType);
36  virtual void LinearType(int iType);
37  virtual int LinearType();
38 
39  virtual float PlaneWidth();
40  virtual float PlaneSize();
41 
42  virtual float CylinderRadius();
43  virtual float CylinderHeight();
44 
45 #pragma region DataAccesMethods
46 
47  virtual bool SetData(const std::string &strDataType, const std::string &strValue, bool bThrowError = true);
48  virtual void QueryProperties(CStdPtrArray<TypeProperty> &aryProperties);
49 
50 #pragma endregion
51 
52  virtual void Load(CStdXml &oXml);
53  };
54 
55  } //Joints
56  } // Environment
57 } //AnimatSim
The base class for all of the joint type of objects.
Definition: Joint.h:40
Root namespace for the base simulation library for AnimatLab.
Animat base class.
Definition: AnimatBase.h:36
A Linear movement type of joint.
Definition: LinearJoint.h:24