table of contents
QwtPlotGrid(3) | Qwt User's Guide | QwtPlotGrid(3) |
NAME¶
QwtPlotGrid -
SYNOPSIS¶
#include <qwt_plot_grid.h>
Inherits QwtPlotItem.
Public Member Functions¶
QwtPlotGrid ()
virtual ~QwtPlotGrid ()
virtual void draw (QPainter *p, const QwtScaleMap &xMap,
const QwtScaleMap &yMap, const QRect &rect) const
void enableX (bool tf)
void enableXMin (bool tf)
void enableY (bool tf)
void enableYMin (bool tf)
const QPen & majPen () const
const QPen & minPen () const
virtual int rtti () const
void setMajPen (const QPen &p)
void setMinPen (const QPen &p)
void setPen (const QPen &p)
void setXDiv (const QwtScaleDiv &sx)
void setYDiv (const QwtScaleDiv &sy)
virtual void updateScaleDiv (const QwtScaleDiv &xMap, const
QwtScaleDiv &yMap)
bool xEnabled () const
bool xMinEnabled () const
const QwtScaleDiv & xScaleDiv () const
bool yEnabled () const
bool yMinEnabled () const
const QwtScaleDiv & yScaleDiv () const
Additional Inherited Members¶
Detailed Description¶
A class which draws a coordinate grid.
The QwtPlotGrid class can be used to draw a coordinate grid. A coordinate grid consists of major and minor vertical and horizontal gridlines. The locations of the gridlines are determined by the X and Y scale divisions which can be assigned with setXDiv() and setYDiv(). The draw() member draws the grid within a bounding rectangle.
Member Function Documentation¶
void QwtPlotGrid::draw (QPainter *painter, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRect &canvasRect) const [virtual]¶
Draw the grid. The grid is drawn into the bounding rectangle such that gridlines begin and end at the rectangle's borders. The X and Y maps are used to map the scale divisions into the drawing region screen.
Parameters:
xMap X axis map
yMap Y axis
canvasRect Contents rect of the plot canvas
Implements QwtPlotItem.
void QwtPlotGrid::enableX (booltf)¶
Enable or disable vertical gridlines. Parameters:
See also:
void QwtPlotGrid::enableXMin (booltf)¶
Enable or disable minor vertical gridlines. Parameters:
See also:
void QwtPlotGrid::enableY (booltf)¶
Enable or disable horizontal gridlines. Parameters:
See also:
void QwtPlotGrid::enableYMin (booltf)¶
Enable or disable minor horizontal gridlines. Parameters:
See also:
const QPen & QwtPlotGrid::majPen () const¶
Returns:
See also:
const QPen & QwtPlotGrid::minPen () const¶
Returns:
See also:
int QwtPlotGrid::rtti () const [virtual]¶
Returns:
Reimplemented from QwtPlotItem.
void QwtPlotGrid::setMajPen (const QPen &pen)¶
Assign a pen for the major gridlines
The width of non cosmetic pens is scaled according to the resolution of the paint device.
Parameters:
See also:
void QwtPlotGrid::setMinPen (const QPen &pen)¶
Assign a pen for the minor gridlines
The width of non cosmetic pens is scaled according to the resolution of the paint device.
Parameters:
See also:
void QwtPlotGrid::setPen (const QPen &pen)¶
Assign a pen for both major and minor gridlines
The width of non cosmetic pens is scaled according to the resolution of the paint device.
Parameters:
See also:
void QwtPlotGrid::setXDiv (const QwtScaleDiv &scaleDiv)¶
Assign an x axis scale division
Parameters:
void QwtPlotGrid::setYDiv (const QwtScaleDiv &scaleDiv)¶
Assign a y axis division
Parameters:
void QwtPlotGrid::updateScaleDiv (const QwtScaleDiv &xScaleDiv, const QwtScaleDiv &yScaleDiv) [virtual]¶
Update the grid to changes of the axes scale division
Parameters:
yScaleDiv Scale division of the y-axis
See also:
Reimplemented from QwtPlotItem.
bool QwtPlotGrid::xEnabled () const¶
Returns:
See also:
bool QwtPlotGrid::xMinEnabled () const¶
Returns:
See also:
const QwtScaleDiv & QwtPlotGrid::xScaleDiv () const¶
Returns:
bool QwtPlotGrid::yEnabled () const¶
Returns:
See also:
bool QwtPlotGrid::yMinEnabled () const¶
Returns:
See also:
const QwtScaleDiv & QwtPlotGrid::yScaleDiv () const¶
Returns:
Author¶
Generated automatically by Doxygen for Qwt User's Guide from the source code.
Tue Nov 20 2012 | Version 5.2.3 |