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

#include <qwt_plot_abstract_canvas.h>

Inheritance diagram for QwtPlotAbstractGLCanvas:
Inheritance graph
[legend]

Classes

class  PrivateData
 

Public Types

enum  PaintAttribute { BackingStore = 1, ImmediatePaint = 8 }
 Paint attributes. More...
 
typedef QFlags< PaintAttributePaintAttributes
 Paint attributes. More...
 
- Public Types inherited from QwtPlotAbstractCanvas
enum  FocusIndicator { NoFocusIndicator, CanvasFocusIndicator, ItemFocusIndicator }
 Focus indicator The default setting is NoFocusIndicator. More...
 

Public Member Functions

QRect frameRect () const
 
QFrame::Shadow frameShadow () const
 
QFrame::Shape frameShape () const
 
int frameStyle () const
 
int frameWidth () const
 
virtual void invalidateBackingStore ()=0
 
int lineWidth () const
 
int midLineWidth () const
 
 QwtPlotAbstractGLCanvas (QWidget *canvasWidget)
 
void setFrameShadow (QFrame::Shadow)
 
void setFrameShape (QFrame::Shape)
 
void setFrameStyle (int style)
 
void setLineWidth (int)
 
void setMidLineWidth (int)
 
void setPaintAttribute (PaintAttribute, bool on=true)
 Changing the paint attributes. More...
 
bool testPaintAttribute (PaintAttribute) const
 
virtual ~QwtPlotAbstractGLCanvas ()
 
- Public Member Functions inherited from QwtPlotAbstractCanvas
double borderRadius () const
 
FocusIndicator focusIndicator () const
 
QwtPlotplot ()
 Return parent plot widget. More...
 
const QwtPlotplot () const
 Return parent plot widget. More...
 
 QwtPlotAbstractCanvas (QWidget *canvasWidget)
 
void setBorderRadius (double)
 
void setFocusIndicator (FocusIndicator)
 
virtual ~QwtPlotAbstractCanvas ()
 

Protected Member Functions

void draw (QPainter *)
 
void replot ()
 
- Protected Member Functions inherited from QwtPlotAbstractCanvas
QPainterPath borderPath2 (const QRect &rect) const
 
QWidget * canvasWidget ()
 
const QWidget * canvasWidget () const
 
virtual void drawBackground (QPainter *)
 
virtual void drawBorder (QPainter *)
 
void drawCanvas (QPainter *)
 
virtual void drawFocusIndicator (QPainter *)
 
void drawStyled (QPainter *, bool)
 
void drawUnstyled (QPainter *)
 
void fillBackground (QPainter *)
 
void updateStyleSheetInfo ()
 Update the cached information about the current style sheet. More...
 

Private Member Functions

virtual void clearBackingStore ()=0
 

Private Attributes

PrivateDatad_data
 

Detailed Description

Definition at line 81 of file qwt_plot_abstract_canvas.h.

Member Typedef Documentation

Paint attributes.

Definition at line 116 of file qwt_plot_abstract_canvas.h.

Member Enumeration Documentation

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 91 of file qwt_plot_abstract_canvas.h.

Constructor & Destructor Documentation

QwtPlotAbstractGLCanvas::QwtPlotAbstractGLCanvas ( QWidget *  canvasWidget)
explicit

Definition at line 936 of file qwt_plot_abstract_canvas.cpp.

QwtPlotAbstractGLCanvas::~QwtPlotAbstractGLCanvas ( )
virtual

Definition at line 945 of file qwt_plot_abstract_canvas.cpp.

Member Function Documentation

virtual void QwtPlotAbstractGLCanvas::clearBackingStore ( )
privatepure virtual

Implemented in QwtPlotGLCanvas, and QwtPlotOpenGLCanvas.

void QwtPlotAbstractGLCanvas::draw ( QPainter *  painter)
protected

Definition at line 1142 of file qwt_plot_abstract_canvas.cpp.

QRect QwtPlotAbstractGLCanvas::frameRect ( ) const
Returns
The rectangle where the frame is drawn in.

Definition at line 1136 of file qwt_plot_abstract_canvas.cpp.

QFrame::Shadow QwtPlotAbstractGLCanvas::frameShadow ( ) const
Returns
Frame shadow
See also
setFrameShadow(), QFrame::setFrameShadow()

Definition at line 1031 of file qwt_plot_abstract_canvas.cpp.

QFrame::Shape QwtPlotAbstractGLCanvas::frameShape ( ) const
Returns
Frame shape
See also
setFrameShape(), QFrame::frameShape()

Definition at line 1051 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 1011 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 1115 of file qwt_plot_abstract_canvas.cpp.

virtual void QwtPlotAbstractGLCanvas::invalidateBackingStore ( )
pure virtual

Implemented in QwtPlotGLCanvas, and QwtPlotOpenGLCanvas.

int QwtPlotAbstractGLCanvas::lineWidth ( ) const
Returns
Line width of the frame
See also
setLineWidth(), midLineWidth()

Definition at line 1079 of file qwt_plot_abstract_canvas.cpp.

int QwtPlotAbstractGLCanvas::midLineWidth ( ) const
Returns
Midline width of the frame
See also
setMidLineWidth(), lineWidth()

Definition at line 1107 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 1124 of file qwt_plot_abstract_canvas.cpp.

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

Set the frame shadow

Parameters
shadowFrame shadow
See also
frameShadow(), setFrameShape(), QFrame::setFrameShadow()

Definition at line 1022 of file qwt_plot_abstract_canvas.cpp.

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

Set the frame shape

Parameters
shapeFrame shape
See also
frameShape(), setFrameShadow(), QFrame::frameShape()

Definition at line 1042 of file qwt_plot_abstract_canvas.cpp.

void QwtPlotAbstractGLCanvas::setFrameStyle ( int  style)

Set the frame style

Parameters
styleThe bitwise OR between a shape and a shadow.
See also
frameStyle(), QFrame::setFrameStyle(), setFrameShadow(), setFrameShape()

Definition at line 996 of file qwt_plot_abstract_canvas.cpp.

void QwtPlotAbstractGLCanvas::setLineWidth ( int  width)

Set the frame line width

The default line width is 2 pixels.

Parameters
widthLine width of the frame
See also
lineWidth(), setMidLineWidth()

Definition at line 1064 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.

Parameters
widthMidline width of the frame
See also
midLineWidth(), setLineWidth()

Definition at line 1092 of file qwt_plot_abstract_canvas.cpp.

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

Changing the paint attributes.

Parameters
attributePaint attribute
onOn/Off
See also
testPaintAttribute()

Definition at line 958 of file qwt_plot_abstract_canvas.cpp.

bool QwtPlotAbstractGLCanvas::testPaintAttribute ( PaintAttribute  attribute) const

Test whether a paint attribute is enabled

Parameters
attributePaint attribute
Returns
true, when attribute is enabled
See also
setPaintAttribute()

Definition at line 983 of file qwt_plot_abstract_canvas.cpp.

Member Data Documentation

PrivateData* QwtPlotAbstractGLCanvas::d_data
private

Definition at line 151 of file qwt_plot_abstract_canvas.h.


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


plotjuggler
Author(s): Davide Faconti
autogenerated on Sat Jul 6 2019 03:44:18