Qwt 5.2 offers curve items for displaying series of 2D points. Unfortunately you have to reimplement much of its code (or do a lot behind its back) if you want to display different types of samples. That's why I shifted the code that doesn't depend on the type of the samples into QwtSeriesData/QwtPlotSeriesItem.
What you need to do is:
a) Implement a class for a 3D point
b) Implement QwtSeriesData<Your3DPoint> on top of your array.
c) Implement QwtPlotSeriesItem<Your3DPoint>
In c) you need to introduce a setter/getter for a QwtColorMap. Then implement QwtPlotSeriesItem<Your3DPoint>::drawSeries(...) using the color map. ( Look at the implementation of QwtPlotCurve::drawSeries ).
Such an implementation is on my TODO list planned for 5.3 - but I'm not 100% sure if it will be 5.3 or a later release.
Uwe





Reply With Quote
Bookmarks