QwtPlotCurve::PaintAttribute解析

2014年4月21日 由 Creater 留言 »

这个属性是为了修正画图算法用,默认的是使用了ClipPolygons和FilterPoints

ClipPolygons
Clip polygons before painting them. In situations, where points are far outside the visible area (f.e when zooming deep) this might be a substantial improvement for the painting performance
//在画图之前对不在可视区的点进行裁剪

FilterPoints
Tries to reduce the data that has to be painted, by sorting out duplicates, or paintings outside the visible area. Might have a notable impact on curves with many close points. Only a couple of very basic filtering algorithms are implemented.
//进行点滤波,减少点的数目

MinimizeMemory
Minimize memory usage that is temporarily needed for the translated points, before they get painted. This might slow down the performance of painting
//最小化内存消耗,意味着一些临时在内存中的数据将被清除,将会影响性能

ImageBuffer
Render the points to a temporary image and paint the image. This is a very special optimization for Dots style, when having a huge amount of points. With a reasonable number of points QPainter::drawPoints() will be faster.
//渲染一些点到临时图片中,提高性能

广告位

评论已关闭.