MCPcopy Create free account
hub / github.com/PlotJuggler/PlotJuggler / drawItems

Method drawItems

3rdparty/qwt/src/qwt_plot.cpp:764–792  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

762 */
763
764void QwtPlot::drawItems( QPainter* painter, const QRectF& canvasRect,
765 const QwtScaleMap maps[ QwtAxis::AxisPositions ] ) const
766{
767 const QwtPlotItemList& itmList = itemList();
768 for ( QwtPlotItemIterator it = itmList.begin();
769 it != itmList.end(); ++it )
770 {
771 QwtPlotItem* item = *it;
772 if ( item && item->isVisible() )
773 {
774 const QwtAxisId xAxis = item->xAxis();
775 const QwtAxisId yAxis = item->yAxis();
776
777 painter->save();
778
779 painter->setRenderHint( QPainter::Antialiasing,
780 item->testRenderHint( QwtPlotItem::RenderAntialiased ) );
781
782#if QT_VERSION < 0x050100
783 painter->setRenderHint( QPainter::HighQualityAntialiasing,
784 item->testRenderHint( QwtPlotItem::RenderAntialiased ) );
785#endif
786
787 item->draw( painter, maps[xAxis], maps[yAxis], canvasRect );
788
789 painter->restore();
790 }
791 }
792}
793
794/*!
795 \param axisId Axis

Callers 1

renderCanvasMethod · 0.45

Calls 8

beginMethod · 0.45
endMethod · 0.45
isVisibleMethod · 0.45
xAxisMethod · 0.45
yAxisMethod · 0.45
setRenderHintMethod · 0.45
testRenderHintMethod · 0.45
drawMethod · 0.45

Tested by

no test coverage detected