AnimatLab  2
Test
Sphere.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 Sphere : public RigidBody
25  {
26  protected:
28  float m_fltRadius;
29 
32 
35 
36  public:
37  Sphere();
38  virtual ~Sphere();
39 
40  static Sphere *CastToDerived(AnimatBase *lpBase) {return static_cast<Sphere*>(lpBase);}
41 
50  virtual float Radius();
51 
61  virtual void Radius(float fltVal, bool bUseScaling = true);
62 
63  virtual void LatitudeSegments(int iVal);
64  virtual int LatitudeSegments();
65 
66  virtual void LongtitudeSegments(int iVal);
67  virtual int LongtitudeSegments();
68 
69  virtual bool SetData(const std::string &strDataType, const std::string &strValue, bool bThrowError = true);
70  virtual void QueryProperties(CStdPtrArray<TypeProperty> &aryProperties);
71  virtual void Load(CStdXml &oXml);
72  };
73 
74  } //Bodies
75  } // Environment
76 } //AnimatSim
77 
int m_iLongtitudeSegments
Number of segments along the longtitude direction that are used to build the sphere.
Definition: Sphere.h:34
Root namespace for the base simulation library for AnimatLab.
int m_iLatitudeSegments
Number of segments along the latitude direction that are used to build the sphere.
Definition: Sphere.h:31
float m_fltRadius
The radius of the sphere.
Definition: Sphere.h:28
Animat base class.
Definition: AnimatBase.h:36
The base class for all of the basic rigid body type of objects.
Definition: RigidBody.h:66