AnimatLab  2
Test
Cone.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 Cone : public RigidBody
25  {
26  protected:
29 
32 
34  float m_fltHeight;
35 
37  int m_iSides;
38 
39  public:
40  Cone();
41  virtual ~Cone();
42 
43  static Cone *CastToDerived(AnimatBase *lpBase) {return static_cast<Cone*>(lpBase);}
44 
53  virtual float LowerRadius();
54 
64  virtual void LowerRadius(float fltVal, bool bUseScaling = true);
65 
74  virtual float UpperRadius();
75 
85  virtual void UpperRadius(float fltVal, bool bUseScaling = true);
86 
95  virtual float Height();
96 
106  virtual void Height(float fltVal, bool bUseScaling = true);
107 
108  virtual void Sides(int iVal);
109  virtual int Sides();
110 
111  virtual bool SetData(const std::string &strDataType, const std::string &strValue, bool bThrowError = true);
112  virtual void QueryProperties(CStdPtrArray<TypeProperty> &aryProperties);
113  virtual void Load(CStdXml &oXml);
114  };
115 
116  } //Bodies
117  } // Environment
118 } //AnimatSim
float m_fltLowerRadius
The lower radius of the cone.
Definition: Cone.h:28
Root namespace for the base simulation library for AnimatLab.
int m_iSides
The number of sides used to draw the cone.
Definition: Cone.h:37
The Cone base class.
Definition: Cone.h:24
float m_fltHeight
The height of the cone.
Definition: Cone.h:34
Animat base class.
Definition: AnimatBase.h:36
float m_fltUpperRadius
The upper radius of the cone.
Definition: Cone.h:31
The base class for all of the basic rigid body type of objects.
Definition: RigidBody.h:66