QWT 7.0.1
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
QWT_FINAL Class Reference
Inheritance diagram for QWT_FINAL:
QwtWidgetOverlay QwtWidgetOverlay QwtRoundScaleDraw QwtNullPaintDevice QwtAbstractScaleDraw

Public Member Functions

 LegendView (QWidget *parent)
 
virtual bool event (QEvent *event) QWT_OVERRIDE
 
virtual bool viewportEvent (QEvent *event) QWT_OVERRIDE
 
QSize viewportSize (int w, int h) const
 
void layoutContents ()
 
 PaintEngine ()
 
virtual bool begin (QPaintDevice *) QWT_OVERRIDE
 
virtual bool end () QWT_OVERRIDE
 
virtual Type type () const QWT_OVERRIDE
 
virtual void updateState (const QPaintEngineState &) QWT_OVERRIDE
 See QPaintEngine::updateState()
 
virtual void drawRects (const QRect *, int) QWT_OVERRIDE
 See QPaintEngine::drawRects()
 
virtual void drawRects (const QRectF *, int) QWT_OVERRIDE
 See QPaintEngine::drawRects()
 
virtual void drawLines (const QLine *, int) QWT_OVERRIDE
 See QPaintEngine::drawLines()
 
virtual void drawLines (const QLineF *, int) QWT_OVERRIDE
 See QPaintEngine::drawLines()
 
virtual void drawEllipse (const QRectF &) QWT_OVERRIDE
 See QPaintEngine::drawEllipse()
 
virtual void drawEllipse (const QRect &) QWT_OVERRIDE
 See QPaintEngine::drawEllipse()
 
virtual void drawPath (const QPainterPath &) QWT_OVERRIDE
 See QPaintEngine::drawPath()
 
virtual void drawPoints (const QPointF *, int) QWT_OVERRIDE
 See QPaintEngine::drawPoints()
 
virtual void drawPoints (const QPoint *, int) QWT_OVERRIDE
 See QPaintEngine::drawPoints()
 
virtual void drawPolygon (const QPointF *, int, PolygonDrawMode) QWT_OVERRIDE
 
virtual void drawPolygon (const QPoint *, int, PolygonDrawMode) QWT_OVERRIDE
 
virtual void drawPixmap (const QRectF &, const QPixmap &, const QRectF &) QWT_OVERRIDE
 See QPaintEngine::drawPixmap()
 
virtual void drawTextItem (const QPointF &, const QTextItem &) QWT_OVERRIDE
 See QPaintEngine::drawTextItem()
 
virtual void drawTiledPixmap (const QRectF &, const QPixmap &, const QPointF &s) QWT_OVERRIDE
 See QPaintEngine::drawTiledPixmap()
 
virtual void drawImage (const QRectF &, const QImage &, const QRectF &, Qt::ImageConversionFlags) QWT_OVERRIDE
 See QPaintEngine::drawImage()
 
 QwtStyleSheetRecorder (const QSize &size)
 
virtual void updateState (const QPaintEngineState &state) QWT_OVERRIDE
 See QPaintEngine::updateState()
 
virtual void drawRects (const QRectF *rects, int count) QWT_OVERRIDE
 See QPaintEngine::drawRects()
 
virtual void drawRects (const QRect *rects, int count) QWT_OVERRIDE
 See QPaintEngine::drawRects()
 
virtual void drawPath (const QPainterPath &path) QWT_OVERRIDE
 See QPaintEngine::drawPath()
 
void setCornerRects (const QPainterPath &path)
 
- Public Member Functions inherited from QwtWidgetOverlay
 QwtWidgetOverlay (QWidget *)
 Constructor.
 
virtual ~QwtWidgetOverlay ()
 Destructor.
 
void setMaskMode (MaskMode)
 Specify how to find the mask for the overlay.
 
MaskMode maskMode () const
 
void setRenderMode (RenderMode)
 Set the render mode.
 
RenderMode renderMode () const
 
virtual bool eventFilter (QObject *, QEvent *) QWT_OVERRIDE
 Event filter.
 
- Public Member Functions inherited from QwtRoundScaleDraw
 QwtRoundScaleDraw ()
 Constructor.
 
virtual ~QwtRoundScaleDraw ()
 Destructor.
 
void setRadius (double radius)
 Change of radius the scale.
 
double radius () const
 Get the radius.
 
void moveCenter (double x, double y)
 Move the center of the scale draw, leaving the radius unchanged.
 
void moveCenter (const QPointF &)
 Move the center of the scale draw, leaving the radius unchanged.
 
QPointF center () const
 Get the center of the scale.
 
void setAngleRange (double angle1, double angle2)
 Adjust the baseline circle segment for round scales.
 
virtual double extent (const QFont &) const QWT_OVERRIDE
 Calculate the extent of the scale.
 
- Public Member Functions inherited from QwtAbstractScaleDraw
 QwtAbstractScaleDraw ()
 Constructor.
 
virtual ~QwtAbstractScaleDraw ()
 Destructor.
 
void setScaleDiv (const QwtScaleDiv &)
 Change the scale division.
 
const QwtScaleDivscaleDiv () const
 
void setTransformation (QwtTransform *)
 Change the transformation of the scale.
 
const QwtScaleMapscaleMap () const
 
QwtScaleMapscaleMap ()
 
void enableComponent (ScaleComponent, bool enable=true)
 En/Disable a component of the scale.
 
bool hasComponent (ScaleComponent) const
 Check if a component is enabled.
 
void setTickLength (QwtScaleDiv::TickType, double length)
 Set the length of the ticks.
 
double tickLength (QwtScaleDiv::TickType) const
 
double maxTickLength () const
 
void setSpacing (double)
 Set the spacing between tick and labels.
 
double spacing () const
 Get the spacing.
 
void setPenWidthF (qreal width)
 Specify the width of the scale pen.
 
qreal penWidthF () const
 
void setSelected (bool on)
 设置是否选中
 
bool isSelected () const
 是否选中
 
void setSelectedPenWidthOffset (qreal offset=1)
 设置坐标轴在选中状态下的画笔宽度附加值
 
qreal selectedPenWidthOffset () const
 获取当前坐标轴在选中状态下的画笔宽度附加值
 
virtual void draw (QPainter *, const QPalette &) const
 Draw the scale.
 
virtual QwtText label (double) const
 Convert a value into its representing label.
 
void setMinimumExtent (double)
 Set a minimum for the extent.
 
double minimumExtent () const
 Get the minimum extent.
 
void invalidateCache ()
 Invalidate the cache used by tickLabel()
 
- Public Member Functions inherited from QwtNullPaintDevice
 QwtNullPaintDevice ()
 Constructor.
 
virtual ~QwtNullPaintDevice ()
 Destructor.
 
void setMode (Mode)
 Set the render mode.
 
Mode mode () const
 
virtual QPaintEngine * paintEngine () const QWT_OVERRIDE
 See QPaintDevice::paintEngine()
 
virtual int metric (PaintDeviceMetric) const QWT_OVERRIDE
 See QPaintDevice::metric()
 
virtual void drawPolygon (const QPointF *, int, QPaintEngine::PolygonDrawMode)
 See QPaintEngine::drawPolygon()
 
virtual void drawPolygon (const QPoint *, int, QPaintEngine::PolygonDrawMode)
 See QPaintEngine::drawPolygon()
 

Public Attributes

QWidget * contentsWidget
 
QVector< QRectF > clipRects
 
struct QWT_FINAL::Border border
 
struct QWT_FINAL::Background background
 

Protected Member Functions

virtual QSize sizeMetrics () const QWT_OVERRIDE
 
- Protected Member Functions inherited from QwtWidgetOverlay
virtual void paintEvent (QPaintEvent *) QWT_OVERRIDE
 Paint event.
 
virtual void resizeEvent (QResizeEvent *) QWT_OVERRIDE
 Resize event.
 
virtual QRegion maskHint () const
 Calculate an approximation for the mask.
 
virtual void drawOverlay (QPainter *painter) const =0
 Draw the widget overlay.
 
- Protected Member Functions inherited from QwtRoundScaleDraw
virtual void drawTick (QPainter *, double value, double len) const QWT_OVERRIDE
 Draw a tick.
 
virtual void drawBackbone (QPainter *) const QWT_OVERRIDE
 Draws the baseline of the scale.
 
virtual void drawLabel (QPainter *, double value) const QWT_OVERRIDE
 Draws the label for a major scale tick.
 
- Protected Member Functions inherited from QwtAbstractScaleDraw
const QwtTexttickLabel (const QFont &, double value) const
 Convert a value into its representing label and cache it.
 

Additional Inherited Members

- Public Types inherited from QwtWidgetOverlay
enum  MaskMode { NoMask , MaskHint , AlphaMask }
 Mask mode. More...
 
enum  RenderMode { AutoRenderMode , CopyAlphaMask , DrawOverlay }
 Render mode. More...
 
- Public Types inherited from QwtAbstractScaleDraw
enum  ScaleComponent { Backbone = 0x01 , Ticks = 0x02 , Labels = 0x04 }
 Components of a scale. More...
 
- Public Types inherited from QwtNullPaintDevice
enum  Mode { NormalMode , PolygonPathMode , PathMode }
 Render mode. More...
 
- Public Slots inherited from QwtWidgetOverlay
void updateOverlay ()
 Recalculate the mask and repaint the overlay.
 

Member Function Documentation

◆ drawEllipse() [1/2]

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

See QPaintEngine::drawEllipse()

Reimplemented from QwtNullPaintDevice.

◆ drawEllipse() [2/2]

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

See QPaintEngine::drawEllipse()

Reimplemented from QwtNullPaintDevice.

◆ drawImage()

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

See QPaintEngine::drawImage()

Reimplemented from QwtNullPaintDevice.

◆ drawLines() [1/2]

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

See QPaintEngine::drawLines()

Reimplemented from QwtNullPaintDevice.

◆ drawLines() [2/2]

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

See QPaintEngine::drawLines()

Reimplemented from QwtNullPaintDevice.

◆ drawPath() [1/2]

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

See QPaintEngine::drawPath()

Reimplemented from QwtNullPaintDevice.

◆ drawPath() [2/2]

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

See QPaintEngine::drawPath()

Reimplemented from QwtNullPaintDevice.

◆ drawPixmap()

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

See QPaintEngine::drawPixmap()

Reimplemented from QwtNullPaintDevice.

◆ drawPoints() [1/2]

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

See QPaintEngine::drawPoints()

Reimplemented from QwtNullPaintDevice.

◆ drawPoints() [2/2]

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

See QPaintEngine::drawPoints()

Reimplemented from QwtNullPaintDevice.

◆ drawRects() [1/4]

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

See QPaintEngine::drawRects()

Reimplemented from QwtNullPaintDevice.

◆ drawRects() [2/4]

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

See QPaintEngine::drawRects()

Reimplemented from QwtNullPaintDevice.

◆ drawRects() [3/4]

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

See QPaintEngine::drawRects()

Reimplemented from QwtNullPaintDevice.

◆ drawRects() [4/4]

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

See QPaintEngine::drawRects()

Reimplemented from QwtNullPaintDevice.

◆ drawTextItem()

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

See QPaintEngine::drawTextItem()

Reimplemented from QwtNullPaintDevice.

◆ drawTiledPixmap()

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

See QPaintEngine::drawTiledPixmap()

Reimplemented from QwtNullPaintDevice.

◆ sizeMetrics()

virtual QSize QWT_FINAL::sizeMetrics ( ) const
protectedvirtual
Returns
Size needed to implement metric()

Implements QwtNullPaintDevice.

◆ updateState() [1/2]

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

See QPaintEngine::updateState()

Reimplemented from QwtNullPaintDevice.

◆ updateState() [2/2]

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

See QPaintEngine::updateState()

Reimplemented from QwtNullPaintDevice.


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