1 Jun 2007 21:12
How to decide the scale ratio when using rubberband?
wei wei <w_lufei2000 <at> yahoo.com.cn>
2007-06-01 19:12:14 GMT
2007-06-01 19:12:14 GMT
Hi my friends:
I am using Qwt5.0.1 and right now I have a problem.
In my application, I need the rubberband feature. I want to draw some circles on the canvas. I think I can use setSymbol(SymbolStyle::Ellipse) to draw this circles on the plot canvas.
But I also need these circles to be scaled simultaneously when I rubberband the QwtPlot. This is not supported in Qwt.
Of course, I can call the setSymbol() again after rubberband giving these circle symbols a bigger size.However I want to these circles not only to become bigger but also have a rational bigger size. In another words, these circles' rational size are decided by the ratio of rubberband's size to the canvas's size.
And also I noticed that, when I rubberband, in the QwtPlotZoomer::end(), the X scale and Y scale are changed by their own ratio respectively. Thus I couldn't decide which ratio should be used in
recalling the setSymbol() in order to give these circles a new bigger size.
So can I make the X scale and Y scale be changed using an identical ratio,?(no matter how I rubberband)
I really need you help. Any suggestion is welcome.
Thanks a lot.
雅虎免费邮箱3.5G容量,20M附件!
------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/
_______________________________________________ qwt-interest mailing list qwt-interest <at> lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qwt-interest
RSS Feed