Hi,
My application is having a requirement of receiving (on TCP socket) and plotting upto 1000 custom shape items (mostly rectangular/ circular shapes) on qwt ploar as well as qwt plot. The position (keeps changing every time) of these items has to be updated on the plot every 1 second. What is the best strategy to update, by position, the shape items on the plots?:
1. Draw an item, delete it and redraw it at new position ( attach/ detach calls) or
2. Use transformation to translate the painter path of the item to new position?
It is not only required to draw the items on polar plot but also to display them in a table view/ widget as text. So keeping the performance in mind, I request you to suggest what is the best way of achieving this on a qwt ploar & qwt plot?
Also; as the same data is being displayed in qwt polar plot, qwt plot and table widget; I am planning to implement Qt's model/ view concept classes. Is it feasible to derive view classes for qwt polar/qwt plot with QStandardItemView and QwtPolarPlot/ QwtPlot as base classes. Any ideas on this are most welcome. Thanks in advance.
Bookmarks