AnimatLab  2
Test
Box.h
Go to the documentation of this file.
1 
7 #pragma once
8 
9 namespace AnimatSim
10 {
11  namespace Environment
12  {
13 
19  namespace Bodies
20  {
21 
42  class ANIMAT_PORT Box : public RigidBody
43  {
44  protected:
46  float m_fltLength;
47 
50 
52  float m_fltWidth;
53 
56 
58  float m_fltHeight;
59 
62 
63  public:
64  Box();
65  virtual ~Box();
66 
67  static Box *CastToDerived(AnimatBase *lpBase) {return static_cast<Box*>(lpBase);}
68 
77  virtual float Length();
78 
88  virtual void Length(float fltVal, bool bUseScaling = true);
89 
98  virtual float Width();
99 
109  virtual void Width(float fltVal, bool bUseScaling = true);
110 
119  virtual float Height();
120 
130  virtual void Height(float fltVal, bool bUseScaling = true);
131 
132  virtual void LengthSections(int iVal);
133  virtual int LengthSections();
134 
135  virtual void WidthSections(int iVal);
136  virtual int WidthSections();
137 
138  virtual void HeightSections(int iVal);
139  virtual int HeightSections();
140 
141  virtual float LengthSegmentSize();
142  virtual float WidthSegmentSize();
143  virtual float HeightSegmentSize();
144 
145  virtual bool SetData(const std::string &strDataType, const std::string &strValue, bool bThrowError = true);
146  virtual void QueryProperties(CStdPtrArray<TypeProperty> &aryProperties);
147  virtual void Load(CStdXml &oXml);
148  };
149 
150  } //Bodies
151  } // Environment
152 } //AnimatSim
Root namespace for the base simulation library for AnimatLab.
int m_iHeightSections
The number of sections to split the box height into.
Definition: Box.h:61
int m_iWidthSections
The number of sections to split the box width into.
Definition: Box.h:55
float m_fltLength
The length dimension of the box.
Definition: Box.h:46
float m_fltWidth
The width dimension of the box.
Definition: Box.h:52
int m_iLengthSections
The number of sections to split the box length into.
Definition: Box.h:49
Animat base class.
Definition: AnimatBase.h:36
float m_fltHeight
The height dimension of the box.
Definition: Box.h:58
The Box base class.
Definition: Box.h:42
The base class for all of the basic rigid body type of objects.
Definition: RigidBody.h:66