16 #include <qmetatype.h> 96 RenderPensUnscaled = 0x1
119 Transformation = 1 << 2
138 bool isEmpty()
const;
140 CommandTypes commandTypes()
const;
142 void render( QPainter * )
const;
144 void render( QPainter *,
const QSizeF &,
145 Qt::AspectRatioMode = Qt::IgnoreAspectRatio )
const;
147 void render( QPainter *,
const QPointF &,
148 Qt::Alignment = Qt::AlignTop | Qt::AlignLeft )
const;
150 void render( QPainter *,
const QRectF &,
151 Qt::AspectRatioMode = Qt::IgnoreAspectRatio )
const;
153 QPixmap toPixmap( qreal devicePixelRatio = 0.0 )
const;
155 QPixmap toPixmap(
const QSize &,
156 Qt::AspectRatioMode = Qt::IgnoreAspectRatio,
157 qreal devicePixelRatio = 0.0 )
const;
159 QImage toImage( qreal devicePixelRatio = 0.0 )
const;
161 QImage toImage(
const QSize &,
162 Qt::AspectRatioMode = Qt::IgnoreAspectRatio,
163 qreal devicePixelRatio = 0.0 )
const;
165 QRectF scaledBoundingRect( qreal sx, qreal sy )
const;
167 QRectF boundingRect()
const;
168 QRectF controlPointRect()
const;
173 void setDefaultSize(
const QSizeF & );
174 QSizeF defaultSize()
const;
176 qreal heightForWidth( qreal width )
const;
177 qreal widthForHeight( qreal height )
const;
179 void setRenderHint(
RenderHint,
bool on =
true );
182 RenderHints renderHints()
const;
187 virtual
void drawPath( const QPainterPath & )
QWT_OVERRIDE;
189 virtual
void drawPixmap( const QRectF &,
190 const QPixmap &, const QRectF & ) QWT_OVERRIDE;
192 virtual
void drawImage( const QRectF &, const QImage &,
193 const QRectF &, Qt::ImageConversionFlags ) QWT_OVERRIDE;
195 virtual
void updateState( const QPaintEngineState & ) QWT_OVERRIDE;
198 void renderGraphic( QPainter *, QTransform * ) const;
200 void updateBoundingRect( const QRectF & );
201 void updateControlPointRect( const QRectF & );
209 Q_DECLARE_OPERATORS_FOR_FLAGS(
QwtGraphic::RenderHints )
210 Q_DECLARE_OPERATORS_FOR_FLAGS(
QwtGraphic::CommandTypes )
A null paint device doing nothing.
QFlags< CommandType > CommandTypes
A paint device for scalable graphics.
virtual QSize sizeMetrics() const =0
QFlags< RenderHint > RenderHints
Render hints.