8 #include "IMovableItemCallback.h"
9 #include "ISimGUICallback.h"
15 #include "IPhysicsMovableItem.h"
16 #include "IPhysicsBody.h"
18 #include "MovableItem.h"
80 if(!lpChart)
return NULL;
159 void DataChartMgr::Load(
CStdXml &oXml)
170 for(
int iIndex=0; iIndex<iCount; iIndex++)
194 std::string strModuleName, strType, strFilename;
206 THROW_TEXT_ERROR(Al_Err_lConvertingClassToType, Al_Err_strConvertingClassToType,
"DataChart");
222 if(lpChart)
delete lpChart;
228 if(lpChart)
delete lpChart;
229 THROW_ERROR(Std_Err_lUnspecifiedError, Std_Err_strUnspecifiedError);
virtual void ReInitialize()
Re-initialize this object.
virtual void Deserialize(std::string &strXml)
Deserializes a string into an xml document.
Base class file for all Animat simulation objects.
Declares the nervous system class.
Declares the simulation recorder class.
virtual void SetSystemPointers(Simulator *lpSim, Structure *lpStructure, NeuralModule *lpModule, Node *lpNode, bool bVerify)
Sets the system pointers.
virtual bool FindChildElement(std::string strElementName, bool fThrowError=true)
Finds a child element by name.
virtual void RemoveDataColumn(std::string strChartKey, std::string strColumnName, bool bThrowError=true)
Removes the specified data column.
Root namespace for the base simulation library for AnimatLab.
Declares the body part class.
virtual DataColumn * FindDataColumn(std::string strChartKey, std::string strColumnName, bool bThrowError=true)
Searches for a DataColumn with the specified column name.
virtual bool FindElement(std::string strElementName, bool fThrowError=true)
Finds an element with the specified name.
Simulator * m_lpSim
The pointer to a Simulation.
Information about the standard error.
virtual bool IntoElem()
Goes into the next element where the cursor is located.
DataChart * LoadDataChart(CStdXml &oXml)
Loads a data chart.
virtual void RemoveColumn(std::string strID, bool bThrowError=true)
Removes the column with the specified ID.
Declares the link base class.
Declares the key frame class.
Declares the joint class.
Declares the organism class.
virtual ~DataChartMgr()
Destructor.
virtual bool AddDataChart(std::string strXml)
Adds a data chart to the manager.
Declares the activated item class.
Declares the data column class.
virtual void Load(std::string strProjectPath, std::string strConfigFile)
Loads a data chart from a file.
virtual CStdSerialize * CreateObject(std::string strModule, std::string strClassName, std::string strType, bool bThrowError=true)
Creates an object using a class factory.
Declares a light manager object.
Declares the bounding box class.
Declares the gain base class.
virtual DataColumn * FindColumn(std::string strID, int &iIndex, bool bThrowError)
Searches for a column that matches the specified ID.
A standard xml manipulation class.
virtual void Reset()
Resets this manager.
DataChartMgr()
Default constructor.
virtual std::string ProjectPath()
Gets the project path.
virtual bool RemoveDataChart(std::string strID)
Removes the data chart described by ID.
virtual std::string GetChildString(std::string strElementName)
Gets a string value from the element with the specified name.
virtual void AddDataColumn(std::string strChartKey, DataColumn *lpColumn)
Adds a data column to the specified chart.
virtual ActivatedItem * Find(std::string strID, int &iIndex, bool bThrowError)
Searches for an item with the specified ID and sets its index in the array.
virtual int NumberOfChildren()
Gets the number of children of the current element.
virtual bool OutOfElem()
Goes out of the element where the cursor is located.
Declares the data chart class.
bool Std_IsBlank(std::string strVal)
Trims a string and tests if a string is blank.
Declares the data chart manager class.
Declares the rigid body class.
virtual void Remove(std::string strID, bool bThrowError=true)
Removes the item with the specified ID.
Declares the structure class.
Declares the odor type class.
virtual void VerifySystemPointers()
Verify that system pointers have been set correctly.
Declares the simulator class.
Declares the neural module class.
virtual std::string ProjectPath()
Gets the project path.
virtual bool FindChildByIndex(int iIndex, bool bThrowError=true)
Finds a child element by index.
Declares the activated item manager class.
Declares the external stimuli manager class.
virtual void AddColumn(DataColumn *lpColumn)
Adds a column.
Declares the receptive field class.
virtual void Add(ActivatedItem *lpItem)
Adds a new ActivatedItem to be managed.