80 virtual long CalculateChartColumnCount();
82 virtual DataColumn *FindColumn(std::string strID,
int &iIndex,
bool bThrowError);
90 virtual std::string Type();
92 virtual void StartTime(
float fltVal,
bool bReInit =
true);
93 virtual void EndTime(
float fltVal,
bool bReInit =
true);
95 virtual bool SetStartEndTime();
96 virtual void SetStartEndTime(
bool bVal);
98 virtual long BufferSize();
99 virtual long UsedBufferSize();
101 virtual long BufferByteSize();
102 virtual long UsedBufferByteSize();
104 virtual float *TimeBuffer();
105 virtual float *DataBuffer();
107 virtual int CollectInterval();
108 virtual void CollectInterval(
int iVal,
bool bReInit =
true);
109 virtual void CollectInterval(
float fltVal,
bool bReInit =
true);
111 virtual float ChartTimeBase();
113 virtual long CollectTimeWindow();
114 virtual void CollectTimeWindow(
long lVal,
bool bReInit =
true);
115 virtual void CollectTimeWindow(
float fltVal,
bool bReInit =
true);
117 virtual std::string ProjectPath();
118 virtual void ProjectPath(std::string strVal);
120 virtual long ColumnCount();
121 virtual long RowCount();
123 virtual long CurrentRow();
124 virtual void CurrentRow(
long iVal);
127 virtual void Unlock();
129 virtual void AddData(
int iColumn,
int iRow,
float fltVal);
130 virtual void SetData(
int iColumn,
int iRow,
float fltVal);
132 virtual void Load(std::string strProjectPath, std::string strConfigFile);
133 virtual void Load(CStdXml &oXml);
136 virtual void AddColumn(std::string strXml,
bool bDoNotInit);
137 virtual void RemoveColumn(std::string strID,
bool bThrowError =
true);
138 virtual DataColumn *FindColumn(std::string strID,
bool bThrowError =
true);
140 virtual void Activate();
141 virtual void Deactivate();
143 #pragma region DataAccesMethods
144 virtual bool SetData(
const std::string &strDataType,
const std::string &strValue,
bool bThrowError =
true);
145 virtual void QueryProperties(CStdPtrArray<TypeProperty> &aryProperties);
146 virtual bool AddItem(
const std::string &strItemType,
const std::string &strXml,
bool bThrowError =
true,
bool bDoNotInit =
false);
147 virtual bool RemoveItem(
const std::string &strItemType,
const std::string &strID,
bool bThrowError =
true);
151 virtual void Initialize();
152 virtual void ReInitialize();
153 virtual void ResetSimulation();
154 virtual void StepSimulation();
std::string m_strConfigFilename
Filename of the configuration file.
bool m_bSetStartEndTime
true to set the start and end time. If false then the chart collects continuously.
Root namespace for the base simulation library for AnimatLab.
int m_lCurrentCol
The currently selected column.
float * m_aryDataBuffer
Buffer for data variable points.
long m_lCollectTimeWindow
The number of time slices where we will collect data.
float m_fltCollectTimeWindow
The time duration where we will collect data.
Base class for all activated items.
CStdMap< std::string, DataColumn * > m_aryColumnsMap
The array of datacolumns columns. This is a sorted map that is used to get columns based on their ID...
long m_lColumnCount
Number of data columns.
float m_fltCollectInterval
Tells what the time slice step interval to use when collecting data. This is.
std::string m_strProjectPath
Full pathname of the project file.
CStdPtrArray< DataColumn > m_aryDataColumns
The primary array of data columns. This array deletes the columns when destructed.
long m_lRowCount
Number of rows in the buffer.
float * m_aryTimeBuffer
Buffer for time data points.
int m_lCurrentRow
The currently selected row.
short m_iCollectInterval
Tells what the time slice step interval to use when collecting data. This is.