Classes | Public Types | Public Member Functions | Protected Member Functions | Private Attributes | List of all members
QwtNullPaintDevice Class Referenceabstract

A null paint device doing nothing. More...

#include <qwt_null_paintdevice.h>

Inheritance diagram for QwtNullPaintDevice:
Inheritance graph
[legend]

Classes

class  PrivateData
 

Public Types

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

Public Member Functions

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

Protected Member Functions

virtual QSize sizeMetrics () const =0
 

Private Attributes

PrivateDatam_data
 
PaintEngine * m_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 32 of file qwt_null_paintdevice.h.

Member Enumeration Documentation

◆ Mode

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 47 of file qwt_null_paintdevice.h.

Constructor & Destructor Documentation

◆ QwtNullPaintDevice()

QwtNullPaintDevice::QwtNullPaintDevice ( )

Constructor.

Definition at line 367 of file qwt_null_paintdevice.cpp.

◆ ~QwtNullPaintDevice()

QwtNullPaintDevice::~QwtNullPaintDevice ( )
virtual

Destructor.

Definition at line 374 of file qwt_null_paintdevice.cpp.

Member Function Documentation

◆ drawEllipse() [1/2]

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

See QPaintEngine::drawEllipse()

Reimplemented in QWT_FINAL.

Definition at line 512 of file qwt_null_paintdevice.cpp.

◆ drawEllipse() [2/2]

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

See QPaintEngine::drawEllipse()

Reimplemented in QWT_FINAL.

Definition at line 506 of file qwt_null_paintdevice.cpp.

◆ drawImage()

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

See QPaintEngine::drawImage()

Reimplemented in QwtGraphic, and QWT_FINAL.

Definition at line 587 of file qwt_null_paintdevice.cpp.

◆ drawLines() [1/2]

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

See QPaintEngine::drawLines()

Reimplemented in QWT_FINAL.

Definition at line 490 of file qwt_null_paintdevice.cpp.

◆ drawLines() [2/2]

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

See QPaintEngine::drawLines()

Reimplemented in QWT_FINAL.

Definition at line 498 of file qwt_null_paintdevice.cpp.

◆ drawPath()

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

See QPaintEngine::drawPath()

Reimplemented in QwtGraphic, and QWT_FINAL.

Definition at line 518 of file qwt_null_paintdevice.cpp.

◆ drawPixmap()

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

See QPaintEngine::drawPixmap()

Reimplemented in QwtGraphic, and QWT_FINAL.

Definition at line 560 of file qwt_null_paintdevice.cpp.

◆ drawPoints() [1/2]

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

See QPaintEngine::drawPoints()

Reimplemented in QWT_FINAL.

Definition at line 532 of file qwt_null_paintdevice.cpp.

◆ drawPoints() [2/2]

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

See QPaintEngine::drawPoints()

Reimplemented in QWT_FINAL.

Definition at line 524 of file qwt_null_paintdevice.cpp.

◆ drawPolygon() [1/2]

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

See QPaintEngine::drawPolygon()

Definition at line 550 of file qwt_null_paintdevice.cpp.

◆ drawPolygon() [2/2]

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

See QPaintEngine::drawPolygon()

Definition at line 540 of file qwt_null_paintdevice.cpp.

◆ drawRects() [1/2]

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

See QPaintEngine::drawRects()

Reimplemented in QWT_FINAL.

Definition at line 474 of file qwt_null_paintdevice.cpp.

◆ drawRects() [2/2]

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

See QPaintEngine::drawRects()

Reimplemented in QWT_FINAL.

Definition at line 482 of file qwt_null_paintdevice.cpp.

◆ drawTextItem()

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

See QPaintEngine::drawTextItem()

Reimplemented in QWT_FINAL.

Definition at line 569 of file qwt_null_paintdevice.cpp.

◆ drawTiledPixmap()

void QwtNullPaintDevice::drawTiledPixmap ( const QRectF &  rect,
const QPixmap &  pixmap,
const QPointF &  subRect 
)
virtual

See QPaintEngine::drawTiledPixmap()

Reimplemented in QWT_FINAL.

Definition at line 577 of file qwt_null_paintdevice.cpp.

◆ metric()

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 422 of file qwt_null_paintdevice.cpp.

◆ mode()

QwtNullPaintDevice::Mode QwtNullPaintDevice::mode ( ) const
Returns
Render mode
See also
setMode()

Definition at line 395 of file qwt_null_paintdevice.cpp.

◆ paintEngine()

QPaintEngine * QwtNullPaintDevice::paintEngine ( ) const
virtual

See QPaintDevice::paintEngine()

Definition at line 401 of file qwt_null_paintdevice.cpp.

◆ setMode()

void QwtNullPaintDevice::setMode ( Mode  mode)

Set the render mode

Parameters
modeNew mode
See also
mode()

Definition at line 386 of file qwt_null_paintdevice.cpp.

◆ sizeMetrics()

virtual QSize QwtNullPaintDevice::sizeMetrics ( ) const
protectedpure virtual
Returns
Size needed to implement metric()

Implemented in QwtGraphic.

◆ updateState()

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

See QPaintEngine::updateState()

Reimplemented in QwtGraphic, and QWT_FINAL.

Definition at line 598 of file qwt_null_paintdevice.cpp.

Member Data Documentation

◆ m_data

PrivateData* QwtNullPaintDevice::m_data
private

Definition at line 130 of file qwt_null_paintdevice.h.

◆ m_engine

PaintEngine* QwtNullPaintDevice::m_engine
private

Definition at line 127 of file qwt_null_paintdevice.h.


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


plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:50