Yes, and that is actually what I am trying to do. Can someone explain me what this line of code does?:
Qt Code:
CircularBuffer *buffer = (CircularBuffer *)d_curve->data();To copy to clipboard, switch view to plain text mode
I know this is a casting, d_curve is a QwtPlotCurve pointer, and data() backs a QwtSeriesData< QPointF > pointer. On the other hand, CircularBuffer inherits from QwtSeriesData<QPointF>. It seems to me that, somehow, with this casting I can use the CircularBuffer methods with the data pointed by a QwtSeriesData<QPointF> pointer. Is that the main reason of this line of code, if not, which is?
Regards,
-E
Last edited by Ethan; 25th October 2011 at 17:43.
Bookmarks