QWT API (English) 7.0.1
Qt Widget Library for Technical Applications - English API Documentation
Loading...
Searching...
No Matches
Classes | Public Types | Public Member Functions | Protected Member Functions | List of all members
QwtNullPaintDevice Class Referenceabstract

A null paint device that does nothing. More...

#include <qwt_null_paintdevice.h>

Inheritance diagram for QwtNullPaintDevice:
QwtGraphic QwtStyleSheetRecorder

Classes

class  PaintEngine
 
class  PrivateData
 

Public Types

enum  Mode { NormalMode , PolygonPathMode , PathMode }
 Render mode for the paint device. More...
 

Public Member Functions

 QwtNullPaintDevice ()
 Constructor.
 
virtual ~QwtNullPaintDevice ()
 Destructor.
 
void setMode (Mode)
 Set the render mode.
 
Mode mode () const
 Get the render mode.
 
virtual QPaintEngine * paintEngine () const override
 Return the paint engine.
 
virtual int metric (PaintDeviceMetric) const override
 Return metric information for the paint device.
 
virtual void drawRects (const QRect *, int)
 Draw rectangles (integer version)
 
virtual void drawRects (const QRectF *, int)
 Draw rectangles (floating point version)
 
virtual void drawLines (const QLine *, int)
 Draw lines (integer version)
 
virtual void drawLines (const QLineF *, int)
 Draw lines (floating point version)
 
virtual void drawEllipse (const QRectF &)
 Draw ellipse (floating point version)
 
virtual void drawEllipse (const QRect &)
 Draw ellipse (integer version)
 
virtual void drawPath (const QPainterPath &)
 Draw a painter path.
 
virtual void drawPoints (const QPointF *, int)
 Draw points (floating point version)
 
virtual void drawPoints (const QPoint *, int)
 Draw points (integer version)
 
virtual void drawPolygon (const QPointF *, int, QPaintEngine::PolygonDrawMode)
 Draw polygon (floating point version)
 
virtual void drawPolygon (const QPoint *, int, QPaintEngine::PolygonDrawMode)
 Draw polygon (integer version)
 
virtual void drawPixmap (const QRectF &, const QPixmap &, const QRectF &)
 Draw a pixmap.
 
virtual void drawTextItem (const QPointF &, const QTextItem &)
 Draw a text item.
 
virtual void drawTiledPixmap (const QRectF &, const QPixmap &, const QPointF &)
 Draw a tiled pixmap.
 
virtual void drawImage (const QRectF &, const QImage &, const QRectF &, Qt::ImageConversionFlags)
 Draw an image.
 
virtual void updateState (const QPaintEngineState &)
 Update the paint engine state.
 

Protected Member Functions

virtual QSize sizeMetrics () const =0
 

Detailed Description

A null paint device that does nothing.

Member Enumeration Documentation

◆ Mode

Render mode for the paint device.

Enumerator
NormalMode 

All vector graphic primitives are painted by corresponding draw methods.

PolygonPathMode 

Vector graphic primitives (beside polygons) are mapped to QPainterPath.

PathMode 

All vector graphic primitives are mapped to QPainterPath.

Constructor & Destructor Documentation

◆ QwtNullPaintDevice()

QwtNullPaintDevice::QwtNullPaintDevice ( )

Constructor.

Constructor .

◆ ~QwtNullPaintDevice()

QwtNullPaintDevice::~QwtNullPaintDevice ( )
virtual

Destructor.

Destructor .

Member Function Documentation

◆ drawEllipse() [1/2]

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

Draw ellipse (integer version)

See QPaintEngine::drawEllipse()

◆ drawEllipse() [2/2]

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

Draw ellipse (floating point version)

See QPaintEngine::drawEllipse()

◆ drawImage()

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

Draw an image.

See QPaintEngine::drawImage()

Reimplemented in QwtGraphic.

◆ drawLines() [1/2]

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

Draw lines (integer version)

See QPaintEngine::drawLines()

◆ drawLines() [2/2]

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

Draw lines (floating point version)

See QPaintEngine::drawLines()

◆ drawPath()

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

Draw a painter path.

See QPaintEngine::drawPath()

Reimplemented in QwtGraphic, and QwtStyleSheetRecorder.

◆ drawPixmap()

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

Draw a pixmap.

See QPaintEngine::drawPixmap()

Reimplemented in QwtGraphic.

◆ drawPoints() [1/2]

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

Draw points (integer version)

See QPaintEngine::drawPoints()

◆ drawPoints() [2/2]

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

Draw points (floating point version)

See QPaintEngine::drawPoints()

◆ drawPolygon() [1/2]

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

Draw polygon (integer version)

See QPaintEngine::drawPolygon()

◆ drawPolygon() [2/2]

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

Draw polygon (floating point version)

See QPaintEngine::drawPolygon()

◆ drawRects() [1/2]

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

Draw rectangles (integer version)

See QPaintEngine::drawRects()

Reimplemented in QwtStyleSheetRecorder.

◆ drawRects() [2/2]

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

Draw rectangles (floating point version)

See QPaintEngine::drawRects()

Reimplemented in QwtStyleSheetRecorder.

◆ drawTextItem()

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

Draw a text item.

See QPaintEngine::drawTextItem()

◆ drawTiledPixmap()

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

Draw a tiled pixmap.

See QPaintEngine::drawTiledPixmap()

◆ metric()

int QwtNullPaintDevice::metric ( PaintDeviceMetric  deviceMetric) const
overridevirtual

Return metric information for the paint device.

◆ mode()

QwtNullPaintDevice::Mode QwtNullPaintDevice::mode ( ) const

Get the render mode.

◆ paintEngine()

QPaintEngine * QwtNullPaintDevice::paintEngine ( ) const
overridevirtual

Return the paint engine.

Return the paint engine for this device.

◆ setMode()

void QwtNullPaintDevice::setMode ( Mode  mode)

Set the render mode.

◆ sizeMetrics()

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

Implemented in QwtGraphic, and QwtStyleSheetRecorder.

◆ updateState()

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

Update the paint engine state.

See QPaintEngine::updateState()

Reimplemented in QwtGraphic, and QwtStyleSheetRecorder.


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