|
enum | LineStyle { NoLine,
HLine,
VLine,
Cross
} |
|
enum | RttiValues {
Rtti_PlotItem = 0,
Rtti_PlotGrid,
Rtti_PlotScale,
Rtti_PlotLegend,
Rtti_PlotMarker,
Rtti_PlotCurve,
Rtti_PlotSpectroCurve,
Rtti_PlotIntervalCurve,
Rtti_PlotHistogram,
Rtti_PlotSpectrogram,
Rtti_PlotSVG,
Rtti_PlotTradingCurve,
Rtti_PlotBarChart,
Rtti_PlotMultiBarChart,
Rtti_PlotShape,
Rtti_PlotTextLabel,
Rtti_PlotZone,
Rtti_PlotUserItem = 1000
} |
| Runtime type information. More...
|
|
enum | ItemAttribute { Legend = 0x01,
AutoScale = 0x02,
Margins = 0x04
} |
| Plot Item Attributes. More...
|
|
enum | ItemInterest { ScaleInterest = 0x01,
LegendInterest = 0x02
} |
| Plot Item Interests. More...
|
|
enum | RenderHint { RenderAntialiased = 0x1
} |
| Render hints. More...
|
|
typedef QFlags< ItemAttribute > | ItemAttributes |
| Plot Item Attributes.
|
|
typedef QFlags< ItemInterest > | ItemInterests |
| Plot Item Interests.
|
|
typedef QFlags< RenderHint > | RenderHints |
| Render hints.
|
|
|
| QwtPlotMarker (const QString &title=QString::null) |
| 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 |
|
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 st) |
| Set the line style. More...
|
|
LineStyle | lineStyle () const |
|
void | setLinePen (const QColor &, qreal width=0.0, Qt::PenStyle=Qt::SolidLine) |
|
void | setLinePen (const QPen &p) |
|
const QPen & | linePen () const |
|
void | setSymbol (const QwtSymbol *) |
| Assign a symbol. More...
|
|
const QwtSymbol * | symbol () const |
|
void | setLabel (const QwtText &) |
| Set the label. More...
|
|
QwtText | label () const |
|
void | setLabelAlignment (Qt::Alignment) |
| Set the alignment of the label. More...
|
|
Qt::Alignment | labelAlignment () const |
|
void | setLabelOrientation (Qt::Orientation) |
| Set the orientation of the label. More...
|
|
Qt::Orientation | labelOrientation () const |
|
void | setSpacing (int) |
| Set the spacing. More...
|
|
int | spacing () const |
|
virtual void | draw (QPainter *p, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &) const |
|
virtual QRectF | boundingRect () const |
|
virtual QwtGraphic | legendIcon (int index, const QSizeF &) const |
|
| QwtPlotItem (const QwtText &title=QwtText()) |
|
virtual | ~QwtPlotItem () |
| Destroy the QwtPlotItem.
|
|
void | attach (QwtPlot *plot) |
| Attach the item to a plot. More...
|
|
void | detach () |
| This method detaches a QwtPlotItem from any QwtPlot it has been associated with. More...
|
|
QwtPlot * | plot () const |
| Return attached plot.
|
|
void | setTitle (const QString &title) |
|
void | setTitle (const QwtText &title) |
|
const QwtText & | title () const |
|
void | setItemAttribute (ItemAttribute, bool on=true) |
|
bool | testItemAttribute (ItemAttribute) const |
|
void | setItemInterest (ItemInterest, bool on=true) |
|
bool | testItemInterest (ItemInterest) const |
|
void | setRenderHint (RenderHint, bool on=true) |
|
bool | testRenderHint (RenderHint) const |
|
void | setRenderThreadCount (uint numThreads) |
|
uint | renderThreadCount () const |
|
void | setLegendIconSize (const QSize &) |
|
QSize | legendIconSize () const |
|
double | z () const |
|
void | setZ (double z) |
| Set the z value. More...
|
|
void | show () |
| Show the item.
|
|
void | hide () |
| Hide the item.
|
|
virtual void | setVisible (bool) |
|
bool | isVisible () const |
|
void | setAxes (int xAxis, int yAxis) |
|
void | setXAxis (int axis) |
|
int | xAxis () const |
| Return xAxis.
|
|
void | setYAxis (int axis) |
|
int | yAxis () const |
| Return yAxis.
|
|
virtual void | itemChanged () |
|
virtual void | legendChanged () |
|
virtual void | getCanvasMarginHint (const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &canvasSize, double &left, double &top, double &right, double &bottom) const |
| Calculate a hint for the canvas margin. More...
|
|
virtual void | updateScaleDiv (const QwtScaleDiv &, const QwtScaleDiv &) |
| Update the item to changes of the axes scale division. More...
|
|
virtual void | updateLegend (const QwtPlotItem *, const QList< QwtLegendData > &) |
| Update the item to changes of the legend info. More...
|
|
QRectF | scaleRect (const QwtScaleMap &, const QwtScaleMap &) const |
| Calculate the bounding scale rectangle of 2 maps. More...
|
|
QRectF | paintRect (const QwtScaleMap &, const QwtScaleMap &) const |
| Calculate the bounding paint rectangle of 2 maps. More...
|
|
virtual QList< QwtLegendData > | legendData () const |
| Return all information, that is needed to represent the item on the legend. More...
|
|
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 )