6 #include "IMovableItemCallback.h"
7 #include "ISimGUICallback.h"
11 #include "IPhysicsMovableItem.h"
12 #include "IPhysicsBody.h"
14 #include "MovableItem.h"
107 CStdFPoint vPos(fltX, fltY, fltZ);
152 bool FluidPlane::SetData(
const std::string &strDataType,
const std::string &strValue,
bool bThrowError)
156 if(Plane::SetData(strType, strValue,
false))
159 if(strType ==
"VELOCITY")
165 if(strType ==
"GRAVITY")
173 THROW_PARAM_ERROR(Al_Err_lInvalidDataType, Al_Err_strInvalidDataType,
"Data Type", strDataType);
178 void FluidPlane::QueryProperties(CStdPtrArray<TypeProperty> &aryProperties)
180 Plane::QueryProperties(aryProperties);
182 aryProperties.Add(
new TypeProperty(
"Velocity", AnimatPropertyType::Float, AnimatPropertyDirection::Set));
183 aryProperties.Add(
new TypeProperty(
"Gravity", AnimatPropertyType::Float, AnimatPropertyDirection::Set));
186 void FluidPlane::Load(
CStdXml &oXml)
virtual void Deserialize(std::string &strXml)
Deserializes a string into an xml document.
Base class file for all Animat simulation objects.
CStdFPoint m_vVelocity
This is the velocity of the fluid.
Declares the simulation recorder class.
virtual bool FindChildElement(std::string strElementName, bool fThrowError=true)
Finds a child element by name.
Simulator * m_lpMovableSim
The pointer to a Simulation.
virtual bool AllowRotateDragZ()
Gets whether this body part can be rotated along the z-axis by the user with the drag handlers...
Root namespace for the base simulation library for AnimatLab.
virtual bool AllowRotateDragX()
Gets whether this body part can be rotated along the x-axis by the user with the drag handlers...
Declares the body part class.
virtual bool FindElement(std::string strElementName, bool fThrowError=true)
Finds an element with the specified name.
FluidPlane()
Default constructor.
virtual bool IntoElem()
Goes into the next element where the cursor is located.
Class that stores information about types for QueryProperty information.
Declares the key frame class.
Declares the plane class.
Declares the joint class.
Declares the organism class.
Declares the activated item class.
Declares a light manager object.
Declares the bounding box class.
A standard xml manipulation class.
virtual CStdFPoint Velocity()
Gets the velocity of the fluid.
virtual ~FluidPlane()
Destructor.
virtual bool AllowRotateDragY()
Gets whether this body part can be rotated along the y-axis by the user with the drag handlers...
virtual bool OutOfElem()
Goes out of the element where the cursor is located.
Declares the fluid plane class.
Declares the data chart manager class.
Declares the rigid body class.
std::string Std_CheckString(std::string strVal)
Converts a string to upper case and trims it.
bool Std_LoadPoint(CStdXml &oXml, std::string strName, CStdIPoint &oPoint, bool bThrowError)
Standard load point.
Declares the structure class.
Declares the odor type class.
virtual void SetGravity()
Sets the gravity of the fluid.
virtual float InverseDistanceUnits()
Gets the inverse distance units.
Declares the simulator class.
Declares the activated item manager class.
Declares the external stimuli manager class.
Declares the receptive field class.