#include <qwt_plot.h>
Public Slots | |
| virtual void | replot () |
Signals | |
| void | plotMousePressed (const QMouseEvent &e) |
| void | plotMouseReleased (const QMouseEvent &e) |
| void | plotMouseMoved (const QMouseEvent &e) |
| void | legendClicked (long key) |
Protected Slots | |
| virtual void | lgdClicked () |
Protected Member Functions | |
| void | autoRefresh () |
| virtual void | drawCanvas (QPainter *) |
| virtual void | drawCanvasItems (QPainter *, const QRect &, const QwtDiMap map[], const QwtPlotPrintFilter &) const |
| virtual void | drawContents (QPainter *p) |
| virtual void | updateTabOrder () |
| void | updateAxes () |
| void | updateLayout () |
| virtual void | resizeEvent (QResizeEvent *e) |
| virtual void | insertLegendItem (long curveKey) |
| virtual void | updateLegendItem (long curveKey) |
| virtual void | printLegendItem (QPainter *, const QWidget *, const QRect &) const |
| virtual void | printTitle (QPainter *, const QRect &) const |
| virtual void | printScale (QPainter *, int axis, int startDist, int endDist, int baseDist, const QRect &) const |
| virtual void | printCanvas (QPainter *, const QwtDiMap map[], const QRect &, const QwtPlotPrintFilter &) const |
| virtual void | printLegend (QPainter *, const QRect &) const |
Static Protected Member Functions | |
| bool | axisValid (int axis) |
Private Member Functions | |
| Q_OBJECT | Q_PROPERTY (QColor canvasBackground READ canvasBackground WRITE setCanvasBackground) Q_PROPERTY(int canvasLineWidth READ canvasLineWidth WRITE setCanvasLineWidth) Q_PROPERTY(bool xBottomAxis READ xBottomAxisEnabled WRITE enableXBottomAxis) Q_PROPERTY(int nCurves READ read_nCurves WRITE write_nCurves) Q_PROPERTY(int nMarker READ read_nMarker WRITE write_nMarker) public |
| QwtPlot (QWidget *p=0, const char *name=0) | |
| QwtPlot (const QString &title, QWidget *p=0, const char *name=0) | |
| virtual | ~QwtPlot () |
| void | write_nCurves (int n) |
| void | write_nMarker (int n) |
| int | read_nCurves () const |
| int | read_nMarker () const |
| void | enableXBottomAxis (bool b) |
| bool | xBottomAxisEnabled () const |
| void | enableXTopAxis (bool b) |
| bool | xTopAxisEnabled () const |
| void | enableYRightAxis (bool b) |
| bool | yRightAxisEnabled () const |
| void | enableYLeftAxis (bool b) |
| bool | yLeftAxisEnabled () const |
| void | setAutoReplot (bool tf=TRUE) |
| bool | autoReplot () const |
| void | print (QPaintDevice &p, const QwtPlotPrintFilter &=QwtPlotPrintFilter()) const |
| virtual void | print (QPainter *, const QRect &rect, const QwtPlotPrintFilter &=QwtPlotPrintFilter()) const |
| void | clear () |
| void | enableOutline (bool tf) |
| bool | outlineEnabled () const |
| void | setOutlineStyle (Qwt::Shape os) |
| Qwt::Shape | outlineStyle () const |
| void | setOutlinePen (const QPen &pn) |
| const QPen & | outlinePen () const |
| QwtPlotLayout * | plotLayout () |
| const QwtPlotLayout * | plotLayout () const |
| void | setMargin (int margin) |
| int | margin () const |
| void | setTitle (const QString &t) |
| QString | title () const |
| void | setTitleFont (const QFont &f) |
| QFont | titleFont () const |
| QLabel * | titleLabel () |
| const QLabel * | titleLabel () const |
| QwtPlotCanvas * | canvas () |
| const QwtPlotCanvas * | canvas () const |
| void | setCanvasBackground (const QColor &c) |
| const QColor & | canvasBackground () const |
| void | setCanvasLineWidth (int w) |
| int | canvasLineWidth () const |
| QwtPlotCurveIterator | curveIterator () const |
| QwtPlotMarkerIterator | markerIterator () const |
| QwtDiMap | canvasMap (int axis) const |
| double | invTransform (int axis, int pos) const |
| int | transform (int axis, double value) const |
| long | insertCurve (QwtPlotCurve *) |
| long | insertCurve (const QString &title, int xAxis=xBottom, int yAxis=yLeft) |
| QwtPlotCurve * | curve (long key) |
| const QwtPlotCurve * | curve (long key) const |
| bool | removeCurve (long key) |
| void | removeCurves () |
| QwtArray< long > | curveKeys () const |
| long | closestCurve (int xpos, int ypos, int &dist) const |
| long | closestCurve (int xpos, int ypos, int &dist, double &xval, double &yval, int &index) const |
| bool | setCurveBaseline (long key, double ref) |
| double | curveBaseline (long key) const |
| bool | setCurveData (long key, const double *x, const double *y, int size) |
| bool | setCurveRawData (long key, const double *x, const double *y, int size) |
| bool | setCurveOptions (long key, int t) |
| int | curveOptions (long key) const |
| bool | setCurvePen (long key, const QPen &pen) |
| QPen | curvePen (long key) const |
| bool | setCurveBrush (long key, const QBrush &brush) |
| QBrush | curveBrush (long key) const |
| bool | setCurveSplineSize (long key, int s) |
| int | curveSplineSize (long key) const |
| bool | setCurveStyle (long key, int s, int options=0) |
| int | curveStyle (long key) const |
| bool | setCurveSymbol (long key, const QwtSymbol &s) |
| QwtSymbol | curveSymbol (long key) const |
| bool | setCurveTitle (long key, const QString &s) |
| QString | curveTitle (long key) const |
| bool | setCurveXAxis (long key, int axis) |
| int | curveXAxis (long key) const |
| bool | setCurveYAxis (long key, int axis) |
| int | curveYAxis (long key) const |
| void | drawCurve (long key, int from, int to) |
| void | enableGridX (bool tf=TRUE) |
| void | enableGridXMin (bool tf=TRUE) |
| void | enableGridY (bool tf=TRUE) |
| void | enableGridYMin (bool tf=TRUE) |
| void | setGridXAxis (int axis) |
| int | gridXAxis () const |
| void | setGridYAxis (int axis) |
| int | gridYAxis () const |
| void | setGridPen (const QPen &p) |
| void | setGridMajPen (const QPen &p) |
| const QPen & | gridMajPen () const |
| void | setGridMinPen (const QPen &p) |
| const QPen & | gridMinPen () const |
| QwtPlotGrid & | grid () |
| const QwtPlotGrid & | grid () const |
| void | setAxisAutoScale (int axis) |
| bool | axisAutoScale (int axis) const |
| void | enableAxis (int axis, bool tf=TRUE) |
| bool | axisEnabled (int axis) const |
| void | changeAxisOptions (int axis, int opt, bool value) |
| void | setAxisOptions (int axis, int opt) |
| int | axisOptions (int axis) const |
| void | setAxisFont (int axis, const QFont &f) |
| QFont | axisFont (int axis) const |
| void | setAxisMargins (int axis, double mlo, double mhi) |
| bool | axisMargins (int axis, double &mlo, double &mhi) const |
| void | setAxisScale (int axis, double min, double max, double step=0) |
| void | setAxisScaleDraw (int axis, QwtScaleDraw *) |
| const QwtScaleDiv * | axisScale (int axis) const |
| const QwtScaleDraw * | axisScaleDraw (int axis) const |
| const QwtScale * | axis (int axis) const |
| void | setAxisLabelFormat (int axis, char f, int prec, int fieldwidth=0) |
| void | axisLabelFormat (int axis, char &f, int &prec, int &fieldwidth) const |
| void | setAxisLabelAlignment (int axis, int alignment) |
| void | setAxisLabelRotation (int axis, double rotation) |
| void | setAxisTitle (int axis, const QString &t) |
| const QString & | axisTitle (int axis) const |
| void | setAxisTitleFont (int axis, const QFont &f) |
| QFont | axisTitleFont (int axis) const |
| void | setAxisTitleAlignment (int axis, int align) |
| int | axisTitleAlignment (int axis) const |
| void | setAxisMaxMinor (int axis, int maxMinor) |
| int | axisMaxMajor (int axis) const |
| void | setAxisMaxMajor (int axis, int maxMajor) |
| int | axisMaxMinor (int axis) const |
| void | setAxisReference (int axis, double value) |
| double | axisReference (int axis) const |
| long | insertMarker (QwtPlotMarker *) |
| long | insertMarker (const QString &label=QString::null, int xAxis=xBottom, int yAxis=yLeft) |
| long | insertLineMarker (const QString &label, int axis) |
| QwtPlotMarker * | marker (long key) |
| const QwtPlotMarker * | marker (long key) const |
| bool | removeMarker (long key) |
| void | removeMarkers () |
| long | closestMarker (int xpos, int ypos, int &dist) const |
| QwtArray< long > | markerKeys () const |
| bool | setMarkerXAxis (long key, int axis) |
| int | markerXAxis (long key) const |
| bool | setMarkerYAxis (long key, int axis) |
| int | markerYAxis (long key) const |
| bool | setMarkerPos (long key, double xval, double yVal) |
| bool | setMarkerXPos (long key, double val) |
| bool | setMarkerYPos (long key, double val) |
| void | markerPos (long key, double &mx, double &my) const |
| bool | setMarkerFont (long key, const QFont &f) |
| QFont | markerFont (long key) const |
| bool | setMarkerPen (long key, const QPen &p) |
| bool | setMarkerLabel (long key, const QString &txt) |
| const QString & | markerLabel (long key) const |
| bool | setMarkerLabelAlign (long key, int align) |
| int | markerLabelAlign (long key) const |
| bool | setMarkerLabelPen (long key, const QPen &p) |
| QPen | markerLabelPen (long key) const |
| bool | setMarkerLinePen (long key, const QPen &p) |
| QPen | markerLinePen (long key) const |
| bool | setMarkerLineStyle (long key, QwtMarker::LineStyle st) |
| QwtMarker::LineStyle | markerLineStyle (long key) const |
| bool | setMarkerSymbol (long key, const QwtSymbol &s) |
| QwtSymbol | markerSymbol (long key) const |
| void | setAutoLegend (bool enabled) |
| bool | autoLegend () const |
| void | enableLegend (bool tf, long curveKey=-1) |
| bool | legendEnabled (long curveKey) const |
| void | setLegendPos (int pos, double ratio=0.0) |
| int | legendPos () const |
| void | setLegendFont (const QFont &f) |
| const QFont | legendFont () const |
| void | setLegendFrameStyle (int st) |
| int | legendFrameStyle () const |
| QwtLegend * | legend () |
| const QwtLegend * | legend () const |
| void | setLegendDisplayPolicy (int policy, int mode=-1) |
| virtual QSize | sizeHint () const |
| virtual QSize | minimumSizeHint () const |
| virtual QSizePolicy | sizePolicy () const |
| virtual bool | event (QEvent *) |
| void | initAxes () |
| long | newCurveKey () |
| long | newMarkerKey () |
| void | initPlot (const QString &title=QString::null) |
Private Attributes | |
| QLabel * | d_lblTitle |
| QwtPlotCanvas * | d_canvas |
| QwtLegend * | d_legend |
| QwtPlotLayout * | d_layout |
| bool | d_axisEnabled [axisCnt] |
| QwtScale * | d_scale [axisCnt] |
| QwtAutoScale | d_as [axisCnt] |
| QwtScaleDiv | d_sdiv [axisCnt] |
| QwtCurveDict * | d_curves |
| QwtMarkerDict * | d_markers |
| QwtPlotGrid * | d_grid |
| bool | d_autoReplot |
| bool | d_autoLegend |
| int | nCurves |
| int | nMarker |
Friends | |
| class | QwtPlotItem |
| class | QwtPlotCanvas |
| class | QwtPlotPrintFilter |
QwtPlot is a widget for plotting two-dimensional graphs. An unlimited number of data pairs can be displayed as curves in different styles and colors. A plot can have up to four axes, with each curve attached to an x- and a y axis. The scales at the axes are dimensioned automatically using an algorithm which can be configured separately for each axis. Linear and logarithmic scaling is supported. Markers of different styles can be added to the plot.
Curves and markers are identified by unique keys which are generated automatically when a curve or a marker is inserted. These keys are used to access the properties of the corresponding curves and markers.
A QwtPlot widget can have up to four axes which are indexed by the constants QwtPlot::yLeft, QwtPlot::yRight, QwtPlot::xTop, and QwtPlot::xBottom. Curves, markers, and the grid must be attached to an x axis and a y axis (Default: yLeft and xBottom).
#include "../include/qwt_plot.h>
QwtPlot *myPlot;
long curve1, curve2; // keys
double x[100], y1[100], y2[100]; // x and y values
myPlot = new QwtPlot("Two Graphs", parent, name);
// add curves
curve1 = myPlot->insertCurve("Graph 1");
curve2 = myPlot->insertCurve("Graph 2");
getSomeValues(x, y1, y2);
// copy the data into the curves
myPlot->setCurveData(curve1, x, y1, 100);
myPlot->setCurveData(curve2, x, y2, 100);
// finally, refresh the plot
myPlot->replot();
Definition at line 80 of file qwt_plot.h.
|
||||||||||||
|
Constructor.
Definition at line 32 of file qwt_plot.cpp. References initPlot(). |
|
||||||||||||||||
|
Constructor.
Definition at line 45 of file qwt_plot.cpp. References initPlot(). |
|
|
Destructor.
Definition at line 52 of file qwt_plot.cpp. |
|
|
Definition at line 919 of file qwt_plot.cpp. References d_autoLegend. |
|
|
Replots the plot if QwtPlot::autoReplot() is
Definition at line 162 of file qwt_plot.cpp. References d_autoReplot, and replot(). Referenced by changeAxisOptions(), insertMarker(), QwtPlotItem::itemChanged(), removeCurve(), removeCurves(), removeMarker(), removeMarkers(), setAxisAutoScale(), setAxisMargins(), setAxisMaxMajor(), setAxisMaxMinor(), setAxisOptions(), setAxisReference(), setAxisScale(), and setAxisScaleDraw(). |
|
|
Definition at line 205 of file qwt_plot.cpp. References d_autoReplot. Referenced by replot(). |
|
|
Definition at line 18 of file qwt_plot_axis.cpp. References axisEnabled(), and d_scale. Referenced by closestCurve(), closestMarker(), drawCanvas(), QwtPlotLayoutData::init(), initAxes(), QwtPlotLayout::minimumSizeHint(), print(), sizeHint(), updateAxes(), and updateLayout(). |
|
|
Definition at line 27 of file qwt_plot_axis.cpp. References QwtAutoScale::autoScale(), axisValid(), and d_as. |
|
|
Definition at line 40 of file qwt_plot_axis.cpp. References axisValid(), and d_axisEnabled. Referenced by axis(). |
|
|
Definition at line 52 of file qwt_plot_axis.cpp. References axisValid(), and d_scale. |
|
||||||||||||||||||||
|
Definition at line 170 of file qwt_plot_axis.cpp. References axisValid(), d_scale, and QwtScale::labelFormat(). |
|
||||||||||||||||
|
Determine the scale margins for a specified axis.
Definition at line 68 of file qwt_plot_axis.cpp. References axisValid(), d_as, and QwtAutoScale::loMargin(). |
|
|
Definition at line 86 of file qwt_plot_axis.cpp. References axisValid(), d_as, and QwtAutoScale::maxMajor(). |
|
|
Definition at line 98 of file qwt_plot_axis.cpp. References axisValid(), d_as, and QwtAutoScale::maxMinor(). |
|
|
Definition at line 111 of file qwt_plot_axis.cpp. References axisValid(), d_as, and QwtAutoScale::options(). |
|
|
The reference value is needed if the autoscaling options QwtAutoScale::Symmetric or QwtAutoScale::IncludeRef are set.
Definition at line 127 of file qwt_plot_axis.cpp. References axisValid(), d_as, and QwtAutoScale::reference(). |
|
|
Definition at line 140 of file qwt_plot_axis.cpp. References axisValid(), d_as, and QwtAutoScale::scaleDiv(). |
|
|
Definition at line 154 of file qwt_plot_axis.cpp. References axisValid(), d_scale, and QwtScale::scaleDraw(). |
|
|
Definition at line 189 of file qwt_plot_axis.cpp. References axisValid(), d_scale, and QwtScale::title(). |
|
|
Definition at line 214 of file qwt_plot_axis.cpp. References axisValid(), d_scale, and QwtScale::titleAlignment(). |
|
|
Definition at line 201 of file qwt_plot_axis.cpp. References axisValid(), d_scale, and QwtScale::titleFont(). |
|
|
Definition at line 831 of file qwt_plot.cpp. Referenced by axisAutoScale(), axisEnabled(), axisFont(), axisLabelFormat(), axisMargins(), axisMaxMajor(), axisMaxMinor(), axisOptions(), axisReference(), axisScale(), axisScaleDraw(), axisTitle(), axisTitleAlignment(), axisTitleFont(), changeAxisOptions(), enableAxis(), invTransform(), setAxisAutoScale(), setAxisFont(), setAxisLabelAlignment(), setAxisLabelFormat(), setAxisLabelRotation(), setAxisMargins(), setAxisMaxMajor(), setAxisMaxMinor(), setAxisOptions(), setAxisReference(), setAxisScale(), setAxisScaleDraw(), setAxisTitle(), setAxisTitleAlignment(), setAxisTitleFont(), and transform(). |
|
|
Definition at line 308 of file qwt_plot.cpp. References d_canvas. |
|
|
Definition at line 300 of file qwt_plot.cpp. References d_canvas. Referenced by canvasBackground(), canvasLineWidth(), drawCurve(), QwtPlotLayoutData::init(), QwtPlotLayout::minimumSizeHint(), setCanvasBackground(), and setCanvasLineWidth(). |
|
|
Nothing else than: canvas()->palette().color( QPalette::Normal, QColorGroup::Background);
Definition at line 754 of file qwt_plot.cpp. References canvas(). Referenced by QwtPlotPrintFilter::apply(), and printCanvas(). |
|
|
Nothing else than: canvas()->lineWidth(), left for compatibility only.
Definition at line 776 of file qwt_plot.cpp. References canvas(). |
|
|
Definition at line 679 of file qwt_plot.cpp. References d_canvas, d_scale, QwtScale::endBorderDist(), QwtScale::scaleDraw(), QwtDiMap::setIntRange(), and QwtScale::startBorderDist(). Referenced by closestCurve(), closestMarker(), drawCanvas(), drawCurve(), invTransform(), and transform(). |
|
||||||||||||||||
|
Change specified autoscaling options of an axis.
Definition at line 229 of file qwt_plot_axis.cpp. References autoRefresh(), axisValid(), QwtAutoScale::changeOptions(), and d_as. |
|
|
Remove all curves and markers.
Definition at line 878 of file qwt_plot.cpp. References QwtLegend::clear(), d_curves, d_legend, and d_markers. |
|
||||||||||||||||||||||||||||
|
Find the curve which is closest to a point in the plotting area. Determines the position and index of the closest data point.
Definition at line 50 of file qwt_plot_curve.cpp. References axis(), canvasMap(), curveIterator(), QwtCurve::dataSize(), QwtPlotCurveIterator, qwtSqr(), QwtCurve::x(), QwtPlotMappedItem::xAxis(), QwtCurve::y(), and QwtPlotMappedItem::yAxis(). |
|
||||||||||||||||
|
Find the curve which is closest to a specified point in the plotting area.
Definition at line 30 of file qwt_plot_curve.cpp. |
|
||||||||||||||||
|
Find the marker which is closest to a given point.
Definition at line 27 of file qwt_plot_marker.cpp. References axis(), canvasMap(), QwtMarker::HLine, QwtMarker::lineStyle(), markerIterator(), QwtSymbol::None, QwtPlotMarkerIterator, qwtSqr(), QwtSymbol::style(), QwtMarker::symbol(), QwtMarker::VLine, QwtPlotMappedItem::xAxis(), QwtPlotMarker::xValue(), QwtPlotMappedItem::yAxis(), and QwtPlotMarker::yValue(). |
|
|
Find and return an existing curve.
Definition at line 307 of file qwt_plot_curve.cpp. References d_curves. |
|
|
Find and return an existing curve.
Definition at line 297 of file qwt_plot_curve.cpp. References d_curves. Referenced by drawCanvasItems(), drawCurve(), enableLegend(), insertCurve(), and updateLegendItem(). |
|
|
Return the baseline offset for a specified curve.
Definition at line 567 of file qwt_plot_curve.cpp. References QwtCurve::baseline(), and d_curves. |
|
|
Definition at line 124 of file qwt_plot_curve.cpp. References QwtCurve::brush(), and d_curves. |
|
|
Return an iterator for the plot curves.
Definition at line 16 of file qwt_plot_curve.cpp. References d_curves, and QwtPlotCurveIterator. Referenced by closestCurve(), curveKeys(), drawCanvasItems(), enableLegend(), setLegendDisplayPolicy(), and updateAxes(). |
|
|
Definition at line 162 of file qwt_plot_curve.cpp. References curveIterator(), d_curves, and QwtPlotCurveIterator. |
|
|
Definition at line 133 of file qwt_plot_curve.cpp. References d_curves, and QwtCurve::options(). |
|
|
Definition at line 113 of file qwt_plot_curve.cpp. References d_curves, and QwtCurve::pen(). |
|
|
Definition at line 143 of file qwt_plot_curve.cpp. References d_curves, and QwtCurve::splineSize(). |
|
|
Definition at line 91 of file qwt_plot_curve.cpp. References d_curves, and QwtCurve::style(). |
|
|
the symbol of the curve indexed by key
Definition at line 103 of file qwt_plot_curve.cpp. References d_curves, and QwtCurve::symbol(). |
|
|
Definition at line 153 of file qwt_plot_curve.cpp. References d_curves, and QwtCurve::title(). |
|
|
Return the index of the x axis to which a curve is mapped.
Definition at line 180 of file qwt_plot_curve.cpp. References d_curves, and QwtPlotMappedItem::xAxis(). |
|
|
the index of the y axis to which a curve is mapped
Definition at line 192 of file qwt_plot_curve.cpp. References d_curves, and QwtPlotMappedItem::yAxis(). |
|
|
Redraw the canvas.
Definition at line 582 of file qwt_plot.cpp. References axis(), canvasMap(), d_canvas, drawCanvasItems(), and QwtPlotPrintFilter. Referenced by replot(). |
|
||||||||||||||||||||
|
Redraw the canvas items.
Definition at line 600 of file qwt_plot.cpp. References curve(), curveIterator(), d_grid, QwtMarker::draw(), QwtCurve::draw(), QwtGrid::draw(), QwtPlotItem::enabled(), marker(), markerIterator(), QwtPlotPrintFilter::options(), QwtPlotPrintFilter::PrintGrid, QwtPlotCurveIterator, QwtPlotMarkerIterator, QwtPlotMappedItem::xAxis(), QwtPlotMarker::xValue(), QwtPlotMappedItem::yAxis(), and QwtPlotMarker::yValue(). Referenced by drawCanvas(), and printCanvas(). |
|
|
drawContents
Definition at line 563 of file qwt_plot.cpp. |
|
||||||||||||||||
|
Draw a set of points of a curve. When observing an measurement while it is running, new points have to be added to an existing curve. drawCurve can be used to display them avoiding a complete redraw of the canvas.
Definition at line 656 of file qwt_plot.cpp. References canvas(), canvasMap(), curve(), d_curves, QwtCurve::draw(), QwtPlotMappedItem::xAxis(), and QwtPlotMappedItem::yAxis(). |
|
||||||||||||
|
Enable or disable a specified axis. When an axis is disabled, this only means that it is not visible on the screen. Curves, markers and can be attached to disabled axes, and transformation of screen coordinates into values works as normal. Only xBottom and yLeft are enabled by default.
Definition at line 251 of file qwt_plot_axis.cpp. References axisValid(), d_axisEnabled, and updateLayout(). |
|
|
Enable or disable vertical gridlines.
Definition at line 30 of file qwt_plot_grid.cpp. References d_grid, and QwtGrid::enableX(). |
|
|
Enable or disable vertical gridlines for the minor scale marks.
Definition at line 49 of file qwt_plot_grid.cpp. References d_grid, and QwtGrid::enableXMin(). |
|
|
Enable or disable horizontal gridlines.
Definition at line 40 of file qwt_plot_grid.cpp. References d_grid, and QwtGrid::enableY(). |
|
|
Enable or disable horizontal gridlines for the minor scale marks.
Definition at line 58 of file qwt_plot_grid.cpp. References d_grid, and QwtGrid::enableYMin(). |
|
||||||||||||
|
Enable or disable the legend.
Definition at line 934 of file qwt_plot.cpp. References QwtLegend::clear(), curve(), curveIterator(), d_curves, d_legend, QwtLegend::findItem(), insertLegendItem(), QwtLegend::itemCount(), QwtPlotCurveIterator, and updateLayout(). |
|
|
Enables or disables outline drawing. When the outline feature is enabled, a shape will be drawn in the plotting region when the user presses or drags the mouse. It can be used to implement crosshairs, mark a selected region, etc.
Definition at line 178 of file qwt_plot.cpp. References d_canvas, and QwtPlotCanvas::enableOutline(). |
|
|
Definition at line 120 of file qwt_plot.h. |
|
|
Definition at line 122 of file qwt_plot.h. |
|
|
Definition at line 126 of file qwt_plot.h. |
|
|
Definition at line 124 of file qwt_plot.h. |
|
|
Adds handling of QEvent::LayoutHint.
Definition at line 141 of file qwt_plot.cpp. References updateLayout(). |
|
|
Return the canvas grid.
Definition at line 20 of file qwt_plot_grid.cpp. References d_grid. |
|
|
Return the canvas grid.
Definition at line 14 of file qwt_plot_grid.cpp. References d_grid. |
|
|
Definition at line 148 of file qwt_plot_grid.cpp. References d_grid, and QwtGrid::majPen(). |
|
|
Definition at line 130 of file qwt_plot_grid.cpp. References d_grid, and QwtGrid::minPen(). |
|
|
Definition at line 81 of file qwt_plot_grid.cpp. References d_grid, and QwtPlotMappedItem::xAxis(). |
|
|
Definition at line 103 of file qwt_plot_grid.cpp. References d_grid, and QwtPlotMappedItem::yAxis(). |
|
|
Initialize axes.
Definition at line 111 of file qwt_plot.cpp. References QwtAutoScale::adjust(), axis(), d_as, d_axisEnabled, d_scale, d_sdiv, QwtAutoScale::scaleDiv(), QwtScale::setBaselineDist(), QwtScale::setScaleDiv(), and QwtScale::setTitleFont(). Referenced by initPlot(). |
|
|
Initializes a QwtPlot instance.
Definition at line 64 of file qwt_plot.cpp. References QwtScale::Bottom, d_autoLegend, d_autoReplot, d_canvas, d_curves, d_grid, d_layout, d_lblTitle, d_legend, d_markers, d_scale, d_sdiv, QwtGrid::enableXMin(), QwtGrid::enableYMin(), initAxes(), QwtScale::Left, plotMouseMoved(), plotMousePressed(), plotMouseReleased(), QwtPlotCanvas, QwtScale::Right, QwtPlotMappedItem::setAxis(), QwtGrid::setPen(), QwtGrid::setXDiv(), QwtGrid::setYDiv(), QwtScale::Top, and updateTabOrder(). Referenced by QwtPlot(). |
|
||||||||||||||||
|
Insert a new curve and return a unique key.
Definition at line 276 of file qwt_plot_curve.cpp. References curve(), insertCurve(), QwtPlotMappedItem::setAxis(), and QwtCurve::setTitle(). |
|
|
Insert a curve.
Definition at line 247 of file qwt_plot_curve.cpp. References d_autoLegend, d_curves, QwtSeqDict< QwtPlotCurve >::insert(), insertLegendItem(), newCurveKey(), QwtPlotItem::reparent(), and updateLayout(). Referenced by insertCurve(). |
|
|
Insert a QwtLegendButton for a specified curve.
Definition at line 581 of file qwt_plot_curve.cpp. References QwtLegend::contentsWidget(), d_legend, QwtLegend::insertItem(), lgdClicked(), and updateLegendItem(). Referenced by enableLegend(), and insertCurve(). |
|
||||||||||||
|
This function is a shortcut to insert a horizontal or vertical line marker, dependent on the specified axis.
Definition at line 111 of file qwt_plot_marker.cpp. References QwtMarker::HLine, insertMarker(), QwtMarker::LineStyle, marker(), QwtMarker::NoLine, QwtPlotMappedItem::setAxis(), QwtMarker::setLabel(), QwtMarker::setLabelAlignment(), QwtMarker::setLineStyle(), and QwtMarker::VLine. |
|
||||||||||||||||
|
Insert a new marker.
Definition at line 154 of file qwt_plot_marker.cpp. References insertMarker(), marker(), QwtPlotMappedItem::setAxis(), and QwtMarker::setLabel(). |
|
|
Insert a new marker.
Definition at line 175 of file qwt_plot_marker.cpp. References autoRefresh(), d_markers, QwtSeqDict< QwtPlotMarker >::insert(), newMarkerKey(), and QwtPlotItem::reparent(). Referenced by insertLineMarker(), and insertMarker(). |
|
||||||||||||
|
Transform the x or y coordinate of a position in the drawing region into a value.
Definition at line 268 of file qwt_plot_axis.cpp. References axisValid(), canvasMap(), and QwtDiMap::invTransform(). |
|
|
Definition at line 291 of file qwt_plot.cpp. References d_legend. |
|
|
Definition at line 282 of file qwt_plot.cpp. References d_legend. Referenced by QwtPlotLayout::activate(), QwtPlotLayoutData::init(), and QwtPlotLayout::minimumSizeHint(). |
|
|
A signal which is emitted when the user has clicked on a legend item.
Referenced by lgdClicked(). |
|
|
Definition at line 983 of file qwt_plot.cpp. References d_legend, and QwtLegend::findItem(). |
|
|
Definition at line 1071 of file qwt_plot.cpp. References d_legend. |
|
|
Definition at line 1063 of file qwt_plot.cpp. References d_legend. |
|
|
Definition at line 1034 of file qwt_plot.cpp. References d_layout, and QwtPlotLayout::legendPos(). |
|
|
Called internally when the legend has been clicked on. Emits a legendClicked() signal. Definition at line 867 of file qwt_plot.cpp. References d_legend, QwtLegend::key(), and legendClicked(). Referenced by insertLegendItem(). |
|
|
Definition at line 725 of file qwt_plot.cpp. References d_layout, and QwtPlotLayout::margin(). |
|
|
Find and return an existing marker.
Definition at line 209 of file qwt_plot_marker.cpp. References d_markers. |
|
|
Find and return an existing marker.
Definition at line 198 of file qwt_plot_marker.cpp. References d_markers. Referenced by drawCanvasItems(), insertLineMarker(), and insertMarker(). |
|
|
Definition at line 233 of file qwt_plot_marker.cpp. References d_markers, and QwtMarker::font(). |
|
|
Return an iterator for the plot curves.
Definition at line 15 of file qwt_plot_marker.cpp. References d_markers, and QwtPlotMarkerIterator. Referenced by closestMarker(), drawCanvasItems(), and markerKeys(). |
|
|
Definition at line 217 of file qwt_plot_marker.cpp. References d_markers, markerIterator(), and QwtPlotMarkerIterator. |
|
|
Definition at line 246 of file qwt_plot_marker.cpp. References d_markers, and QwtMarker::label(). |
|
|
Definition at line 259 of file qwt_plot_marker.cpp. References d_markers, and QwtMarker::labelAlignment(). |
|
|
Definition at line 272 of file qwt_plot_marker.cpp. References d_markers, and QwtMarker::labelPen(). |
|
|
Definition at line 286 of file qwt_plot_marker.cpp. References d_markers, and QwtMarker::linePen(). |
|
|
Definition at line 300 of file qwt_plot_marker.cpp. References d_markers, QwtMarker::lineStyle(), QwtMarker::LineStyle, and QwtMarker::NoLine. |
|
||||||||||||||||
|
Get the position of a marker.
Definition at line 316 of file qwt_plot_marker.cpp. References d_markers, QwtPlotMarker::xValue(), and QwtPlotMarker::yValue(). |
|
|
Definition at line 335 of file qwt_plot_marker.cpp. References d_markers, and QwtMarker::symbol(). |
|
|
Definition at line 349 of file qwt_plot_marker.cpp. References d_markers, and QwtPlotMappedItem::xAxis(). |
|
|
Definition at line 364 of file qwt_plot_marker.cpp. References d_markers, and QwtPlotMappedItem::yAxis(). |
|
|
Return a minimum size hint.
Definition at line 361 of file qwt_plot.cpp. References d_layout, and QwtPlotLayout::minimumSizeHint(). Referenced by sizeHint(). |
|
|
Generate a unique key for a new curve.
Definition at line 203 of file qwt_plot_curve.cpp. References d_curves. Referenced by insertCurve(). |
|
|
Generate a key for a new marker.
Definition at line 66 of file qwt_plot_marker.cpp. References d_markers. Referenced by insertMarker(). |
|
|
Definition at line 840 of file qwt_plot.cpp. References d_canvas, and QwtPlotCanvas::outlineEnabled(). |
|
|
Definition at line 848 of file qwt_plot.cpp. References d_canvas, and QwtPlotCanvas::outlinePen(). |
|
|
Definition at line 857 of file qwt_plot.cpp. References d_canvas, QwtPlotCanvas::outlineStyle(), and Qwt::Shape. |
|
|
Definition at line 257 of file qwt_plot.cpp. References d_layout. |
|
|
Definition at line 249 of file qwt_plot.cpp. References d_layout. |
|
|
A signal which is emitted when the mouse is moved in the plot canvas. The coordinates are pixel values referring to the plot canvas. They can be translated using the canvasMaps.
Referenced by initPlot(). |
|
|
A signal which is emitted when the mouse is pressed in the plot canvas. The coordinates are pixel values referring to the plot canvas. They can be translated using the canvasMaps.
Referenced by initPlot(). |
|
|
A signal which is emitted when a mouse button has been released in the plot canvas. The coordinates are pixel values referring to the plot canvas. They can be translated using the canvasMaps.
Referenced by initPlot(). |
|
||||||||||||||||
|
||||||||||||
|
Print the plot to a
Definition at line 37 of file qwt_plot_print.cpp. References qwtMin. |
|
||||||||||||||||||||
|
Print the canvas into a given rectangle.
Definition at line 328 of file qwt_plot_print.cpp. References canvasBackground(), drawCanvasItems(), QwtPainter::drawRect(), QwtPainter::fillRect(), QwtPlotPrintFilter::options(), QwtPlotPrintFilter::PrintBackground, and QwtPainter::setClipRect(). Referenced by print(). |
|
||||||||||||
|
Print the legend into a given rectangle.
Definition at line 188 of file qwt_plot_print.cpp. References QwtDynGridLayout::columnsForWidth(), QwtLegend::contentsWidget(), d_legend, QwtLegend::isEmpty(), QwtDynGridLayout::iterator(), QwtDynGridLayout::layoutItems(), printLegendItem(), and QwtPainter::setClipRect(). Referenced by print(). |
|
||||||||||||||||
|
Definition at line 224 of file qwt_plot_print.cpp. References QwtLegendButton::drawContents(). Referenced by printLegend(). |
|
||||||||||||||||||||||||||||
|
Paint a scale into a given rectangle. Paint the scale into a given rectangle.
Definition at line 248 of file qwt_plot_print.cpp. References QwtScaleDraw::Bottom, d_axisEnabled, d_scale, QwtScaleDraw::draw(), QwtScale::drawTitle(), QwtScaleDraw::Left, QwtScaleDraw::length(), QwtScaleDraw::Orientation, QwtScaleDraw::Right, QwtScale::scaleDraw(), QwtScaleDraw::setGeometry(), QwtScale::title(), QwtScale::titleAlignment(), QwtScale::titleColor(), QwtScale::titleFont(), QwtScaleDraw::Top, QwtScaleDraw::x(), and QwtScaleDraw::y(). Referenced by print(). |
|
||||||||||||
|
Print the title into a given rectangle.
Definition at line 174 of file qwt_plot_print.cpp. References d_lblTitle, and QwtPainter::drawText(). Referenced by print(). |
|
|
Definition at line 90 of file qwt_plot.h. |
|
|
Definition at line 117 of file qwt_plot.h. |
|
|
Definition at line 118 of file qwt_plot.h. |
|
|
remove the curve indexed by key
Definition at line 317 of file qwt_plot_curve.cpp. References autoRefresh(), d_curves, d_legend, QwtLegend::findItem(), and updateLayout(). |
|
|
Remove all curves.
Definition at line 887 of file qwt_plot.cpp. References autoRefresh(), QwtLegend::clear(), d_curves, and d_legend. |
|
|
Remove the marker indexed by key.
Definition at line 378 of file qwt_plot_marker.cpp. References autoRefresh(), and d_markers. |
|
|
Remove all markers.
Definition at line 895 of file qwt_plot.cpp. References autoRefresh(), and d_markers. |
|
|
Redraw the plot If the autoReplot option is not set (which is the default) or if any curves are attached to raw data, the plot has to be refreshed explicitly in order to make changes visible.
Definition at line 383 of file qwt_plot.cpp. References autoReplot(), d_canvas, drawCanvas(), QwtPaintBuffer::painter(), setAutoReplot(), and updateAxes(). Referenced by autoRefresh(). |
|
|
Resize and update internal layout.
Definition at line 370 of file qwt_plot.cpp. References updateLayout(). |
|
|
Set or reset the autoLegend option If the autoLegend option is set, a item will be added to the legend whenever a curve is inserted. The autoLegend option is set to FALSE by default, which means that the user has to call enableLegend.
Definition at line 911 of file qwt_plot.cpp. References d_autoLegend. |
|
|
Set or reset the autoReplot option If the autoReplot option is set, the plot will be updated implicitly by manipulating member functions. Since this may be time-consuming, it is recommended to leave this option switched off and call replot() explicitly if necessary. The autoReplot option is set to FALSE by default, which means that the user has to call replot() in order to make changes visible.
Definition at line 197 of file qwt_plot.cpp. References d_autoReplot. Referenced by replot(). |
|
|
Enable autoscaling for a specified axis. This member function is used to switch back to autoscaling mode after a fixed scale has been set. Autoscaling is enabled by default.
Definition at line 349 of file qwt_plot_axis.cpp. References autoRefresh(), axisValid(), d_as, and QwtAutoScale::setAutoScale(). |
|
||||||||||||
|
Change the font of an axis.
Definition at line 300 of file qwt_plot_axis.cpp. References axisValid(), and d_scale. |
|
||||||||||||
|
Definition at line 413 of file qwt_plot_axis.cpp. References axisValid(), d_scale, and QwtScale::setLabelAlignment(). |
|
||||||||||||||||||||
|
Change the number format for the major scale of a selected axis.
Definition at line 407 of file qwt_plot_axis.cpp. References axisValid(), d_scale, and QwtScale::setLabelFormat(). |
|
||||||||||||
|
Definition at line 419 of file qwt_plot_axis.cpp. References axisValid(), d_scale, and QwtScale::setLabelRotation(). |
|
||||||||||||||||
|
Assign margins to a specified axis.
Definition at line 315 of file qwt_plot_axis.cpp. References autoRefresh(), axisValid(), d_as, and QwtAutoScale::setMargins(). |
|
||||||||||||
|
Set the maximum number of major scale intervals for a specified axis.
Definition at line 470 of file qwt_plot_axis.cpp. References autoRefresh(), axisValid(), d_as, and QwtAutoScale::setMaxMajor(). |
|
||||||||||||
|
Set the maximum number of minor scale intervals for a specified axis.
Definition at line 455 of file qwt_plot_axis.cpp. References autoRefresh(), axisValid(), d_as, and QwtAutoScale::setMaxMinor(). |
|
||||||||||||
|
Reset scale options and set specified options for a specified axis.
Definition at line 330 of file qwt_plot_axis.cpp. References autoRefresh(), axisValid(), d_as, and QwtAutoScale::setOptions(). |
|
||||||||||||
|
Set a reference value for a specified axis. The reference value is used by some autoscaling modes.
Definition at line 487 of file qwt_plot_axis.cpp. References autoRefresh(), axisValid(), d_as, and QwtAutoScale::setReference(). |
|
||||||||||||||||||||
|
Disable autoscaling and specify a fixed scale for a selected axis.
Definition at line 367 of file qwt_plot_axis.cpp. References autoRefresh(), axisValid(), d_as, and QwtAutoScale::setScale(). |
|
||||||||||||
|
Set a scale draw.
Definition at line 390 of file qwt_plot_axis.cpp. References autoRefresh(), axisValid(), d_scale, and QwtScale::setScaleDraw(). |
|
||||||||||||
|
Change the title of a specified axis.
Definition at line 501 of file qwt_plot_axis.cpp. References axisValid(), d_scale, and QwtScale::setTitle(). |
|
||||||||||||
|
Change the title alignment of a selected axis.
Definition at line 442 of file qwt_plot_axis.cpp. References axisValid(), d_scale, and QwtScale::setTitleAlignment(). |
|
||||||||||||
|
Change the title font of a selected axis.
Definition at line 430 of file qwt_plot_axis.cpp. References axisValid(), d_scale, and QwtScale::setTitleFont(). |
|
|
Change the background of the plotting area. Sets c to QColorGroup::Background of all colorgroups of the palette of the canvas. Using canvas()->setPalette() is a more powerful way to set these colors.
Definition at line 738 of file qwt_plot.cpp. References canvas(), and d_canvas. Referenced by QwtPlotPrintFilter::apply(), and QwtPlotPrintFilter::reset(). |
|
|
Change the border width of the plotting area Nothing else than canvas()->setLineWidth(w), left for compatibility only.
Definition at line 766 of file qwt_plot.cpp. References canvas(). |
|
||||||||||||
|
Set the baseline for a specified curve. The baseline is needed for the curve style QwtCurve::Sticks,
Definition at line 550 of file qwt_plot_curve.cpp. References d_curves, and QwtCurve::setBaseline(). |
|
||||||||||||
|
Assign a brush to a curve indexed by key The brush will be used to fill the area between the curve and the baseline.
Definition at line 362 of file qwt_plot_curve.cpp. References d_curves, QwtCurve::setBrush(), and updateLegendItem(). |
|
||||||||||||||||||||
|
Assign x and y values to a curve. In opposite to QwtPlot::setCurveRawData, this function makes a 'deep copy' of the data.
Definition at line 446 of file qwt_plot_curve.cpp. References d_curves, and QwtCurve::setData(). |
|
||||||||||||
|
Set the style options of a curve indexed by key.
Definition at line 484 of file qwt_plot_curve.cpp. References d_curves, and QwtCurve::setOptions(). |
|
||||||||||||
|
Assign a pen to a curve indexed by key.
Definition at line 340 of file qwt_plot_curve.cpp. References d_curves, QwtCurve::setPen(), and updateLegendItem(). |
|
||||||||||||||||||||
|
Attach a curve to the specified arrays without copying. This function does not copy the values of the specified arrays. Removing the curve will not delete the data.
Definition at line 407 of file qwt_plot_curve.cpp. References d_curves, and QwtCurve::setRawData(). |
|
||||||||||||
|
Set the number of interpolated points of a curve indexed by key.
Definition at line 500 of file qwt_plot_curve.cpp. References d_curves, and QwtCurve::setSplineSize(). |
|
||||||||||||||||
|
Change a curve's style.
Definition at line 465 of file qwt_plot_curve.cpp. References d_curves, QwtCurve::setStyle(), and updateLegendItem(). |
|
||||||||||||
|
Assign a symbol to a curve indexed by key.
Definition at line 380 of file qwt_plot_curve.cpp. References d_curves, QwtCurve::setSymbol(), and updateLegendItem(). |
|
||||||||||||
|
Definition at line 423 of file qwt_plot_curve.cpp. References d_curves, QwtCurve::setTitle(), and updateLegendItem(). |
|
||||||||||||
|
Attach a curve to an x axis.
Definition at line 516 of file qwt_plot_curve.cpp. References d_curves, and QwtPlotMappedItem::setXAxis(). |
|
||||||||||||
|
Attach a curve to an y axis.
Definition at line 531 of file qwt_plot_curve.cpp. References d_curves, and QwtPlotMappedItem::setYAxis(). |
|
|
Change the pen for the major gridlines.
Definition at line 139 of file qwt_plot_grid.cpp. References d_grid, and QwtGrid::setMajPen(). |
|
|
Change the pen for the minor gridlines.
Definition at line 121 of file qwt_plot_grid.cpp. References d_grid, and QwtGrid::setMinPen(). |
|
|
Change the grid's pens for major and minor gridlines.
Definition at line 112 of file qwt_plot_grid.cpp. References d_grid, and QwtGrid::setPen(). |
|
|
Attach the grid to an x axis.
Definition at line 68 of file qwt_plot_grid.cpp. References d_grid, d_sdiv, QwtPlotMappedItem::setXAxis(), and QwtGrid::setXDiv(). |
|
|
Attach the grid to an y axis.
Definition at line 90 of file qwt_plot_grid.cpp. References d_grid, d_sdiv, QwtPlotMappedItem::setYAxis(), and QwtGrid::setYDiv(). |
|
||||||||||||
|
Set the identifier display policy of the legend.
Definition at line 1082 of file qwt_plot.cpp. References curveIterator(), d_legend, QwtPlotCurveIterator, QwtLegend::setDisplayPolicy(), and updateLegendItem(). |
|
|
Change the font of the legend items.
Definition at line 1043 of file qwt_plot.cpp. References d_legend, and updateLayout(). |
|
|
Change the legend's frame style.
Definition at line 1054 of file qwt_plot.cpp. References d_legend, and updateLayout(). |
|
||||||||||||
|
Specify the position of the legend within the widget. If the position legend is
Definition at line 1006 of file qwt_plot.cpp. References Qwt::Bottom, QwtLegend::contentsWidget(), d_layout, d_legend, QwtPlotLayout::legendPos(), QwtPlotLayout::setLegendPos(), QwtDynGridLayout::setMaxCols(), Qwt::Top, updateLayout(), and updateTabOrder(). |
|
|
Change the margin of the plot. The margin is the space around all components.
Definition at line 709 of file qwt_plot.cpp. References d_layout, QwtPlotLayout::margin(), QwtPlotLayout::setMargin(), and updateLayout(). |
|
||||||||||||
|
Specify a font for a marker's label.
Definition at line 430 of file qwt_plot_marker.cpp. References d_markers, and QwtMarker::setFont(). |
|
||||||||||||
|
Assign a label to a marker.
Definition at line 587 of file qwt_plot_marker.cpp. References d_markers, and QwtMarker::setLabel(). |
|
||||||||||||
|
Specify the alignment of a marker's label. The alignment determines the position of the label relative to the marker's position. The default setting is AlignCenter.
Definition at line 610 of file qwt_plot_marker.cpp. References d_markers, and QwtMarker::setLabelAlignment(). |
|
||||||||||||
|
Specify a pen for a marker's label.
Definition at line 628 of file qwt_plot_marker.cpp. References d_markers, and QwtMarker::setLabelPen(). |
|
||||||||||||
|
Specify a pen for a marker's line.
Definition at line 449 of file qwt_plot_marker.cpp. References d_markers, and QwtMarker::setLinePen(). |
|
||||||||||||
|
Specify the line style for a marker.
Definition at line 471 of file qwt_plot_marker.cpp. References d_markers, and QwtMarker::setLineStyle(). |
|
||||||||||||
|
Specify a pen for a marker's label.
Definition at line 489 of file qwt_plot_marker.cpp. References d_markers, QwtMarker::setLabelPen(), and QwtMarker::setLinePen(). |
|
||||||||||||||||
|
Change the position of a marker.
Definition at line 511 of file qwt_plot_marker.cpp. References d_markers, QwtPlotMarker::setXValue(), and QwtPlotMarker::setYValue(). |
|
||||||||||||
|
Assign a symbol to a specified marker.
Definition at line 569 of file qwt_plot_marker.cpp. References d_markers, and QwtMarker::setSymbol(). |
|
||||||||||||
|
Attach the marker to an x axis.
Definition at line 394 of file qwt_plot_marker.cpp. References d_markers, and QwtPlotMappedItem::setXAxis(). |
|
||||||||||||
|
Specify the X position of a marker.
Definition at line 531 of file qwt_plot_marker.cpp. References d_markers, and QwtPlotMarker::setXValue(). |
|
||||||||||||
|
Attach the marker to a Y axis.
Definition at line 412 of file qwt_plot_marker.cpp. References d_markers, and QwtPlotMappedItem::setYAxis(). |
|
||||||||||||
|
Specify the Y position of the marker.
Definition at line 550 of file qwt_plot_marker.cpp. References d_markers, and QwtPlotMarker::setYValue(). |
|
|
Specify a pen for the outline.
Definition at line 822 of file qwt_plot.cpp. References d_canvas, and QwtPlotCanvas::setOutlinePen(). |
|
|
Specify the style of the outline. The outline style determines which kind of shape is drawn in the plotting region when the user presses a mouse button or drags the mouse. Valid Styles are:
Definition at line 811 of file qwt_plot.cpp. References d_canvas, and QwtPlotCanvas::setOutlineStyle(). |
|
|
Change the plot's title.
Definition at line 214 of file qwt_plot.cpp. References d_lblTitle. |
|
|
Change the title font.
Definition at line 233 of file qwt_plot.cpp. References d_lblTitle. |
|
|
Return sizeHint
Definition at line 327 of file qwt_plot.cpp. References axis(), d_axisEnabled, d_scale, QwtScaleDiv::majCnt(), minimumSizeHint(), QwtScale::minimumSizeHint(), QwtScaleDraw::scaleDiv(), and QwtScale::scaleDraw(). |
|
|
Definition at line 314 of file qwt_plot.cpp. |
|
|
Definition at line 223 of file qwt_plot.cpp. References d_lblTitle. |
|
|
Definition at line 241 of file qwt_plot.cpp. References d_lblTitle. |
|
|
Definition at line 273 of file qwt_plot.cpp. References d_lblTitle. |
|
|
Definition at line 265 of file qwt_plot.cpp. References d_lblTitle. Referenced by QwtPlotLayoutData::init(), and QwtPlotLayout::minimumSizeHint(). |
|
||||||||||||
|
Transform a value into a coordinate in the plotting region.
Definition at line 284 of file qwt_plot_axis.cpp. References axisValid(), canvasMap(), and QwtDiMap::transform(). |
|
|
Rebuild the scales and maps.
Definition at line 457 of file qwt_plot.cpp. References QwtAutoScale::adjust(), QwtAutoScale::autoScale(), axis(), curveIterator(), d_as, d_grid, d_scale, d_sdiv, QwtCurve::dataSize(), QwtCurve::maxXValue(), QwtCurve::maxYValue(), QwtScale::minBorderDist(), QwtCurve::minXValue(), QwtCurve::minYValue(), QwtPlotCurveIterator, QwtAutoScale::reset(), QwtAutoScale::scaleDiv(), QwtScale::setBorderDist(), QwtScale::setScaleDiv(), QwtGrid::setXDiv(), QwtGrid::setYDiv(), QwtPlotMappedItem::xAxis(), and QwtPlotMappedItem::yAxis(). Referenced by replot(). |
|
|
Adjust plot content to its current size.
Definition at line 403 of file qwt_plot.cpp. References QwtPlotLayout::activate(), axis(), QwtPlotLayout::canvasRect(), d_axisEnabled, d_canvas, d_layout, d_lblTitle, d_legend, d_scale, QwtLegend::itemCount(), QwtPlotLayout::legendRect(), QwtPlotLayout::scaleRect(), and QwtPlotLayout::titleRect(). Referenced by enableAxis(), enableLegend(), event(), insertCurve(), removeCurve(), resizeEvent(), setLegendFont(), setLegendFrameStyle(), setLegendPos(), and setMargin(). |
|
|
Update a QwtLegendButton for a specified curve.
Definition at line 597 of file qwt_plot_curve.cpp. References QwtLegend::Auto, curve(), d_curves, d_legend, QwtLegend::displayPolicy(), QwtLegend::findItem(), QwtLegend::Fixed, QwtLegend::identifierMode(), QwtCurve::NoCurve, QwtSymbol::None, QwtCurve::pen(), QwtLegendButton::setCurvePen(), QwtLegendButton::setIdentifierMode(), QwtLegendButton::setSymbol(), QwtLegendButton::ShowLine, QwtLegendButton::ShowSymbol, QwtLegendButton::ShowText, QwtSymbol::style(), QwtCurve::style(), QwtCurve::symbol(), and QwtCurve::title(). Referenced by insertLegendItem(), setCurveBrush(), setCurvePen(), setCurveStyle(), setCurveSymbol(), setCurveTitle(), and setLegendDisplayPolicy(). |
|
|
Update the focus tab order.
Definition at line 516 of file qwt_plot.cpp. References Qwt::Bottom, QwtLegend::contentsWidget(), d_canvas, d_layout, d_legend, QwtPlotLayout::legendPos(), and Qwt::Right. Referenced by initPlot(), and setLegendPos(). |
|
|
Definition at line 115 of file qwt_plot.h. |
|
|
Definition at line 116 of file qwt_plot.h. |
|
|
Definition at line 121 of file qwt_plot.h. |
|
|
Definition at line 123 of file qwt_plot.h. |
|
|
Definition at line 127 of file qwt_plot.h. |
|
|
Definition at line 125 of file qwt_plot.h. |
|
|
Definition at line 83 of file qwt_plot.h. Referenced by initPlot(). |
|
|
Definition at line 82 of file qwt_plot.h. |
|
|
Definition at line 84 of file qwt_plot.h. Referenced by drawCanvas(). |
|
|
Definition at line 464 of file qwt_plot.h. Referenced by axisAutoScale(), axisMargins(), axisMaxMajor(), axisMaxMinor(), axisOptions(), axisReference(), axisScale(), changeAxisOptions(), initAxes(), setAxisAutoScale(), setAxisMargins(), setAxisMaxMajor(), setAxisMaxMinor(), setAxisOptions(), setAxisReference(), setAxisScale(), and updateAxes(). |
|
|
Definition at line 472 of file qwt_plot.h. Referenced by autoLegend(), initPlot(), insertCurve(), and setAutoLegend(). |
|
|
Definition at line 471 of file qwt_plot.h. Referenced by autoRefresh(), autoReplot(), initPlot(), and setAutoReplot(). |
|
|
Definition at line 462 of file qwt_plot.h. Referenced by axisEnabled(), enableAxis(), initAxes(), printScale(), sizeHint(), and updateLayout(). |
|
|
Definition at line 458 of file qwt_plot.h. Referenced by canvas(), canvasMap(), drawCanvas(), enableOutline(), initPlot(), outlineEnabled(), outlinePen(), outlineStyle(), replot(), setCanvasBackground(), setOutlinePen(), setOutlineStyle(), updateLayout(), and updateTabOrder(). |
|
|
Definition at line 467 of file qwt_plot.h. Referenced by QwtPlotPrintFilter::apply(), clear(), curve(), curveBaseline(), curveBrush(), curveIterator(), curveKeys(), curveOptions(), curvePen(), curveSplineSize(), curveStyle(), curveSymbol(), curveTitle(), curveXAxis(), curveYAxis(), drawCurve(), enableLegend(), initPlot(), insertCurve(), newCurveKey(), removeCurve(), removeCurves(), QwtPlotPrintFilter::reset(), setCurveBaseline(), setCurveBrush(), setCurveData(), setCurveOptions(), setCurvePen(), setCurveRawData(), setCurveSplineSize(), setCurveStyle(), setCurveSymbol(), setCurveTitle(), setCurveXAxis(), setCurveYAxis(), updateLegendItem(), and ~QwtPlot(). |
|
|
Definition at line 469 of file qwt_plot.h. Referenced by QwtPlotPrintFilter::apply(), drawCanvasItems(), enableGridX(), enableGridXMin(), enableGridY(), enableGridYMin(), grid(), gridMajPen(), gridMinPen(), gridXAxis(), gridYAxis(), initPlot(), QwtPlotPrintFilter::reset(), setGridMajPen(), setGridMinPen(), setGridPen(), setGridXAxis(), setGridYAxis(), updateAxes(), and ~QwtPlot(). |
|
|
Definition at line 460 of file qwt_plot.h. Referenced by initPlot(), legendPos(), margin(), minimumSizeHint(), plotLayout(), print(), setLegendPos(), setMargin(), updateLayout(), updateTabOrder(), and ~QwtPlot(). |
|
|
Definition at line 457 of file qwt_plot.h. Referenced by QwtPlotPrintFilter::apply(), initPlot(), print(), printTitle(), QwtPlotPrintFilter::reset(), setTitle(), setTitleFont(), title(), titleFont(), titleLabel(), and updateLayout(). |
|
|
Definition at line 459 of file qwt_plot.h. Referenced by QwtPlotPrintFilter::apply(), clear(), enableLegend(), initPlot(), insertLegendItem(), legend(), legendEnabled(), legendFont(), legendFrameStyle(), lgdClicked(), print(), printLegend(), removeCurve(), removeCurves(), QwtPlotPrintFilter::reset(), setLegendDisplayPolicy(), setLegendFont(), setLegendFrameStyle(), setLegendPos(), updateLayout(), updateLegendItem(), and updateTabOrder(). |
|
|
Definition at line 468 of file qwt_plot.h. Referenced by QwtPlotPrintFilter::apply(), clear(), initPlot(), insertMarker(), marker(), markerFont(), markerIterator(), markerKeys(), markerLabel(), markerLabelAlign(), markerLabelPen(), markerLinePen(), markerLineStyle(), markerPos(), markerSymbol(), markerXAxis(), markerYAxis(), newMarkerKey(), removeMarker(), removeMarkers(), QwtPlotPrintFilter::reset(), setMarkerFont(), setMarkerLabel(), setMarkerLabelAlign(), setMarkerLabelPen(), setMarkerLinePen(), setMarkerLineStyle(), setMarkerPen(), setMarkerPos(), setMarkerSymbol(), setMarkerXAxis(), setMarkerXPos(), setMarkerYAxis(), setMarkerYPos(), and ~QwtPlot(). |
|
|
Definition at line 463 of file qwt_plot.h. Referenced by QwtPlotPrintFilter::apply(), axis(), axisFont(), axisLabelFormat(), axisScaleDraw(), axisTitle(), axisTitleAlignment(), axisTitleFont(), canvasMap(), initAxes(), initPlot(), print(), printScale(), QwtPlotPrintFilter::reset(), setAxisFont(), setAxisLabelAlignment(), setAxisLabelFormat(), setAxisLabelRotation(), setAxisScaleDraw(), setAxisTitle(), setAxisTitleAlignment(), setAxisTitleFont(), sizeHint(), updateAxes(), and updateLayout(). |
|
|
Definition at line 465 of file qwt_plot.h. Referenced by initAxes(), initPlot(), print(), setGridXAxis(), setGridYAxis(), and updateAxes(). |
|
|
Definition at line 474 of file qwt_plot.h. |
|
|
Definition at line 475 of file qwt_plot.h. |
1.3.2