1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452
|
.TH "QwtPlotPicker" 3 "Thu Dec 11 2014" "Version 6.1.2" "Qwt User's Guide" \" -*- nroff -*-
.ad l
.nh
.SH NAME
QwtPlotPicker \-
.PP
\fBQwtPlotPicker\fP provides selections on a plot canvas\&.
.SH SYNOPSIS
.br
.PP
.PP
\fC#include <qwt_plot_picker\&.h>\fP
.PP
Inherits \fBQwtPicker\fP\&.
.PP
Inherited by \fBQwtPlotZoomer\fP\&.
.SS "Signals"
.in +1c
.ti -1c
.RI "void \fBselected\fP (const QPointF &pos)"
.br
.ti -1c
.RI "void \fBselected\fP (const QRectF &rect)"
.br
.ti -1c
.RI "void \fBselected\fP (const QVector< QPointF > &pa)"
.br
.ti -1c
.RI "void \fBappended\fP (const QPointF &pos)"
.br
.ti -1c
.RI "void \fBmoved\fP (const QPointF &pos)"
.br
.in -1c
.SS "Public Member Functions"
.in +1c
.ti -1c
.RI "\fBQwtPlotPicker\fP (QWidget *\fBcanvas\fP)"
.br
.RI "\fICreate a plot picker\&. \fP"
.ti -1c
.RI "virtual \fB~QwtPlotPicker\fP ()"
.br
.RI "\fIDestructor\&. \fP"
.ti -1c
.RI "\fBQwtPlotPicker\fP (int \fBxAxis\fP, int \fByAxis\fP, QWidget *)"
.br
.ti -1c
.RI "\fBQwtPlotPicker\fP (int \fBxAxis\fP, int \fByAxis\fP, \fBRubberBand\fP \fBrubberBand\fP, \fBDisplayMode\fP \fBtrackerMode\fP, QWidget *)"
.br
.ti -1c
.RI "virtual void \fBsetAxis\fP (int \fBxAxis\fP, int \fByAxis\fP)"
.br
.ti -1c
.RI "int \fBxAxis\fP () const "
.br
.RI "\fIReturn x axis\&. \fP"
.ti -1c
.RI "int \fByAxis\fP () const "
.br
.RI "\fIReturn y axis\&. \fP"
.ti -1c
.RI "\fBQwtPlot\fP * \fBplot\fP ()"
.br
.ti -1c
.RI "const \fBQwtPlot\fP * \fBplot\fP () const "
.br
.ti -1c
.RI "QWidget * \fBcanvas\fP ()"
.br
.ti -1c
.RI "const QWidget * \fBcanvas\fP () const "
.br
.in -1c
.SS "Protected Member Functions"
.in +1c
.ti -1c
.RI "QRectF \fBscaleRect\fP () const "
.br
.ti -1c
.RI "QRectF \fBinvTransform\fP (const QRect &) const "
.br
.ti -1c
.RI "QRect \fBtransform\fP (const QRectF &) const "
.br
.ti -1c
.RI "QPointF \fBinvTransform\fP (const QPoint &) const "
.br
.ti -1c
.RI "QPoint \fBtransform\fP (const QPointF &) const "
.br
.ti -1c
.RI "virtual \fBQwtText\fP \fBtrackerText\fP (const QPoint &) const "
.br
.ti -1c
.RI "virtual \fBQwtText\fP \fBtrackerTextF\fP (const QPointF &) const "
.br
.RI "\fITranslate a position into a position string\&. \fP"
.ti -1c
.RI "virtual void \fBmove\fP (const QPoint &)"
.br
.ti -1c
.RI "virtual void \fBappend\fP (const QPoint &)"
.br
.ti -1c
.RI "virtual bool \fBend\fP (bool ok=true)"
.br
.in -1c
.SS "Additional Inherited Members"
.SH "Detailed Description"
.PP
\fBQwtPlotPicker\fP provides selections on a plot canvas\&.
\fBQwtPlotPicker\fP is a \fBQwtPicker\fP tailored for selections on a plot canvas\&. It is set to a x-Axis and y-Axis and translates all pixel coordinates into this coordinate system\&.
.SH "Constructor & Destructor Documentation"
.PP
.SS "QwtPlotPicker::QwtPlotPicker (QWidget *canvas)\fC [explicit]\fP"
.PP
Create a plot picker\&. The picker is set to those x- and y-axis of the plot that are enabled\&. If both or no x-axis are enabled, the picker is set to \fBQwtPlot::xBottom\fP\&. If both or no y-axis are enabled, it is set to \fBQwtPlot::yLeft\fP\&.
.PP
\fBParameters:\fP
.RS 4
\fIcanvas\fP Plot canvas to observe, also the parent object
.RE
.PP
\fBSee Also:\fP
.RS 4
\fBQwtPlot::autoReplot()\fP, \fBQwtPlot::replot()\fP, \fBscaleRect()\fP
.RE
.PP
.SS "QwtPlotPicker::QwtPlotPicker (intxAxis, intyAxis, QWidget *canvas)\fC [explicit]\fP"
Create a plot picker
.PP
\fBParameters:\fP
.RS 4
\fIxAxis\fP Set the x axis of the picker
.br
\fIyAxis\fP Set the y axis of the picker
.br
\fIcanvas\fP Plot canvas to observe, also the parent object
.RE
.PP
\fBSee Also:\fP
.RS 4
\fBQwtPlot::autoReplot()\fP, \fBQwtPlot::replot()\fP, \fBscaleRect()\fP
.RE
.PP
.SS "QwtPlotPicker::QwtPlotPicker (intxAxis, intyAxis, \fBRubberBand\fPrubberBand, \fBDisplayMode\fPtrackerMode, QWidget *canvas)\fC [explicit]\fP"
Create a plot picker
.PP
\fBParameters:\fP
.RS 4
\fIxAxis\fP X axis of the picker
.br
\fIyAxis\fP Y axis of the picker
.br
\fIrubberBand\fP Rubber band style
.br
\fItrackerMode\fP Tracker mode
.br
\fIcanvas\fP Plot canvas to observe, also the parent object
.RE
.PP
\fBSee Also:\fP
.RS 4
\fBQwtPicker\fP, QwtPicker::setSelectionFlags(), \fBQwtPicker::setRubberBand()\fP, \fBQwtPicker::setTrackerMode\fP
.PP
\fBQwtPlot::autoReplot()\fP, \fBQwtPlot::replot()\fP, \fBscaleRect()\fP
.RE
.PP
.SH "Member Function Documentation"
.PP
.SS "void QwtPlotPicker::append (const QPoint &pos)\fC [protected]\fP, \fC [virtual]\fP"
Append a point to the selection and update rubber band and tracker\&.
.PP
\fBParameters:\fP
.RS 4
\fIpos\fP Additional point
.RE
.PP
\fBSee Also:\fP
.RS 4
\fBisActive\fP, \fBbegin()\fP, \fBend()\fP, \fBmove()\fP, \fBappended()\fP
.RE
.PP
\fBNote:\fP
.RS 4
The \fBappended(const QPoint &)\fP, appended(const QDoublePoint &) signals are emitted\&.
.RE
.PP
.PP
Reimplemented from \fBQwtPicker\fP\&.
.SS "void QwtPlotPicker::appended (const QPointF &pos)\fC [signal]\fP"
A signal emitted when a point has been appended to the selection
.PP
\fBParameters:\fP
.RS 4
\fIpos\fP Position of the appended point\&.
.RE
.PP
\fBSee Also:\fP
.RS 4
\fBappend()\fP\&. \fBmoved()\fP
.RE
.PP
.SS "QWidget * QwtPlotPicker::canvas ()"
.PP
\fBReturns:\fP
.RS 4
Observed plot canvas
.RE
.PP
.SS "const QWidget * QwtPlotPicker::canvas () const"
.PP
\fBReturns:\fP
.RS 4
Observed plot canvas
.RE
.PP
.SS "bool QwtPlotPicker::end (boolok = \fCtrue\fP)\fC [protected]\fP, \fC [virtual]\fP"
Close a selection setting the state to inactive\&.
.PP
\fBParameters:\fP
.RS 4
\fIok\fP If true, complete the selection and emit selected signals otherwise discard the selection\&.
.RE
.PP
\fBReturns:\fP
.RS 4
True if the selection has been accepted, false otherwise
.RE
.PP
.PP
Reimplemented from \fBQwtPicker\fP\&.
.PP
Reimplemented in \fBQwtPlotZoomer\fP\&.
.SS "QRectF QwtPlotPicker::invTransform (const QRect &rect) const\fC [protected]\fP"
Translate a rectangle from pixel into plot coordinates
.PP
\fBReturns:\fP
.RS 4
Rectangle in plot coordinates
.RE
.PP
\fBSee Also:\fP
.RS 4
\fBtransform()\fP
.RE
.PP
.SS "QPointF QwtPlotPicker::invTransform (const QPoint &pos) const\fC [protected]\fP"
Translate a point from pixel into plot coordinates
.PP
\fBReturns:\fP
.RS 4
Point in plot coordinates
.RE
.PP
\fBSee Also:\fP
.RS 4
\fBtransform()\fP
.RE
.PP
.SS "void QwtPlotPicker::move (const QPoint &pos)\fC [protected]\fP, \fC [virtual]\fP"
Move the last point of the selection
.PP
\fBParameters:\fP
.RS 4
\fIpos\fP New position
.RE
.PP
\fBSee Also:\fP
.RS 4
\fBisActive\fP, \fBbegin()\fP, \fBend()\fP, \fBappend()\fP
.RE
.PP
\fBNote:\fP
.RS 4
The \fBmoved(const QPoint &)\fP, moved(const QDoublePoint &) signals are emitted\&.
.RE
.PP
.PP
Reimplemented from \fBQwtPicker\fP\&.
.SS "void QwtPlotPicker::moved (const QPointF &pos)\fC [signal]\fP"
A signal emitted whenever the last appended point of the selection has been moved\&.
.PP
\fBParameters:\fP
.RS 4
\fIpos\fP Position of the moved last point of the selection\&.
.RE
.PP
\fBSee Also:\fP
.RS 4
\fBmove()\fP, \fBappended()\fP
.RE
.PP
.SS "\fBQwtPlot\fP * QwtPlotPicker::plot ()"
.PP
\fBReturns:\fP
.RS 4
Plot widget, containing the observed plot canvas
.RE
.PP
.SS "const \fBQwtPlot\fP * QwtPlotPicker::plot () const"
.PP
\fBReturns:\fP
.RS 4
Plot widget, containing the observed plot canvas
.RE
.PP
.SS "QRectF QwtPlotPicker::scaleRect () const\fC [protected]\fP"
.PP
\fBReturns:\fP
.RS 4
Normalized bounding rectangle of the axes
.RE
.PP
\fBSee Also:\fP
.RS 4
\fBQwtPlot::autoReplot()\fP, \fBQwtPlot::replot()\fP\&.
.RE
.PP
.SS "void QwtPlotPicker::selected (const QPointF &pos)\fC [signal]\fP"
A signal emitted in case of \fBQwtPickerMachine::PointSelection\fP\&.
.PP
\fBParameters:\fP
.RS 4
\fIpos\fP Selected point
.RE
.PP
.SS "void QwtPlotPicker::selected (const QRectF &rect)\fC [signal]\fP"
A signal emitted in case of \fBQwtPickerMachine::RectSelection\fP\&.
.PP
\fBParameters:\fP
.RS 4
\fIrect\fP Selected rectangle
.RE
.PP
.SS "void QwtPlotPicker::selected (const QVector< QPointF > &pa)\fC [signal]\fP"
A signal emitting the selected points, at the end of a selection\&.
.PP
\fBParameters:\fP
.RS 4
\fIpa\fP Selected points
.RE
.PP
.SS "void QwtPlotPicker::setAxis (intxAxis, intyAxis)\fC [virtual]\fP"
Set the x and y axes of the picker
.PP
\fBParameters:\fP
.RS 4
\fIxAxis\fP X axis
.br
\fIyAxis\fP Y axis
.RE
.PP
.PP
Reimplemented in \fBQwtPlotZoomer\fP\&.
.SS "\fBQwtText\fP QwtPlotPicker::trackerText (const QPoint &pos) const\fC [protected]\fP, \fC [virtual]\fP"
Translate a pixel position into a position string
.PP
\fBParameters:\fP
.RS 4
\fIpos\fP Position in pixel coordinates
.RE
.PP
\fBReturns:\fP
.RS 4
Position string
.RE
.PP
.PP
Reimplemented from \fBQwtPicker\fP\&.
.SS "\fBQwtText\fP QwtPlotPicker::trackerTextF (const QPointF &pos) const\fC [protected]\fP, \fC [virtual]\fP"
.PP
Translate a position into a position string\&. In case of HLineRubberBand the label is the value of the y position, in case of VLineRubberBand the value of the x position\&. Otherwise the label contains x and y position separated by a ',' \&.
.PP
The format for the double to string conversion is '%\&.4f'\&.
.PP
\fBParameters:\fP
.RS 4
\fIpos\fP Position
.RE
.PP
\fBReturns:\fP
.RS 4
Position string
.RE
.PP
.SS "QRect QwtPlotPicker::transform (const QRectF &rect) const\fC [protected]\fP"
Translate a rectangle from plot into pixel coordinates
.PP
\fBReturns:\fP
.RS 4
Rectangle in pixel coordinates
.RE
.PP
\fBSee Also:\fP
.RS 4
\fBinvTransform()\fP
.RE
.PP
.SS "QPoint QwtPlotPicker::transform (const QPointF &pos) const\fC [protected]\fP"
Translate a point from plot into pixel coordinates
.PP
\fBReturns:\fP
.RS 4
Point in pixel coordinates
.RE
.PP
\fBSee Also:\fP
.RS 4
\fBinvTransform()\fP
.RE
.PP
.SH "Author"
.PP
Generated automatically by Doxygen for Qwt User's Guide from the source code\&.
|