AnimatLab  2
Test
Torus.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 Torus : public RigidBody
25  {
26  protected:
29 
32 
34  int m_iSides;
35 
37  int m_iRings;
38 
39  public:
40  Torus();
41  virtual ~Torus();
42 
43  static Torus *CastToDerived(AnimatBase *lpBase) {return static_cast<Torus*>(lpBase);}
44 
53  virtual float OutsideRadius();
54 
64  virtual void OutsideRadius(float fltVal, bool bUseScaling = true);
65 
74  virtual float InsideRadius();
75 
85  virtual void InsideRadius(float fltVal, bool bUseScaling = true);
86 
87  virtual int Sides();
88  virtual void Sides(int iVal);
89 
90  virtual void Rings(int iVal);
91  virtual int Rings();
92 
93  virtual bool SetData(const std::string &strDataType, const std::string &strValue, bool bThrowError = true);
94  virtual void QueryProperties(CStdPtrArray<TypeProperty> &aryProperties);
95  virtual void Load(CStdXml &oXml);
96  };
97 
98  } //Bodies
99  } // Environment
100 } //AnimatSim
Root namespace for the base simulation library for AnimatLab.
float m_fltInsideRadius
The inside radius of the torus.
Definition: Torus.h:31
int m_iRings
The number of rings used to draw the torus.
Definition: Torus.h:37
The Cone base class.
Definition: Torus.h:24
Animat base class.
Definition: AnimatBase.h:36
float m_fltOutsideRadius
The outside radius of the torus.
Definition: Torus.h:28
int m_iSides
The number of sides used to draw the torus.
Definition: Torus.h:34
The base class for all of the basic rigid body type of objects.
Definition: RigidBody.h:66