Eneboo - Documentación para desarrolladores
Clases | Tipos públicos | Métodos públicos | Métodos protegidos
Referencia de la Clase QwtPlotCanvas

#include <qwt_plot_canvas.h>

Diagrama de herencias de QwtPlotCanvas
QFrame QWidget QWidget QPaintDevice QObject QPaintDevice QObject QPaintDevice QObject QPaintDevice QObject

Lista de todos los miembros.

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.
QwtPlotplot ()
 Return parent plot widget.
const QwtPlotplot () 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
QPixmappaintCache ()
 Return the paint cache, might be null.
const QPixmappaintCache () 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)

Descripción detallada

Canvas of a QwtPlot.

Ver también:
QwtPlot

Documentación de las enumeraciones miembro de la clase

Focus indicator.

  • NoFocusIndicator
    Don't paint a focus indicator
  • CanvasFocusIndicator
    The focus is related to the complete canvas. Paint the focus indicator using paintFocus()
  • ItemFocusIndicator
    The focus is related to an item (curve, point, ...) on the canvas. It is up to the application to display a focus indication using f.e. highlighting.
Ver también:
setFocusIndicator(), focusIndicator(), paintFocus()
Valores de enumeraciones:
NoFocusIndicator 
CanvasFocusIndicator 
ItemFocusIndicator 

Paint attributes.

  • PaintCached
    Paint double buffered and reuse the content of the pixmap buffer for some spontaneous repaints that happen when a plot gets unhidden, deiconified or changes the focus. Disabling the cache will improve the performance for incremental paints (using QwtPlotCurve::draw).
  • PaintPacked
    Suppress system background repaints and paint it together with the canvas contents. Painting packed might avoid flickering for expensive repaints, when there is a notable gap between painting the background and the plot contents.

The default setting enables PaintCached and PaintPacked

Ver también:
setPaintAttribute(), testPaintAttribute(), paintCache()
Valores de enumeraciones:
PaintCached 
PaintPacked 

Documentación del constructor y destructor

QwtPlotCanvas::QwtPlotCanvas ( QwtPlot plot) [explicit]

Sets a cross cursor, enables QwtPlotCanvas::PaintCached.

QwtPlotCanvas::~QwtPlotCanvas ( ) [virtual]

Destructor.


Documentación de las funciones miembro

void QwtPlotCanvas::drawCanvas ( QPainter painter = NULL) [protected]

Draw the the canvas

Paints all plot items to the contentsRect(), using QwtPlot::drawCanvas and updates the paint cache.

Ver también:
QwtPlot::drawCanvas, setPaintAttributes(), testPaintAttributes()
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
Devuelve:
Focus indicator
Ver también:
FocusIndicator, setFocusIndicator
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.

Ver también:
event(), QHideEvent

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

Ver también:
FocusIndicator, focusIndicator
void QwtPlotCanvas::setPaintAttribute ( PaintAttribute  attribute,
bool  on = true 
)

Changing the paint attributes.

Parámetros:
attributePaint attribute
onOn/Off

The default setting enables PaintCached and PaintPacked

Ver también:
testPaintAttribute(), drawCanvas(), drawContents(), paintCache()
bool QwtPlotCanvas::testPaintAttribute ( PaintAttribute  attribute) const

Test wether a paint attribute is enabled

Parámetros:
attributePaint attribute
Devuelve:
true if the attribute is enabled
Ver también:
setPaintAttribute()

La documentación para esta clase fue generada a partir de los siguientes ficheros:
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'