AnimatLab  2
Test
Ellipsoid.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 Ellipsoid : public RigidBody
25  {
26  protected:
29 
32 
35 
38 
39  public:
40  Ellipsoid();
41  virtual ~Ellipsoid();
42 
43  static Ellipsoid *CastToDerived(AnimatBase *lpBase) {return static_cast<Ellipsoid*>(lpBase);}
44 
53  virtual float MajorRadius();
54 
64  virtual void MajorRadius(float fltVal, bool bUseScaling = true);
65 
74  virtual float MinorRadius();
75 
85  virtual void MinorRadius(float fltVal, bool bUseScaling = true);
86 
87  virtual int LatSegments();
88  virtual void LatSegments(int iVal);
89 
90  virtual void LongSegments(int iVal);
91  virtual int LongSegments();
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_fltMinorRadius
The radius of the minor axis of the ellipsoid.
Definition: Ellipsoid.h:31
float m_fltMajorRadius
The radius of the major axis of the ellipsoid.
Definition: Ellipsoid.h:28
int m_iLatSegments
The number of segments used to draw in the latitude direction.
Definition: Ellipsoid.h:34
Animat base class.
Definition: AnimatBase.h:36
The base class for all of the basic rigid body type of objects.
Definition: RigidBody.h:66
int m_iLongSegments
The number of segments used to draw in the longtitude direction.
Definition: Ellipsoid.h:37