slsDetectorPackage/libs/qwt-6.1.5/doc/man/man3/QwtNullPaintDevice.3
Dhanya Thattil 38cd10d4e6
Qt5 built in qwt (#570)
- qt4->qt5
- in built qt5 6.1.5 because rhel7 is not upto date with qt5, removed findqwt.cmake
- made a fix in qwt lib (qwt_plot_layout.h) to work with 5.15 and lower versions for qrect constr.
- qt5 forms fixed, qt4 many hard coding forms switched to forms including qtabwidget, scrolls etc, fonts moved to forms
 - docking option enabled by default, removed option to disable docking feature from "Mode"
- added qVersionResolve utility functions to handle compatibility before and after qt5.12
- qtplots (ian's code) takes in gain mode enable to set some settings within the class, with proper gain plot ticks
- ensure gain plots have no zooming of z axis in 2d and y axis in 1d
- removed placeholder text in qpalette in main window form as its not supportd until 5.12 (so using qt5.9 designer insted of qt5.15 to cope)
- tab order
Servers:
- fixed some error messages that were empty for fail in funcs (mostly minor as if this error, major issues)
2022-11-11 15:15:10 +01:00

238 lines
5.3 KiB
Groff

.TH "QwtNullPaintDevice" 3 "Mon Jun 1 2020" "Version 6.1.5" "Qwt User's Guide" \" -*- nroff -*-
.ad l
.nh
.SH NAME
QwtNullPaintDevice \- A null paint device doing nothing\&.
.SH SYNOPSIS
.br
.PP
.PP
\fC#include <qwt_null_paintdevice\&.h>\fP
.PP
Inherits QPaintDevice\&.
.PP
Inherited by \fBQwtGraphic\fP, and QwtStyleSheetRecorder\&.
.SS "Public Types"
.in +1c
.ti -1c
.RI "enum \fBMode\fP { \fBNormalMode\fP, \fBPolygonPathMode\fP, \fBPathMode\fP }"
.br
.RI "Render mode\&. "
.in -1c
.SS "Public Member Functions"
.in +1c
.ti -1c
.RI "\fBQwtNullPaintDevice\fP ()"
.br
.RI "Constructor\&. "
.ti -1c
.RI "virtual \fB~QwtNullPaintDevice\fP ()"
.br
.RI "Destructor\&. "
.ti -1c
.RI "void \fBsetMode\fP (\fBMode\fP)"
.br
.ti -1c
.RI "\fBMode\fP \fBmode\fP () const"
.br
.ti -1c
.RI "virtual QPaintEngine * \fBpaintEngine\fP () const"
.br
.RI "See QPaintDevice::paintEngine() "
.ti -1c
.RI "virtual int \fBmetric\fP (PaintDeviceMetric) const"
.br
.ti -1c
.RI "virtual void \fBdrawRects\fP (const QRect *, int)"
.br
.RI "See QPaintEngine::drawRects() "
.ti -1c
.RI "virtual void \fBdrawRects\fP (const QRectF *, int)"
.br
.RI "See QPaintEngine::drawRects() "
.ti -1c
.RI "virtual void \fBdrawLines\fP (const QLine *, int)"
.br
.RI "See QPaintEngine::drawLines() "
.ti -1c
.RI "virtual void \fBdrawLines\fP (const QLineF *, int)"
.br
.RI "See QPaintEngine::drawLines() "
.ti -1c
.RI "virtual void \fBdrawEllipse\fP (const QRectF &)"
.br
.RI "See QPaintEngine::drawEllipse() "
.ti -1c
.RI "virtual void \fBdrawEllipse\fP (const QRect &)"
.br
.RI "See QPaintEngine::drawEllipse() "
.ti -1c
.RI "virtual void \fBdrawPath\fP (const QPainterPath &)"
.br
.RI "See QPaintEngine::drawPath() "
.ti -1c
.RI "virtual void \fBdrawPoints\fP (const QPointF *, int)"
.br
.RI "See QPaintEngine::drawPoints() "
.ti -1c
.RI "virtual void \fBdrawPoints\fP (const QPoint *, int)"
.br
.RI "See QPaintEngine::drawPoints() "
.ti -1c
.RI "virtual void \fBdrawPolygon\fP (const QPointF *, int, QPaintEngine::PolygonDrawMode)"
.br
.RI "See QPaintEngine::drawPolygon() "
.ti -1c
.RI "virtual void \fBdrawPolygon\fP (const QPoint *, int, QPaintEngine::PolygonDrawMode)"
.br
.RI "See QPaintEngine::drawPolygon() "
.ti -1c
.RI "virtual void \fBdrawPixmap\fP (const QRectF &, const QPixmap &, const QRectF &)"
.br
.RI "See QPaintEngine::drawPixmap() "
.ti -1c
.RI "virtual void \fBdrawTextItem\fP (const QPointF &, const QTextItem &)"
.br
.RI "See QPaintEngine::drawTextItem() "
.ti -1c
.RI "virtual void \fBdrawTiledPixmap\fP (const QRectF &, const QPixmap &, const QPointF &)"
.br
.RI "See QPaintEngine::drawTiledPixmap() "
.ti -1c
.RI "virtual void \fBdrawImage\fP (const QRectF &, const QImage &, const QRectF &, Qt::ImageConversionFlags)"
.br
.RI "See QPaintEngine::drawImage() "
.ti -1c
.RI "virtual void \fBupdateState\fP (const QPaintEngineState &)"
.br
.RI "See QPaintEngine::updateState() "
.in -1c
.SS "Protected Member Functions"
.in +1c
.ti -1c
.RI "virtual QSize \fBsizeMetrics\fP () const =0"
.br
.in -1c
.SH "Detailed Description"
.PP
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 )\&.
.PP
\fBQwtNullPaintDevice\fP can be used to manipulate or filter out this information by analyzing the stream of paint primitives\&.
.PP
F\&.e\&. \fBQwtNullPaintDevice\fP is used by \fBQwtPlotCanvas\fP to identify styled backgrounds with rounded corners\&.
.SH "Member Enumeration Documentation"
.PP
.SS "enum \fBQwtNullPaintDevice::Mode\fP"
.PP
Render mode\&.
.PP
\fBSee also\fP
.RS 4
\fBsetMode()\fP, \fBmode()\fP
.RE
.PP
.PP
\fBEnumerator\fP
.in +1c
.TP
\fB\fINormalMode \fP\fP
All vector graphic primitives are painted by the corresponding draw methods
.TP
\fB\fIPolygonPathMode \fP\fP
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:
.PP
.IP "\(bu" 2
\fBdrawPath()\fP
.IP "\(bu" 2
\fBdrawPixmap()\fP
.IP "\(bu" 2
\fBdrawImage()\fP
.IP "\(bu" 2
\fBdrawPolygon()\fP
.PP
.TP
\fB\fIPathMode \fP\fP
Vector graphic primitives are mapped to a QPainterPath and are painted by drawPath\&. In PathMode mode only a few draw methods are called:
.PP
.IP "\(bu" 2
\fBdrawPath()\fP
.IP "\(bu" 2
\fBdrawPixmap()\fP
.IP "\(bu" 2
\fBdrawImage()\fP
.PP
.SH "Member Function Documentation"
.PP
.SS "int QwtNullPaintDevice::metric (PaintDeviceMetric deviceMetric) const\fC [virtual]\fP"
See QPaintDevice::metric()
.PP
\fBParameters\fP
.RS 4
\fIdeviceMetric\fP Type of metric
.RE
.PP
\fBReturns\fP
.RS 4
Metric information for the given paint device metric\&.
.RE
.PP
\fBSee also\fP
.RS 4
\fBsizeMetrics()\fP
.RE
.PP
.SS "\fBQwtNullPaintDevice::Mode\fP QwtNullPaintDevice::mode () const"
.PP
\fBReturns\fP
.RS 4
Render mode
.RE
.PP
\fBSee also\fP
.RS 4
\fBsetMode()\fP
.RE
.PP
.SS "void QwtNullPaintDevice::setMode (\fBMode\fP mode)"
Set the render mode
.PP
\fBParameters\fP
.RS 4
\fImode\fP New mode
.RE
.PP
\fBSee also\fP
.RS 4
\fBmode()\fP
.RE
.PP
.SS "virtual QSize QwtNullPaintDevice::sizeMetrics () const\fC [protected]\fP, \fC [pure virtual]\fP"
.PP
\fBReturns\fP
.RS 4
Size needed to implement \fBmetric()\fP
.RE
.PP
.PP
Implemented in \fBQwtGraphic\fP\&.
.SH "Author"
.PP
Generated automatically by Doxygen for Qwt User's Guide from the source code\&.