QwtPlotAbstractGLCanvas(3)

πŸ“¦
version 6.3.0 Β· 2 versions
, in alpine 3.24

πŸ’… QwtPlotAbstractGLCanvas(3) πŸ’…

from the Library Functions Manual β€” yes bestie, we're in the man pages now, and this one is giving base-class main character energy

πŸ’– NAME

QwtPlotAbstractGLCanvas β€” Base class of QwtPlotOpenGLCanvas and QwtPlotGLCanvas.

✨ SYNOPSIS

#include <qwt_plot_abstract_canvas.h>

Inherits QwtPlotAbstractCanvas.

Inherited by QwtPlotGLCanvas, and QwtPlotOpenGLCanvas.

🌸 Public Types

  • enum PaintAttribute { BackingStore = 1, ImmediatePaint = 8 } β€” Paint attributes.
  • typedef QFlags< PaintAttribute > PaintAttributes β€” Paint attributes.

πŸ’œ Public Types inherited from QwtPlotAbstractCanvas

  • enum FocusIndicator { NoFocusIndicator, CanvasFocusIndicator, ItemFocusIndicator } β€” Focus indicator. The default setting is NoFocusIndicator.

πŸ¦‹ Public Member Functions

  • QwtPlotAbstractGLCanvas (QWidget *canvasWidget) β€” Constructor.
  • virtual ~QwtPlotAbstractGLCanvas () β€” Destructor.
  • void setPaintAttribute (PaintAttribute, bool on=true) β€” Changing the paint attributes.
  • bool testPaintAttribute (PaintAttribute) const β€” Test whether a paint attribute is enabled.
  • void setFrameStyle (int style) β€” Set the frame style.
  • int frameStyle () const β€” Get the frame style.
  • void setFrameShadow (QFrame::Shadow) β€” Set the frame shadow.
  • QFrame::Shadow frameShadow () const β€” Get the frame shadow.
  • void setFrameShape (QFrame::Shape) β€” Set the frame shape.
  • QFrame::Shape frameShape () const β€” Get the frame shape.
  • void setLineWidth (int) β€” Set the frame line width.
  • int lineWidth () const β€” Get the line width of the frame.
  • void setMidLineWidth (int) β€” Set the frame mid line width.
  • int midLineWidth () const β€” Get the midline width of the frame.
  • int frameWidth () const β€” Get the frame width.
  • QRect frameRect () const β€” Get the rectangle where the frame is drawn in.
  • virtual void invalidateBackingStore ()=0 β€” Invalidate the internal backing store.

πŸŽ€ Public Member Functions inherited from QwtPlotAbstractCanvas

  • QwtPlotAbstractCanvas (QWidget *canvasWidget) β€” Constructor.
  • virtual ~QwtPlotAbstractCanvas () β€” Destructor.
  • QwtPlot * plot () β€” Return parent plot widget.
  • const QwtPlot * plot () const β€” Return parent plot widget.
  • void setFocusIndicator (FocusIndicator) β€” Set the focus indicator.
  • FocusIndicator focusIndicator () const β€” Get the focus indicator.
  • void setBorderRadius (double) β€” Set the border radius.
  • double borderRadius () const β€” Get the border radius.

πŸ”₯ Protected Member Functions

  • void replot () β€” Invalidate the paint cache and repaint the canvas.
  • void draw (QPainter *) β€” Helper function for the derived plot canvas.

🌈 Protected Member Functions inherited from QwtPlotAbstractCanvas

  • QWidget * canvasWidget () β€” Get the canvas widget.
  • const QWidget * canvasWidget () const β€” Get the canvas widget.
  • virtual void drawFocusIndicator (QPainter *) β€” Draw the focus indicator.
  • virtual void drawBorder (QPainter *) β€” Draw the border.
  • virtual void drawBackground (QPainter *) β€” Helper function for the derived plot canvas.
  • void fillBackground (QPainter *) β€” Helper function for the derived plot canvas.
  • void drawCanvas (QPainter *) β€” Draw the plot to the canvas.
  • void drawStyled (QPainter *, bool) β€” Helper function for the derived plot canvas.
  • void drawUnstyled (QPainter *) β€” Helper function for the derived plot canvas.
  • QPainterPath canvasBorderPath (const QRect &rect) const β€” Get the canvas border path.
  • void updateStyleSheetInfo () β€” Update the cached information about the current style sheet.

🌸 DETAILED DESCRIPTION

Base class of QwtPlotOpenGLCanvas and QwtPlotGLCanvas.

Definition at line 87 of file qwt_plot_abstract_canvas.h.

πŸŽ€ MEMBER TYPEDEF DOCUMENTATION

typedef QFlags<PaintAttribute > QwtPlotAbstractGLCanvas::PaintAttributes

Paint attributes. An ORed combination of PaintAttribute values.

Definition at line 122 of file qwt_plot_abstract_canvas.h.

πŸ¦‹ MEMBER ENUMERATION DOCUMENTATION

enum QwtPlotAbstractGLCanvas::PaintAttribute

Paint attributes. The default setting enables BackingStore and Opaque.

See also setPaintAttribute(), testPaintAttribute()

Enumerator

  • BackingStore β€” Paint double buffered reusing the content of the pixmap buffer when possible. Using a backing store might improve the performance significantly, when working with widget overlays ( like rubber bands ). Disabling the cache might improve the performance for incremental paints (using QwtPlotDirectPainter ).

See also backingStore(), invalidateBackingStore()

  • ImmediatePaint β€” When ImmediatePaint is set replot() calls repaint() instead of update().

See also replot(), QWidget::repaint(), QWidget::update()

Definition at line 97 of file qwt_plot_abstract_canvas.h.

πŸ’œ CONSTRUCTOR & DESTRUCTOR DOCUMENTATION

QwtPlotAbstractGLCanvas::QwtPlotAbstractGLCanvas (QWidget * canvasWidget) [explicit]

Constructor.

  • canvasWidget β€” plot canvas widget

Definition at line 904 of file qwt_plot_abstract_canvas.cpp.

QwtPlotAbstractGLCanvas::~QwtPlotAbstractGLCanvas () [virtual]

Destructor.

Definition at line 914 of file qwt_plot_abstract_canvas.cpp.

πŸ”₯ MEMBER FUNCTION DOCUMENTATION

void QwtPlotAbstractGLCanvas::draw (QPainter * painter) [protected]

Helper function for the derived plot canvas.

Definition at line 1112 of file qwt_plot_abstract_canvas.cpp.

QRect QwtPlotAbstractGLCanvas::frameRect () const

Returns:

  • The rectangle where the frame is drawn in.

Definition at line 1105 of file qwt_plot_abstract_canvas.cpp.

QFrame::Shadow QwtPlotAbstractGLCanvas::frameShadow () const

Returns:

  • Frame shadow

See also setFrameShadow(), QFrame::setFrameShadow()

Definition at line 1000 of file qwt_plot_abstract_canvas.cpp.

QFrame::Shape QwtPlotAbstractGLCanvas::frameShape () const

Returns:

  • Frame shape

See also setFrameShape(), QFrame::frameShape()

Definition at line 1020 of file qwt_plot_abstract_canvas.cpp.

int QwtPlotAbstractGLCanvas::frameStyle () const

Returns:

  • The bitwise OR between a frameShape() and a frameShadow()

See also setFrameStyle(), QFrame::frameStyle()

Definition at line 980 of file qwt_plot_abstract_canvas.cpp.

int QwtPlotAbstractGLCanvas::frameWidth () const

Returns:

  • Frame width depending on the style, line width and midline width.

Definition at line 1084 of file qwt_plot_abstract_canvas.cpp.

virtual void QwtPlotAbstractGLCanvas::invalidateBackingStore () [pure virtual]

Invalidate the internal backing store.

Implemented in QwtPlotGLCanvas, and QwtPlotOpenGLCanvas.

int QwtPlotAbstractGLCanvas::lineWidth () const

Returns:

  • Line width of the frame

See also setLineWidth(), midLineWidth()

Definition at line 1048 of file qwt_plot_abstract_canvas.cpp.

int QwtPlotAbstractGLCanvas::midLineWidth () const

Returns:

  • Midline width of the frame

See also setMidLineWidth(), lineWidth()

Definition at line 1076 of file qwt_plot_abstract_canvas.cpp.

void QwtPlotAbstractGLCanvas::replot () [protected]

Invalidate the paint cache and repaint the canvas.

See also invalidatePaintCache()

Definition at line 1093 of file qwt_plot_abstract_canvas.cpp.

void QwtPlotAbstractGLCanvas::setFrameShadow (QFrame::Shadow shadow)

Set the frame shadow.

  • shadow β€” Frame shadow

See also frameShadow(), setFrameShape(), QFrame::setFrameShadow()

Definition at line 991 of file qwt_plot_abstract_canvas.cpp.

void QwtPlotAbstractGLCanvas::setFrameShape (QFrame::Shape shape)

Set the frame shape.

  • shape β€” Frame shape

See also frameShape(), setFrameShadow(), QFrame::frameShape()

Definition at line 1011 of file qwt_plot_abstract_canvas.cpp.

void QwtPlotAbstractGLCanvas::setFrameStyle (int style)

Set the frame style.

  • style β€” The bitwise OR between a shape and a shadow.

See also frameStyle(), QFrame::setFrameStyle(), setFrameShadow(), setFrameShape()

Definition at line 965 of file qwt_plot_abstract_canvas.cpp.

void QwtPlotAbstractGLCanvas::setLineWidth (int width)

Set the frame line width.

The default line width is 2 pixels.

  • width β€” Line width of the frame

See also lineWidth(), setMidLineWidth()

Definition at line 1033 of file qwt_plot_abstract_canvas.cpp.

void QwtPlotAbstractGLCanvas::setMidLineWidth (int width)

Set the frame mid line width.

The default midline width is 0 pixels.

  • width β€” Midline width of the frame

See also midLineWidth(), setLineWidth()

Definition at line 1061 of file qwt_plot_abstract_canvas.cpp.

void QwtPlotAbstractGLCanvas::setPaintAttribute (PaintAttribute attribute, bool on = true)

Changing the paint attributes.

  • attribute β€” Paint attribute
  • on β€” On/Off

See also testPaintAttribute()

Definition at line 927 of file qwt_plot_abstract_canvas.cpp.

bool QwtPlotAbstractGLCanvas::testPaintAttribute (PaintAttribute attribute) const

Test whether a paint attribute is enabled.

  • attribute β€” Paint attribute

Returns:

  • true, when attribute is enabled

See also setPaintAttribute()

Definition at line 952 of file qwt_plot_abstract_canvas.cpp.

πŸ‘‘ AUTHOR

Generated automatically by Doxygen for Qwt User's Guide from the source code.


Final footer vibe check: source/version is the Qwt User's Guide, the page is QwtPlotAbstractGLCanvas(3), and the date is not printed on this footer. Doxygen generated the Author bit automatically from the source code. That's the whole page, bestie β€” periodt. πŸ’…πŸ’–

πŸ“¦ where this page comes from