8 #include "IMovableItemCallback.h"
9 #include "ISimGUICallback.h"
15 #include "IPhysicsMovableItem.h"
16 #include "IPhysicsBody.h"
18 #include "MovableItem.h"
44 m_aryColor.
Set(1, 1, 1, 1);
45 m_ptPosition.Set(10,10, 0);
46 m_strFont =
"fonts/arial.ttf";
49 m_lpDisplayData = NULL;
50 m_lpUpdateData = NULL;
51 m_fltUpdateInterval = 1;
54 HudText::HudText(
float *aryColor, CStdFPoint &ptPosition, std::string strFont,
int iCharSize, std::string strText, std::string strDisplayTargetID, std::string strDisplayDataType, std::string strUpdateTargetID, std::string strUpdateDataType,
float fltUpdateInterval)
56 m_aryColor.
Set(aryColor[0], aryColor[1], aryColor[2], aryColor[3]);
57 m_ptPosition = ptPosition;
59 m_iCharSize = iCharSize;
61 m_strDisplayTargetID = strDisplayTargetID;
62 m_strDisplayDataType = strDisplayDataType;
63 m_strUpdateTargetID = strUpdateTargetID;
64 m_strUpdateDataType = strUpdateDataType;
65 m_fltUpdateInterval = fltUpdateInterval;
83 void HudText::Load(
CStdXml &oXml)
89 m_aryColor.
Load(oXml,
"Color",
false);
92 m_iCharSize = oXml.
GetChildInt(
"CharSize", m_iCharSize);
Base class file for all Animat simulation objects.
Declares the simulation recorder class.
Root namespace for the base simulation library for AnimatLab.
void Set(float R, float G, float B, float A)
Sets the color values.
Declares the body part class.
void Load(CStdXml &oXml, std::string strParamName, bool bThrowError=true)
Loads the color.
Simulator * m_lpSim
The pointer to a Simulation.
virtual bool IntoElem()
Goes into the next element where the cursor is located.
virtual float * GetDataPointer(const std::string &strDataType)
Returns a float pointer to a data item of interest in this object.
virtual void Initialize()
Initializes this object.
Declares the key frame class.
Declares the joint class.
Declares the organism class.
virtual int GetChildInt(std::string strElementName)
Gets an integer value from the element with the specified name.
Declares the activated item class.
Declares a light manager object.
Declares the bounding box class.
A standard xml manipulation class.
virtual std::string GetChildString(std::string strElementName)
Gets a string value from the element with the specified name.
virtual AnimatBase * FindByID(std::string strID, bool bThrowError=true)
Searches for the object with the specified ID.
virtual bool OutOfElem()
Goes out of the element where the cursor is located.
Declares the data chart manager class.
Declares the rigid body class.
bool Std_LoadPoint(CStdXml &oXml, std::string strName, CStdIPoint &oPoint, bool bThrowError)
Standard load point.
Declares the structure class.
Declares the odor type class.
Declares the simulator class.
Declares the activated item manager class.
Declares the external stimuli manager class.
Declares the receptive field class.
virtual float GetChildFloat(std::string strElementName)
Gets a float value from the element with the specified name.