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 | List of all members
QwtPlotDirectPainter Class Reference

Painter object trying to paint incrementally. More...

#include <qwt_plot_directpainter.h>

Inheritance diagram for QwtPlotDirectPainter:

Classes

class  PrivateData
 

Public Types

enum  Attribute { AtomicPainter = 0x01 , FullRepaint = 0x02 , CopyBackingStore = 0x04 }
 Paint attributes. More...
 

Public Member Functions

 QwtPlotDirectPainter (QObject *parent=nullptr)
 Constructor .
 
virtual ~QwtPlotDirectPainter ()
 Destructor .
 
void setAttribute (Attribute, bool on)
 Set attribute .
 
bool testAttribute (Attribute) const
 Test attribute .
 
void setClipping (bool)
 Set clipping .
 
bool hasClipping () const
 Check if clipping is enabled .
 
void setClipRegion (const QRegion &)
 Set clip region .
 
QRegion clipRegion () const
 Get clip region .
 
void drawSeries (QwtPlotSeriesItem *, int from, int to)
 Draw series .
 
void reset ()
 Reset the painter .
 
virtual bool eventFilter (QObject *, QEvent *) override
 Event filter .
 

Detailed Description

Painter object trying to paint incrementally.

Member Enumeration Documentation

◆ Attribute

Paint attributes.

Enumerator
AtomicPainter 

Initializing a QPainter is an expensive operation. When AtomicPainter is set each call of drawSeries() opens/closes a temporary QPainter. Otherwise QwtPlotDirectPainter tries to use the same QPainter as long as possible.

FullRepaint 

When FullRepaint is set the plot canvas is explicitly repainted after the samples have been rendered.

CopyBackingStore 

When QwtPlotCanvas::BackingStore is enabled the painter has to paint to the backing store and the widget. In certain situations/environments it might be faster to paint to the backing store only and then copy the backing store to the canvas. This flag can also be useful for settings, where Qt fills the the clip region with the widget background.

Constructor & Destructor Documentation

◆ QwtPlotDirectPainter()

QwtPlotDirectPainter::QwtPlotDirectPainter ( QObject *  parent = nullptr)
explicit

Constructor .

Constructor.

◆ ~QwtPlotDirectPainter()

QwtPlotDirectPainter::~QwtPlotDirectPainter ( )
virtual

Destructor .

Destructor

.

Member Function Documentation

◆ clipRegion()

QRegion QwtPlotDirectPainter::clipRegion ( ) const

Get clip region .

Get the currently set clip region.

◆ drawSeries()

void QwtPlotDirectPainter::drawSeries ( QwtPlotSeriesItem seriesItem,
int  from,
int  to 
)

Draw series .

Draw a set of points of a seriesItem.

◆ eventFilter()

bool QwtPlotDirectPainter::eventFilter ( QObject *  ,
QEvent *  event 
)
overridevirtual

Event filter .

Event filter.

◆ hasClipping()

bool QwtPlotDirectPainter::hasClipping ( ) const

Check if clipping is enabled .

Check if clipping is enabled.

◆ reset()

void QwtPlotDirectPainter::reset ( )

Reset the painter .

Close the internal QPainter

.

◆ setAttribute()

void QwtPlotDirectPainter::setAttribute ( Attribute  attribute,
bool  on 
)

Set attribute .

Change an attribute.

◆ setClipping()

void QwtPlotDirectPainter::setClipping ( bool  enable)

Set clipping .

Enable or disable clipping.

◆ setClipRegion()

void QwtPlotDirectPainter::setClipRegion ( const QRegion &  region)

Set clip region .

Assign a clip region and enable clipping.

◆ testAttribute()

bool QwtPlotDirectPainter::testAttribute ( Attribute  attribute) const

Test attribute .

Test an attribute.


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