AnimatLab  2
Test
FluidPlane.h
Go to the documentation of this file.
1 
7 #pragma once
8 
9 
10 namespace AnimatSim
11 {
12  namespace Environment
13  {
14  namespace Bodies
15  {
16 
30  class ANIMAT_PORT FluidPlane : public Plane
31  {
32  protected:
34  CStdFPoint m_vVelocity;
35 
36  virtual void SetGravity();
37 
38  public:
39  FluidPlane();
40  virtual ~FluidPlane();
41 
42  static FluidPlane *CastToDerived(AnimatBase *lpBase) {return static_cast<FluidPlane*>(lpBase);}
43 
44  virtual bool AllowRotateDragX();
45  virtual bool AllowRotateDragY();
46  virtual bool AllowRotateDragZ();
47 
48  virtual float Height() {return 0;};
49 
50  virtual CStdFPoint Velocity();
51  virtual void Velocity(CStdFPoint &oPoint, bool bUseScaling = true);
52  virtual void Velocity(float fltX, float fltY, float fltZ, bool bUseScaling = true);
53  virtual void Velocity(std::string strXml, bool bUseScaling = true);
54 
55  virtual bool SetData(const std::string &strDataType, const std::string &strValue, bool bThrowError = true);
56  virtual void QueryProperties(CStdPtrArray<TypeProperty> &aryProperties);
57  virtual void Load(CStdXml &oXml);
58  };
59 
60  } //Bodies
61  } // Environment
62 } //AnimatSim
CStdFPoint m_vVelocity
This is the velocity of the fluid.
Definition: FluidPlane.h:34
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