1
.TH "QwtPlotMarker" 3 "1 May 2008" "Version 5.1.0" "Qwt User's Guide" \" -*- nroff -*-
9
Inherits \fBQwtPlotItem\fP.
11
.SH "Detailed Description"
13
A class for drawing markers.
15
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.
17
The \fBQwtPlotMarker::setSymbol()\fP member assigns a symbol to the marker. The symbol is drawn at the specified point.
19
With \fBQwtPlotMarker::setLabel()\fP, a label can be assigned to the marker. The \fBQwtPlotMarker::setLabelAlignment()\fP 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 AlignLeft|AlignTop.
21
Definition at line 45 of file qwt_plot_marker.h.
26
.RI "enum \fBLineStyle\fP { \fBNoLine\fP, \fBHLine\fP, \fBVLine\fP, \fBCross\fP }"
29
.SS "Public Member Functions"
33
.RI "\fBQwtPlotMarker\fP ()"
36
.RI "virtual \fB~QwtPlotMarker\fP ()"
39
.RI "virtual int \fBrtti\fP () const"
42
.RI "double \fBxValue\fP () const"
45
.RI "double \fByValue\fP () const"
48
.RI "\fBQwtDoublePoint\fP \fBvalue\fP () const"
51
.RI "void \fBsetXValue\fP (double)"
54
.RI "void \fBsetYValue\fP (double)"
57
.RI "void \fBsetValue\fP (double, double)"
60
.RI "void \fBsetValue\fP (const \fBQwtDoublePoint\fP &)"
63
.RI "void \fBsetLineStyle\fP (\fBLineStyle\fP st)"
66
.RI "\fBLineStyle\fP \fBlineStyle\fP () const"
69
.RI "void \fBsetLinePen\fP (const QPen &p)"
72
.RI "const QPen & \fBlinePen\fP () const"
75
.RI "void \fBsetSymbol\fP (const \fBQwtSymbol\fP &s)"
78
.RI "const \fBQwtSymbol\fP & \fBsymbol\fP () const"
81
.RI "void \fBsetLabel\fP (const \fBQwtText\fP &)"
84
.RI "\fBQwtText\fP \fBlabel\fP () const"
87
.RI "void \fBsetLabelAlignment\fP (Qt::Alignment)"
90
.RI "Qt::Alignment \fBlabelAlignment\fP () const"
93
.RI "virtual void \fBdraw\fP (QPainter *p, const \fBQwtScaleMap\fP &xMap, const \fBQwtScaleMap\fP &yMap, const QRect &) const"
96
.RI "virtual \fBQwtDoubleRect\fP \fBboundingRect\fP () const"
99
.SH "Member Enumeration Documentation"
101
.SS "enum \fBQwtPlotMarker::LineStyle\fP"
107
\fBQwtPlotMarker::setLineStyle\fP, \fBQwtPlotMarker::lineStyle\fP
112
Definition at line 53 of file qwt_plot_marker.h.
113
.SH "Constructor & Destructor Documentation"
115
.SS "QwtPlotMarker::QwtPlotMarker ()\fC [explicit]\fP"
117
Sets alignment to Qt::AlignCenter, and style to NoLine.
119
Definition at line 54 of file qwt_plot_marker.cpp.
121
References QwtPlotItem::setZ().
122
.SS "QwtPlotMarker::~QwtPlotMarker ()\fC [virtual]\fP"
126
Definition at line 62 of file qwt_plot_marker.cpp.
127
.SH "Member Function Documentation"
129
.SS "int QwtPlotMarker::rtti () const\fC [virtual]\fP"
133
QwtPlotItem::Rtti_PlotMarker
138
Reimplemented from \fBQwtPlotItem\fP.
140
Definition at line 68 of file qwt_plot_marker.cpp.
141
.SS "double QwtPlotMarker::xValue () const"
145
Definition at line 80 of file qwt_plot_marker.cpp.
146
.SS "double QwtPlotMarker::yValue () const"
150
Definition at line 86 of file qwt_plot_marker.cpp.
151
.SS "\fBQwtDoublePoint\fP QwtPlotMarker::value () const"
155
Definition at line 74 of file qwt_plot_marker.cpp.
156
.SS "void QwtPlotMarker::setXValue (double)"
160
Definition at line 109 of file qwt_plot_marker.cpp.
162
References setValue().
163
.SS "void QwtPlotMarker::setYValue (double)"
167
Definition at line 115 of file qwt_plot_marker.cpp.
169
References setValue().
170
.SS "void QwtPlotMarker::setValue (double, double)"
174
Definition at line 98 of file qwt_plot_marker.cpp.
176
References QwtPlotItem::itemChanged().
178
Referenced by setValue(), setXValue(), and setYValue().
179
.SS "void QwtPlotMarker::setValue (const \fBQwtDoublePoint\fP &)"
183
Definition at line 92 of file qwt_plot_marker.cpp.
185
References setValue().
186
.SS "void QwtPlotMarker::setLineStyle (\fBQwtPlotMarker::LineStyle\fP st)"
192
\fIst\fP Line style. Can be one of QwtPlotMarker::NoLine, HLine, VLine or Cross
202
Definition at line 236 of file qwt_plot_marker.cpp.
204
References QwtPlotItem::itemChanged().
205
.SS "\fBQwtPlotMarker::LineStyle\fP QwtPlotMarker::lineStyle () const"
214
For a description of line styles, see \fBQwtPlotMarker::setLineStyle()\fP
219
Definition at line 249 of file qwt_plot_marker.cpp.
220
.SS "void QwtPlotMarker::setLinePen (const QPen & p)"
222
Specify a pen for the line.
236
Definition at line 340 of file qwt_plot_marker.cpp.
238
References QwtPlotItem::itemChanged().
240
Referenced by QwtPlotPrintFilter::apply().
241
.SS "const QPen & QwtPlotMarker::linePen () const"
255
Definition at line 353 of file qwt_plot_marker.cpp.
257
Referenced by QwtPlotPrintFilter::apply().
258
.SS "void QwtPlotMarker::setSymbol (const \fBQwtSymbol\fP & s)"
274
Definition at line 259 of file qwt_plot_marker.cpp.
276
References QwtSymbol::clone(), and QwtPlotItem::itemChanged().
278
Referenced by QwtPlotPrintFilter::apply().
279
.SS "const \fBQwtSymbol\fP & QwtPlotMarker::symbol () const"
288
\fBsetSymbol()\fP, \fBQwtSymbol\fP
293
Definition at line 270 of file qwt_plot_marker.cpp.
295
Referenced by QwtPlotPrintFilter::apply().
296
.SS "void QwtPlotMarker::setLabel (const \fBQwtText\fP & label)"
302
\fIlabel\fP label text
312
Definition at line 280 of file qwt_plot_marker.cpp.
314
References QwtPlotItem::itemChanged(), and label().
316
Referenced by QwtPlotPrintFilter::apply().
317
.SS "\fBQwtText\fP QwtPlotMarker::label () const"
331
Definition at line 293 of file qwt_plot_marker.cpp.
333
Referenced by QwtPlotPrintFilter::apply(), and setLabel().
334
.SS "void QwtPlotMarker::setLabelAlignment (Qt::Alignment align)"
336
Set the alignment of the label.
338
The alignment determines where the label is drawn relative to the marker's position.
342
\fIalign\fP Alignment. A combination of AlignTop, AlignBottom, AlignLeft, AlignRight, AlignCenter, AlgnHCenter, AlignVCenter.
347
\fBlabelAlignment()\fP
352
Definition at line 312 of file qwt_plot_marker.cpp.
353
.SS "Qt::Alignment QwtPlotMarker::labelAlignment () const"
362
\fBsetLabelAlignment()\fP
367
Definition at line 329 of file qwt_plot_marker.cpp.
368
.SS "void QwtPlotMarker::draw (QPainter * p, const \fBQwtScaleMap\fP & xMap, const \fBQwtScaleMap\fP & yMap, const QRect & r) const\fC [virtual]\fP"
376
\fIxMap\fP x Scale Map
378
\fIyMap\fP y Scale Map
380
\fIr\fP Bounding rect, where to paint
385
Implements \fBQwtPlotItem\fP.
387
Definition at line 127 of file qwt_plot_marker.cpp.
389
References QwtPainter::drawLine(), QwtPainter::metricsMap(), QwtMetricsMap::screenToLayoutX(), QwtMetricsMap::screenToLayoutY(), and QwtScaleMap::transform().
390
.SS "\fBQwtDoubleRect\fP QwtPlotMarker::boundingRect () const\fC [virtual]\fP"
394
An invalid bounding rect: QwtDoubleRect(1.0, 1.0, -2.0, -2.0)
399
Reimplemented from \fBQwtPlotItem\fP.
401
Definition at line 358 of file qwt_plot_marker.cpp.
405
Generated automatically by Doxygen for Qwt User's Guide from the source code.