Thank Uwe,
this is finally what I have done. I removed the QwtMatrixRasterData object from my IO class. I still have the QVector handled by this class.
Since the QVector content can change (user move somewhere else to see another slice, for instance in depth) do I have to call following code each time QVector is updated?
QwtMatrixRasterData* raster=dynamic_cast<QwtMatrixRasterData*>(spectro_seismic->data());
raster->setValueMatrix(seismic->data(),seismic->nx());
QwtMatrixRasterData* raster=dynamic_cast<QwtMatrixRasterData*>(spectro_seismic->data());
raster->setValueMatrix(seismic->data(),seismic->nx());
To copy to clipboard, switch view to plain text mode
I tried without but the updated content was not ploted.
Thank again.
Bookmarks