1
.TH "QwtPlotMarker" 3 "26 Feb 2007" "Version 5.0.1" "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 "QwtDoublePoint \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 QwtDoublePoint &)"
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 QwtDoubleRect \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 48 of file qwt_plot_marker.cpp.
121
References QwtPlotItem::setZ().
122
.SS "QwtPlotMarker::~QwtPlotMarker ()\fC [virtual]\fP"
126
Definition at line 56 of file qwt_plot_marker.cpp.
127
.SH "Member Function Documentation"
129
.SS "QwtDoubleRect QwtPlotMarker::boundingRect () const\fC [virtual]\fP"
133
An invalid bounding rect: QwtDoubleRect(1.0, 1.0, -2.0, -2.0)
138
Reimplemented from \fBQwtPlotItem\fP.
140
Definition at line 350 of file qwt_plot_marker.cpp.
141
.SS "void QwtPlotMarker::draw (QPainter * p, const \fBQwtScaleMap\fP & xMap, const \fBQwtScaleMap\fP & yMap, const QRect & r) const\fC [virtual]\fP"
149
\fIxMap\fP x Scale Map
151
\fIyMap\fP y Scale Map
153
\fIr\fP Bounding rect, where to paint
158
Implements \fBQwtPlotItem\fP.
160
Definition at line 120 of file qwt_plot_marker.cpp.
162
References QwtPainter::drawLine(), and QwtScaleMap::transform().
163
.SS "\fBQwtText\fP QwtPlotMarker::label () const"
177
Definition at line 285 of file qwt_plot_marker.cpp.
179
Referenced by setLabel().
180
.SS "Qt::Alignment QwtPlotMarker::labelAlignment () const"
189
\fBsetLabelAlignment()\fP
194
Definition at line 321 of file qwt_plot_marker.cpp.
195
.SS "const QPen & QwtPlotMarker::linePen () const"
209
Definition at line 345 of file qwt_plot_marker.cpp.
210
.SS "\fBQwtPlotMarker::LineStyle\fP QwtPlotMarker::lineStyle () const"
219
For a description of line styles, see \fBQwtPlotMarker::setLineStyle()\fP
224
Definition at line 242 of file qwt_plot_marker.cpp.
225
.SS "void QwtPlotMarker::setLabel (const \fBQwtText\fP & label)"
231
\fIlabel\fP label text
241
Definition at line 272 of file qwt_plot_marker.cpp.
243
References QwtPlotItem::itemChanged(), and label().
244
.SS "void QwtPlotMarker::setLabelAlignment (Qt::Alignment align)"
246
Set the alignment of the label.
248
The alignment determines where the label is drawn relative to the marker's position.
252
\fIalign\fP Alignment. A combination of AlignTop, AlignBottom, AlignLeft, AlignRight, AlignCenter, AlgnHCenter, AlignVCenter.
257
\fBlabelAlignment()\fP
262
Definition at line 304 of file qwt_plot_marker.cpp.
263
.SS "void QwtPlotMarker::setLinePen (const QPen & p)"
265
Specify a pen for the line.
279
Definition at line 332 of file qwt_plot_marker.cpp.
281
References QwtPlotItem::itemChanged().
282
.SS "void QwtPlotMarker::setLineStyle (\fBQwtPlotMarker::LineStyle\fP st)"
288
\fIst\fP Line style. Can be one of QwtPlotMarker::NoLine, HLine, VLine or Cross
298
Definition at line 229 of file qwt_plot_marker.cpp.
300
References QwtPlotItem::itemChanged().
301
.SS "void QwtPlotMarker::setSymbol (const \fBQwtSymbol\fP & s)"
317
Definition at line 252 of file qwt_plot_marker.cpp.
319
References QwtPlotItem::itemChanged().
320
.SS "void QwtPlotMarker::setValue (const QwtDoublePoint &)"
324
Definition at line 85 of file qwt_plot_marker.cpp.
326
References setValue().
327
.SS "void QwtPlotMarker::setValue (double, double)"
331
Definition at line 91 of file qwt_plot_marker.cpp.
333
References QwtPlotItem::itemChanged().
335
Referenced by setValue(), setXValue(), and setYValue().
336
.SS "void QwtPlotMarker::setXValue (double)"
340
Definition at line 102 of file qwt_plot_marker.cpp.
342
References setValue().
343
.SS "void QwtPlotMarker::setYValue (double)"
347
Definition at line 108 of file qwt_plot_marker.cpp.
349
References setValue().
350
.SS "const \fBQwtSymbol\fP & QwtPlotMarker::symbol () const"
359
\fBsetSymbol()\fP, \fBQwtSymbol\fP
364
Definition at line 262 of file qwt_plot_marker.cpp.
365
.SS "QwtDoublePoint QwtPlotMarker::value () const"
369
Definition at line 67 of file qwt_plot_marker.cpp.
370
.SS "double QwtPlotMarker::xValue () const"
374
Definition at line 73 of file qwt_plot_marker.cpp.
375
.SS "double QwtPlotMarker::yValue () const"
379
Definition at line 79 of file qwt_plot_marker.cpp.
383
Generated automatically by Doxygen for Qwt User's Guide from the source code.