|
|
| QwtPlotGrid () |
| | Enables major grid, disables minor grid.
|
| |
|
virtual | ~QwtPlotGrid () |
| | Destructor.
|
| |
| virtual int | rtti () const QWT_OVERRIDE |
| |
| void | enableX (bool) |
| | Enable or disable vertical grid lines.
|
| |
| bool | xEnabled () const |
| |
| void | enableY (bool) |
| | Enable or disable horizontal grid lines.
|
| |
| bool | yEnabled () const |
| |
| void | enableXMin (bool) |
| | Enable or disable minor vertical grid lines.
|
| |
| bool | xMinEnabled () const |
| |
| void | enableYMin (bool) |
| | Enable or disable minor horizontal grid lines.
|
| |
| bool | yMinEnabled () const |
| |
| void | setXDiv (const QwtScaleDiv &) |
| | Assign an x axis scale division.
|
| |
| const QwtScaleDiv & | xScaleDiv () const |
| |
| void | setYDiv (const QwtScaleDiv &) |
| | Assign a y axis division.
|
| |
| const QwtScaleDiv & | yScaleDiv () const |
| |
| void | setPen (const QColor &, qreal width=0.0, Qt::PenStyle=Qt::SolidLine) |
| | Build and assign a pen for both major and minor grid lines.
|
| |
| void | setPen (const QPen &) |
| | Assign a pen for both major and minor grid lines.
|
| |
| void | setMajorPen (const QColor &, qreal width=0.0, Qt::PenStyle=Qt::SolidLine) |
| | Build and assign a pen for both major grid lines.
|
| |
| void | setMajorPen (const QPen &) |
| | Assign a pen for the major grid lines.
|
| |
| const QPen & | majorPen () const |
| |
| void | setMinorPen (const QColor &, qreal width=0.0, Qt::PenStyle=Qt::SolidLine) |
| | Build and assign a pen for the minor grid lines.
|
| |
| void | setMinorPen (const QPen &) |
| | Assign a pen for the minor grid lines.
|
| |
| const QPen & | minorPen () const |
| |
| virtual void | draw (QPainter *, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &canvasRect) const QWT_OVERRIDE |
| | Draw the grid.
|
| |
| virtual void | updateScaleDiv (const QwtScaleDiv &xScaleDiv, const QwtScaleDiv &yScaleDiv) QWT_OVERRIDE |
| | Update the grid to changes of the axes scale division.
|
| |
|
| QwtPlotItem () |
| | Constructor.
|
| |
| | QwtPlotItem (const QString &title) |
| | Constructor.
|
| |
| | QwtPlotItem (const QwtText &title) |
| | Constructor.
|
| |
|
virtual | ~QwtPlotItem () |
| | Destroy the QwtPlotItem.
|
| |
| void | attach (QwtPlot *plot) |
| | Attach the item to a plot.
|
| |
| void | detach () |
| | This method detaches a QwtPlotItem from any QwtPlot it has been associated with.
|
| |
|
QwtPlot * | plot () const |
| | Return attached plot.
|
| |
| void | setTitle (const QString &title) |
| | Set a new title.
|
| |
| void | setTitle (const QwtText &title) |
| | Set a new title.
|
| |
| const QwtText & | title () const |
| |
| void | setItemAttribute (ItemAttribute, bool on=true) |
| | Toggle an item attribute.
|
| |
| bool | testItemAttribute (ItemAttribute) const |
| | Test an item attribute.
|
| |
| void | setItemInterest (ItemInterest, bool on=true) |
| | Toggle an item interest.
|
| |
| bool | testItemInterest (ItemInterest) const |
| | Test an item interest.
|
| |
| void | setRenderHint (RenderHint, bool on=true) |
| | Toggle an render hint.
|
| |
| bool | testRenderHint (RenderHint) const |
| | Test a render hint.
|
| |
| void | setRenderThreadCount (uint numThreads) |
| | On multi core systems rendering of certain plot item ( f.e QwtPlotRasterItem ) can be done in parallel in several threads.
|
| |
| uint | renderThreadCount () const |
| |
| void | setLegendIconSize (const QSize &) |
| | Set the size of the legend icon.
|
| |
| QSize | legendIconSize () const |
| |
| double | z () const |
| | Plot items are painted in increasing z-order.
|
| |
| void | setZ (double z) |
| | Set the z value.
|
| |
|
void | show () |
| | Show the item.
|
| |
|
void | hide () |
| | Hide the item.
|
| |
| virtual void | setVisible (bool) |
| | Show/Hide the item.
|
| |
| bool | isVisible () const |
| |
| void | setAxes (QwtAxisId xAxis, QwtAxisId yAxis) |
| | Set X and Y axis.
|
| |
| void | setXAxis (QwtAxisId) |
| | Set the X axis.
|
| |
|
QwtAxisId | xAxis () const |
| | Return xAxis.
|
| |
| void | setYAxis (QwtAxisId) |
| | Set the Y axis.
|
| |
|
QwtAxisId | yAxis () const |
| | Return yAxis.
|
| |
| virtual void | itemChanged () |
| | Update the legend and call QwtPlot::autoRefresh() for the parent plot.
|
| |
| virtual void | legendChanged () |
| | Update the legend of the parent plot.
|
| |
| virtual QRectF | boundingRect () const |
| |
| virtual void | getCanvasMarginHint (const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &canvasRect, double &left, double &top, double &right, double &bottom) const |
| | Calculate a hint for the canvas margin.
|
| |
| virtual void | updateLegend (const QwtPlotItem *, const QList< QwtLegendData > &) |
| | Update the item to changes of the legend info.
|
| |
| QRectF | scaleRect (const QwtScaleMap &, const QwtScaleMap &) const |
| | Calculate the bounding scale rectangle of 2 maps.
|
| |
| QRectF | paintRect (const QwtScaleMap &, const QwtScaleMap &) const |
| | Calculate the bounding paint rectangle of 2 maps.
|
| |
| virtual QList< QwtLegendData > | legendData () const |
| | Return all information, that is needed to represent the item on the legend.
|
| |
| virtual QwtGraphic | legendIcon (int index, const QSizeF &) const |
| |
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 grid lines. The locations of the grid lines 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.