AnimatLab  2
Test
Plane.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  {
41  class ANIMAT_PORT Plane : public RigidBody
42  {
43  protected:
44  CStdFPoint m_ptSize;
45 
46  int m_iWidthSegments;
47  int m_iLengthSegments;
48 
49  public:
50  Plane();
51  virtual ~Plane();
52 
53  static Plane *CastToDerived(AnimatBase *lpBase) {return static_cast<Plane*>(lpBase);}
54 
55  virtual float CornerX();
56  virtual float CornerY();
57 
58  virtual float GridX();
59  virtual float GridY();
60 
61  virtual CStdFPoint Size();
62  virtual void Size(CStdFPoint ptPoint, bool bUseScaling = true);
63  virtual void Size(std::string strXml, bool bUseScaling = true);
64 
65  virtual int WidthSegments();
66  virtual void WidthSegments(int iVal);
67 
68  virtual int LengthSegments();
69  virtual void LengthSegments(int iVal);
70 
71  virtual bool SetData(const std::string &strDataType, const std::string &strValue, bool bThrowError = true);
72  virtual void QueryProperties(CStdPtrArray<TypeProperty> &aryProperties);
73  virtual void Load(CStdXml &oXml);
74  };
75 
76  } //Bodies
77  } // Environment
78 } //AnimatSim
Root namespace for the base simulation library for AnimatLab.
A ground plane type of rigid body.
Definition: Plane.h:41
Animat base class.
Definition: AnimatBase.h:36
The base class for all of the basic rigid body type of objects.
Definition: RigidBody.h:66