Eneboo - Documentación para desarrolladores
|
#include <qwt_plot_canvas.h>
Clases | |
class | PrivateData |
Tipos públicos | |
enum | PaintAttribute { PaintCached = 1, PaintPacked = 2 } |
Paint attributes. Más... | |
enum | FocusIndicator { NoFocusIndicator, CanvasFocusIndicator, ItemFocusIndicator } |
Focus indicator. Más... | |
Métodos públicos | |
QwtPlotCanvas (QwtPlot *) | |
Sets a cross cursor, enables QwtPlotCanvas::PaintCached. | |
virtual | ~QwtPlotCanvas () |
Destructor. | |
QwtPlot * | plot () |
Return parent plot widget. | |
const QwtPlot * | plot () const |
Return parent plot widget. | |
void | setFocusIndicator (FocusIndicator) |
FocusIndicator | focusIndicator () const |
void | setPaintAttribute (PaintAttribute, bool on=true) |
Changing the paint attributes. | |
bool | testPaintAttribute (PaintAttribute) const |
QPixmap * | paintCache () |
Return the paint cache, might be null. | |
const QPixmap * | paintCache () const |
Return the paint cache, might be null. | |
void | invalidatePaintCache () |
Invalidate the internal paint cache. | |
Métodos protegidos | |
virtual void | hideEvent (QHideEvent *) |
virtual void | paintEvent (QPaintEvent *) |
Paint event. | |
virtual void | drawContents (QPainter *) |
Redraw the canvas, and focus rect. | |
virtual void | drawFocusIndicator (QPainter *) |
Draw the focus indication. | |
void | drawCanvas (QPainter *painter=NULL) |
Focus indicator.
Paint attributes.
The default setting enables PaintCached and PaintPacked
QwtPlotCanvas::QwtPlotCanvas | ( | QwtPlot * | plot | ) | [explicit] |
Sets a cross cursor, enables QwtPlotCanvas::PaintCached.
QwtPlotCanvas::~QwtPlotCanvas | ( | ) | [virtual] |
Destructor.
Draw the the canvas
Paints all plot items to the contentsRect(), using QwtPlot::drawCanvas and updates the paint cache.
void QwtPlotCanvas::drawContents | ( | QPainter * | painter | ) | [protected, virtual] |
Redraw the canvas, and focus rect.
Reimplementado de QFrame.
void QwtPlotCanvas::drawFocusIndicator | ( | QPainter * | painter | ) | [protected, virtual] |
Draw the focus indication.
QwtPlotCanvas::FocusIndicator QwtPlotCanvas::focusIndicator | ( | ) | const |
void QwtPlotCanvas::hideEvent | ( | QHideEvent * | ) | [protected, virtual] |
This event handler can be reimplemented in a subclass to receive widget hide events.
Hide events are sent to widgets immediately after they have been hidden.
Reimplementado de QWidget.
void QwtPlotCanvas::invalidatePaintCache | ( | ) |
Invalidate the internal paint cache.
const QPixmap * QwtPlotCanvas::paintCache | ( | ) | const |
Return the paint cache, might be null.
QPixmap * QwtPlotCanvas::paintCache | ( | ) |
Return the paint cache, might be null.
void QwtPlotCanvas::paintEvent | ( | QPaintEvent * | event | ) | [protected, virtual] |
Paint event.
Reimplementado de QFrame.
const QwtPlot * QwtPlotCanvas::plot | ( | ) | const |
Return parent plot widget.
QwtPlot * QwtPlotCanvas::plot | ( | ) |
Return parent plot widget.
void QwtPlotCanvas::setFocusIndicator | ( | FocusIndicator | focusIndicator | ) |
Set the focus indicator
void QwtPlotCanvas::setPaintAttribute | ( | PaintAttribute | attribute, |
bool | on = true |
||
) |
Changing the paint attributes.
attribute | Paint attribute |
on | On/Off |
The default setting enables PaintCached and PaintPacked
bool QwtPlotCanvas::testPaintAttribute | ( | PaintAttribute | attribute | ) | const |
Test wether a paint attribute is enabled
attribute | Paint attribute |