ChartDirector 7.1 (C++ Edition)

DataAccelerator.DataAccelerator


Usage

DataAccelerator* DataAccelerator(const double* xData, int xDataLen);

Description

Creates a DataAccelerator object.

The xData is an array for storing the x data values, and xDataLen is number of valid values in the array.

To conserve memory, DataAccelerator will only keep a reference to the array and not copy it. The caller must ensure the array remains valid for as long as the DataAccelerator is in use.

For real time chart usage, the array acts as a buffer to store real time data. Initially the number of valid values can be 0. As new data come in, the values can be stored in the array and DataAccelerator.extendLength can be called to update the number of valid values.

Arguments

ArgumentDefaultDescription
xData(Mandatory)The array to store the x values.
xDataLen(Mandatory)The number of valid values.

Return Value

The DataAccelerator object created.