16 #include <qmetatype.h>
96 RenderPensUnscaled = 0x1
99 Q_DECLARE_FLAGS( RenderHints, RenderHint )
114 Transformation = 1 << 2
117 Q_DECLARE_FLAGS( CommandTypes, CommandType )
129 bool isEmpty()
const;
131 CommandTypes commandTypes()
const;
133 void render( QPainter* )
const;
135 void render( QPainter*,
const QSizeF&,
136 Qt::AspectRatioMode = Qt::IgnoreAspectRatio )
const;
138 void render( QPainter*,
const QPointF&,
139 Qt::Alignment = Qt::AlignTop | Qt::AlignLeft )
const;
141 void render( QPainter*,
const QRectF&,
142 Qt::AspectRatioMode = Qt::IgnoreAspectRatio )
const;
144 QPixmap toPixmap( qreal devicePixelRatio = 0.0 )
const;
146 QPixmap toPixmap(
const QSize&,
147 Qt::AspectRatioMode = Qt::IgnoreAspectRatio,
148 qreal devicePixelRatio = 0.0 )
const;
150 QImage toImage( qreal devicePixelRatio = 0.0 )
const;
152 QImage toImage(
const QSize&,
153 Qt::AspectRatioMode = Qt::IgnoreAspectRatio,
154 qreal devicePixelRatio = 0.0 )
const;
156 QRectF scaledBoundingRect( qreal sx, qreal sy )
const;
158 QRectF boundingRect()
const;
159 QRectF controlPointRect()
const;
164 void setDefaultSize(
const QSizeF& );
165 QSizeF defaultSize()
const;
167 qreal heightForWidth( qreal width )
const;
168 qreal widthForHeight( qreal height )
const;
170 void setRenderHint( RenderHint,
bool on =
true );
171 bool testRenderHint( RenderHint )
const;
173 RenderHints renderHints()
const;
178 virtual
void drawPath( const QPainterPath& )
QWT_OVERRIDE;
180 virtual
void drawPixmap( const QRectF&,
183 virtual
void drawImage( const QRectF&, const QImage&,
186 virtual
void updateState( const QPaintEngineState& )
QWT_OVERRIDE;
189 void renderGraphic( QPainter*, QTransform* ) const;
191 void updateBoundingRect( const QRectF& );
192 void updateControlPointRect( const QRectF& );
200 Q_DECLARE_OPERATORS_FOR_FLAGS(
QwtGraphic::RenderHints )
201 Q_DECLARE_OPERATORS_FOR_FLAGS(
QwtGraphic::CommandTypes )