AnimatLab  2
Test
Cylinder.h
Go to the documentation of this file.
1 
7 #pragma once
8 
9 namespace AnimatSim
10 {
11  namespace Environment
12  {
13  namespace Bodies
14  {
24  class ANIMAT_PORT Cylinder : public RigidBody
25  {
26  protected:
28  float m_fltRadius;
29 
31  float m_fltHeight;
32 
34  int m_iSides;
35 
36  public:
37  Cylinder();
38  virtual ~Cylinder();
39 
40  static Cylinder *CastToDerived(AnimatBase *lpBase) {return static_cast<Cylinder*>(lpBase);}
41 
50  virtual float Radius();
51 
61  virtual void Radius(float fltVal, bool bUseScaling = true);
62 
71  virtual float Height();
72 
82  virtual void Height(float fltVal, bool bUseScaling = true);
83 
84  virtual void Sides(int iVal);
85  virtual int Sides();
86 
87  virtual bool SetData(const std::string &strDataType, const std::string &strValue, bool bThrowError = true);
88  virtual void QueryProperties(CStdPtrArray<TypeProperty> &aryProperties);
89  virtual void Load(CStdXml &oXml);
90  };
91 
92  } //Bodies
93  } // Environment
94 } //AnimatSim
Root namespace for the base simulation library for AnimatLab.
float m_fltRadius
The radius of the cylinder.
Definition: Cylinder.h:28
int m_iSides
The number of sides used to draw the cylinder.
Definition: Cylinder.h:34
float m_fltHeight
The height of the cylinder.
Definition: Cylinder.h:31
Animat base class.
Definition: AnimatBase.h:36
the Cylinder base class.
Definition: Cylinder.h:24
The base class for all of the basic rigid body type of objects.
Definition: RigidBody.h:66