Classes | Public Types | Public Member Functions | Protected Member Functions | Private Attributes
QwtNullPaintDevice Class Reference

A null paint device doing nothing. More...

#include <qwt_null_paintdevice.h>

Inheritance diagram for QwtNullPaintDevice:
Inheritance graph
[legend]

List of all members.

Classes

class  PaintEngine
class  PrivateData

Public Types

enum  Mode { NormalMode, PolygonPathMode, PathMode }
 Render mode. More...

Public Member Functions

virtual void drawEllipse (const QRectF &)
 See QPaintEngine::drawEllipse()
virtual void drawEllipse (const QRect &)
 See QPaintEngine::drawEllipse()
virtual void drawImage (const QRectF &, const QImage &, const QRectF &, Qt::ImageConversionFlags)
 See QPaintEngine::drawImage()
virtual void drawLines (const QLine *, int)
 See QPaintEngine::drawLines()
virtual void drawLines (const QLineF *, int)
 See QPaintEngine::drawLines()
virtual void drawPath (const QPainterPath &)
 See QPaintEngine::drawPath()
virtual void drawPixmap (const QRectF &, const QPixmap &, const QRectF &)
 See QPaintEngine::drawPixmap()
virtual void drawPoints (const QPointF *, int)
 See QPaintEngine::drawPoints()
virtual void drawPoints (const QPoint *, int)
 See QPaintEngine::drawPoints()
virtual void drawPolygon (const QPointF *, int, QPaintEngine::PolygonDrawMode)
 See QPaintEngine::drawPolygon()
virtual void drawPolygon (const QPoint *, int, QPaintEngine::PolygonDrawMode)
 See QPaintEngine::drawPolygon()
virtual void drawRects (const QRect *, int)
 See QPaintEngine::drawRects()
virtual void drawRects (const QRectF *, int)
 See QPaintEngine::drawRects()
virtual void drawTextItem (const QPointF &, const QTextItem &)
 See QPaintEngine::drawTextItem()
virtual void drawTiledPixmap (const QRectF &, const QPixmap &, const QPointF &s)
 See QPaintEngine::drawTiledPixmap()
virtual int metric (PaintDeviceMetric metric) const
Mode mode () const
virtual QPaintEngine * paintEngine () const
 See QPaintDevice::paintEngine()
 QwtNullPaintDevice ()
 Constructor.
void setMode (Mode)
virtual void updateState (const QPaintEngineState &state)
 See QPaintEngine::updateState()
virtual ~QwtNullPaintDevice ()
 Destructor.

Protected Member Functions

virtual QSize sizeMetrics () const =0

Private Attributes

PrivateDatad_data
PaintEngined_engine

Detailed Description

A null paint device doing nothing.

Sometimes important layout/rendering geometries are not available or changeable from the public Qt class interface. ( f.e hidden in the style implementation ).

QwtNullPaintDevice can be used to manipulate or filter out this information by analyzing the stream of paint primitives.

F.e. QwtNullPaintDevice is used by QwtPlotCanvas to identify styled backgrounds with rounded corners.

Definition at line 31 of file qwt_null_paintdevice.h.


Member Enumeration Documentation

Render mode.

See also:
setMode(), mode()
Enumerator:
NormalMode 

All vector graphic primitives are painted by the corresponding draw methods

PolygonPathMode 

Vector graphic primitives ( beside polygons ) are mapped to a QPainterPath and are painted by drawPath. In PathMode mode only a few draw methods are called:

PathMode 

Vector graphic primitives are mapped to a QPainterPath and are painted by drawPath. In PathMode mode only a few draw methods are called:

Definition at line 39 of file qwt_null_paintdevice.h.


Constructor & Destructor Documentation

Constructor.

Definition at line 358 of file qwt_null_paintdevice.cpp.

Destructor.

Definition at line 365 of file qwt_null_paintdevice.cpp.


Member Function Documentation

void QwtNullPaintDevice::drawEllipse ( const QRectF &  rect) [virtual]

See QPaintEngine::drawEllipse()

Definition at line 497 of file qwt_null_paintdevice.cpp.

void QwtNullPaintDevice::drawEllipse ( const QRect &  rect) [virtual]

See QPaintEngine::drawEllipse()

Definition at line 503 of file qwt_null_paintdevice.cpp.

void QwtNullPaintDevice::drawImage ( const QRectF &  rect,
const QImage &  image,
const QRectF &  subRect,
Qt::ImageConversionFlags  flags 
) [virtual]

See QPaintEngine::drawImage()

Reimplemented in QwtGraphic.

Definition at line 578 of file qwt_null_paintdevice.cpp.

void QwtNullPaintDevice::drawLines ( const QLine *  lines,
int  lineCount 
) [virtual]

See QPaintEngine::drawLines()

Definition at line 481 of file qwt_null_paintdevice.cpp.

void QwtNullPaintDevice::drawLines ( const QLineF *  lines,
int  lineCount 
) [virtual]

See QPaintEngine::drawLines()

Definition at line 489 of file qwt_null_paintdevice.cpp.

void QwtNullPaintDevice::drawPath ( const QPainterPath &  path) [virtual]

See QPaintEngine::drawPath()

Reimplemented in QwtGraphic, and QwtStyleSheetRecorder.

Definition at line 509 of file qwt_null_paintdevice.cpp.

void QwtNullPaintDevice::drawPixmap ( const QRectF &  rect,
const QPixmap &  pm,
const QRectF &  subRect 
) [virtual]

See QPaintEngine::drawPixmap()

Reimplemented in QwtGraphic.

Definition at line 551 of file qwt_null_paintdevice.cpp.

void QwtNullPaintDevice::drawPoints ( const QPointF *  points,
int  pointCount 
) [virtual]

See QPaintEngine::drawPoints()

Definition at line 515 of file qwt_null_paintdevice.cpp.

void QwtNullPaintDevice::drawPoints ( const QPoint *  points,
int  pointCount 
) [virtual]

See QPaintEngine::drawPoints()

Definition at line 523 of file qwt_null_paintdevice.cpp.

void QwtNullPaintDevice::drawPolygon ( const QPointF *  points,
int  pointCount,
QPaintEngine::PolygonDrawMode  mode 
) [virtual]

See QPaintEngine::drawPolygon()

Definition at line 531 of file qwt_null_paintdevice.cpp.

void QwtNullPaintDevice::drawPolygon ( const QPoint *  points,
int  pointCount,
QPaintEngine::PolygonDrawMode  mode 
) [virtual]

See QPaintEngine::drawPolygon()

Definition at line 541 of file qwt_null_paintdevice.cpp.

void QwtNullPaintDevice::drawRects ( const QRect *  rects,
int  rectCount 
) [virtual]

See QPaintEngine::drawRects()

Reimplemented in QwtStyleSheetRecorder.

Definition at line 465 of file qwt_null_paintdevice.cpp.

void QwtNullPaintDevice::drawRects ( const QRectF *  rects,
int  rectCount 
) [virtual]

See QPaintEngine::drawRects()

Reimplemented in QwtStyleSheetRecorder.

Definition at line 473 of file qwt_null_paintdevice.cpp.

void QwtNullPaintDevice::drawTextItem ( const QPointF &  pos,
const QTextItem &  textItem 
) [virtual]

See QPaintEngine::drawTextItem()

Definition at line 560 of file qwt_null_paintdevice.cpp.

void QwtNullPaintDevice::drawTiledPixmap ( const QRectF &  rect,
const QPixmap &  pixmap,
const QPointF &  s 
) [virtual]

See QPaintEngine::drawTiledPixmap()

Definition at line 568 of file qwt_null_paintdevice.cpp.

int QwtNullPaintDevice::metric ( PaintDeviceMetric  deviceMetric) const [virtual]

See QPaintDevice::metric()

Parameters:
deviceMetricType of metric
Returns:
Metric information for the given paint device metric.
See also:
sizeMetrics()

Definition at line 413 of file qwt_null_paintdevice.cpp.

Returns:
Render mode
See also:
setMode()

Definition at line 386 of file qwt_null_paintdevice.cpp.

QPaintEngine * QwtNullPaintDevice::paintEngine ( ) const [virtual]

See QPaintDevice::paintEngine()

Definition at line 392 of file qwt_null_paintdevice.cpp.

Set the render mode

Parameters:
modeNew mode
See also:
mode()

Definition at line 377 of file qwt_null_paintdevice.cpp.

virtual QSize QwtNullPaintDevice::sizeMetrics ( ) const [protected, pure virtual]
Returns:
Size needed to implement metric()

Implemented in QwtGraphic, and QwtStyleSheetRecorder.

void QwtNullPaintDevice::updateState ( const QPaintEngineState &  state) [virtual]

See QPaintEngine::updateState()

Reimplemented in QwtGraphic, and QwtStyleSheetRecorder.

Definition at line 589 of file qwt_null_paintdevice.cpp.


Member Data Documentation

Reimplemented in QwtGraphic.

Definition at line 122 of file qwt_null_paintdevice.h.

Definition at line 119 of file qwt_null_paintdevice.h.


The documentation for this class was generated from the following files:


plotjuggler
Author(s): Davide Faconti
autogenerated on Wed Jul 3 2019 19:28:06