|
|
| QwtPlotMarker () |
| | Sets alignment to Qt::AlignCenter, and style to QwtPlotMarker::NoLine.
|
| |
|
| QwtPlotMarker (const QString &title) |
| | Sets alignment to Qt::AlignCenter, and style to QwtPlotMarker::NoLine.
|
| |
|
| QwtPlotMarker (const QwtText &title) |
| | Sets alignment to Qt::AlignCenter, and style to QwtPlotMarker::NoLine.
|
| |
|
virtual | ~QwtPlotMarker () |
| | Destructor.
|
| |
| virtual int | rtti () const QWT_OVERRIDE |
| |
|
double | xValue () const |
| | Return x Value.
|
| |
|
double | yValue () const |
| | Return y Value.
|
| |
|
QPointF | value () const |
| | Return Value.
|
| |
|
void | setXValue (double) |
| | Set X Value.
|
| |
|
void | setYValue (double) |
| | Set Y Value.
|
| |
|
void | setValue (double, double) |
| | Set Value.
|
| |
|
void | setValue (const QPointF &) |
| | Set Value.
|
| |
| void | setLineStyle (LineStyle) |
| | Set the line style.
|
| |
| LineStyle | lineStyle () const |
| |
| void | setLinePen (const QColor &, qreal width=0.0, Qt::PenStyle=Qt::SolidLine) |
| | Build and assign a line pen.
|
| |
| void | setLinePen (const QPen &) |
| | Specify a pen for the line.
|
| |
| const QPen & | linePen () const |
| |
| void | setSymbol (const QwtSymbol *) |
| | Assign a symbol.
|
| |
| const QwtSymbol * | symbol () const |
| |
| void | setLabel (const QwtText &) |
| | Set the label.
|
| |
| QwtText | label () const |
| |
| void | setLabelAlignment (Qt::Alignment) |
| | Set the alignment of the label.
|
| |
| Qt::Alignment | labelAlignment () const |
| |
| void | setLabelOrientation (Qt::Orientation) |
| | Set the orientation of the label.
|
| |
| Qt::Orientation | labelOrientation () const |
| |
| void | setSpacing (int) |
| | Set the spacing.
|
| |
| int | spacing () const |
| |
| virtual void | draw (QPainter *, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &) const QWT_OVERRIDE |
| | Draw the marker.
|
| |
| virtual QRectF | boundingRect () const QWT_OVERRIDE |
| |
| virtual QwtGraphic | legendIcon (int index, const QSizeF &) const QWT_OVERRIDE |
| |
|
| 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 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 | updateScaleDiv (const QwtScaleDiv &, const QwtScaleDiv &) |
| | Update the item to changes of the axes scale division.
|
| |
| 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.
|
| |
A class for drawing markers.
A marker can be a horizontal line, a vertical line, a symbol, a label or any combination of them, which can be drawn around a center point inside a bounding rectangle.
The setSymbol() member assigns a symbol to the marker. The symbol is drawn at the specified point.
With setLabel(), a label can be assigned to the marker. The setLabelAlignment() member specifies where the label is drawn. All the Align*-constants in Qt::AlignmentFlags (see Qt documentation) are valid. The interpretation of the alignment depends on the marker's line style. The alignment refers to the center point of the marker, which means, for example, that the label would be printed left above the center point if the alignment was set to Qt::AlignLeft | Qt::AlignTop.
- Note
- QwtPlotTextLabel is intended to align a text label according to the geometry of canvas ( unrelated to plot coordinates )