How to display large C++ arrays with TeeChart?
Posted: Fri Sep 26, 2014 11:11 am
Hello,
We are currently in the process of moving our legacy application from C++ Builder 5 to C++ Builder XE2.
The program internally stores a lot of data in simple C++ arrays. These arrays need to be visualized by TeeChart.
Since the arrays are rather big (>60.000 values per array) we don't want to make duplicates for performance reasons.
In the version of TeeChart distributed with C++ Builder 5 we solved the issue by subclassing the TChartValueList (making it work on our internal array) and replacing the one that was present in the Series like so:
This 'trick' doesn't seem to work anymore with the TeeChart version in C++ Builder XE2. Altough the code compiles and gives no errors, not all our subclassed functions get called anymore. Especially the function TChartValueList::GetValue(int ValueIndex). Probably because the function isn't virtual anymore.
So my next question is rather obvious: what can I do to solve this problem? I'd rather not change the internal representation of the data as this would cause a lot of code rewriting.
TIA
We are currently in the process of moving our legacy application from C++ Builder 5 to C++ Builder XE2.
The program internally stores a lot of data in simple C++ arrays. These arrays need to be visualized by TeeChart.
Since the arrays are rather big (>60.000 values per array) we don't want to make duplicates for performance reasons.
In the version of TeeChart distributed with C++ Builder 5 we solved the issue by subclassing the TChartValueList (making it work on our internal array) and replacing the one that was present in the Series like so:
Code: Select all
TMyList* newlist = new TMyList(Aseries,"X");
Aseries->ReplaceList(Aseries->XValues,newlist);
So my next question is rather obvious: what can I do to solve this problem? I'd rather not change the internal representation of the data as this would cause a lot of code rewriting.
TIA