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 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102
|
.TH "QwtPlotSpectrogram" 3 "Mon Aug 1 2011" "Version 5.2.2" "Qwt User's Guide" \" -*- nroff -*-
.ad l
.nh
.SH NAME
QwtPlotSpectrogram \-
.PP
A plot item, which displays a spectrogram.
.SH SYNOPSIS
.br
.PP
.PP
\fC#include <qwt_plot_spectrogram.h>\fP
.PP
Inherits \fBQwtPlotRasterItem\fP.
.SS "Public Types"
.in +1c
.ti -1c
.RI "enum \fBCachePolicy\fP { \fBNoCache\fP, \fBPaintCache\fP, \fBScreenCache\fP }"
.br
.ti -1c
.RI "enum \fBDisplayMode\fP { \fBImageMode\fP = 1, \fBContourMode\fP = 2 }"
.br
.ti -1c
.RI "enum \fBItemAttribute\fP { \fBLegend\fP = 1, \fBAutoScale\fP = 2 }"
.br
.ti -1c
.RI "enum \fBRenderHint\fP { \fBRenderAntialiased\fP = 1 }"
.br
.ti -1c
.RI "enum \fBRttiValues\fP { \fBRtti_PlotItem\fP = 0, \fBRtti_PlotGrid\fP, \fBRtti_PlotScale\fP, \fBRtti_PlotMarker\fP, \fBRtti_PlotCurve\fP, \fBRtti_PlotHistogram\fP, \fBRtti_PlotSpectrogram\fP, \fBRtti_PlotSVG\fP, \fBRtti_PlotUserItem\fP = 1000 }"
.br
.in -1c
.SS "Public Member Functions"
.in +1c
.ti -1c
.RI "int \fBalpha\fP () const "
.br
.ti -1c
.RI "void \fBattach\fP (\fBQwtPlot\fP *plot)"
.br
.ti -1c
.RI "virtual QwtDoubleRect \fBboundingRect\fP () const "
.br
.ti -1c
.RI "\fBCachePolicy\fP \fBcachePolicy\fP () const "
.br
.ti -1c
.RI "const \fBQwtColorMap\fP & \fBcolorMap\fP () const "
.br
.ti -1c
.RI "QwtValueList \fBcontourLevels\fP () const "
.br
.ti -1c
.RI "virtual QPen \fBcontourPen\fP (double level) const "
.br
.ti -1c
.RI "const \fBQwtRasterData\fP & \fBdata\fP () const "
.br
.ti -1c
.RI "QPen \fBdefaultContourPen\fP () const "
.br
.ti -1c
.RI "void \fBdetach\fP ()"
.br
.ti -1c
.RI "virtual void \fBdraw\fP (QPainter *p, const \fBQwtScaleMap\fP &xMap, const \fBQwtScaleMap\fP &yMap, const QRect &rect) const "
.br
.ti -1c
.RI "void \fBhide\fP ()"
.br
.ti -1c
.RI "void \fBinvalidateCache\fP ()"
.br
.ti -1c
.RI "QwtDoubleRect \fBinvTransform\fP (const \fBQwtScaleMap\fP &, const \fBQwtScaleMap\fP &, const QRect &) const "
.br
.ti -1c
.RI "bool \fBisVisible\fP () const "
.br
.ti -1c
.RI "virtual void \fBitemChanged\fP ()"
.br
.ti -1c
.RI "virtual QWidget * \fBlegendItem\fP () const "
.br
.ti -1c
.RI "QRect \fBpaintRect\fP (const \fBQwtScaleMap\fP &, const \fBQwtScaleMap\fP &) const "
.br
.ti -1c
.RI "\fBQwtPlot\fP * \fBplot\fP () const "
.br
.ti -1c
.RI "\fBQwtPlotSpectrogram\fP (const QString &title=QString::null)"
.br
.ti -1c
.RI "virtual QSize \fBrasterHint\fP (const QwtDoubleRect &) const "
.br
.ti -1c
.RI "virtual int \fBrtti\fP () const "
.br
.ti -1c
.RI "QwtDoubleRect \fBscaleRect\fP (const \fBQwtScaleMap\fP &, const \fBQwtScaleMap\fP &) const "
.br
.ti -1c
.RI "void \fBsetAlpha\fP (int alpha)"
.br
.ti -1c
.RI "void \fBsetAxis\fP (int xAxis, int yAxis)"
.br
.ti -1c
.RI "void \fBsetCachePolicy\fP (\fBCachePolicy\fP)"
.br
.ti -1c
.RI "void \fBsetColorMap\fP (const \fBQwtColorMap\fP &)"
.br
.ti -1c
.RI "void \fBsetConrecAttribute\fP (\fBQwtRasterData::ConrecAttribute\fP, bool on)"
.br
.ti -1c
.RI "void \fBsetContourLevels\fP (const QwtValueList &)"
.br
.ti -1c
.RI "void \fBsetData\fP (const \fBQwtRasterData\fP &data)"
.br
.ti -1c
.RI "void \fBsetDefaultContourPen\fP (const QPen &)"
.br
.ti -1c
.RI "void \fBsetDisplayMode\fP (\fBDisplayMode\fP, bool on=true)"
.br
.ti -1c
.RI "void \fBsetItemAttribute\fP (\fBItemAttribute\fP, bool on=true)"
.br
.ti -1c
.RI "void \fBsetRenderHint\fP (\fBRenderHint\fP, bool on=true)"
.br
.ti -1c
.RI "void \fBsetTitle\fP (const \fBQwtText\fP &title)"
.br
.ti -1c
.RI "void \fBsetTitle\fP (const QString &title)"
.br
.ti -1c
.RI "virtual void \fBsetVisible\fP (bool)"
.br
.ti -1c
.RI "void \fBsetXAxis\fP (int axis)"
.br
.ti -1c
.RI "void \fBsetYAxis\fP (int axis)"
.br
.ti -1c
.RI "void \fBsetZ\fP (double z)"
.br
.ti -1c
.RI "void \fBshow\fP ()"
.br
.ti -1c
.RI "bool \fBtestConrecAttribute\fP (\fBQwtRasterData::ConrecAttribute\fP) const "
.br
.ti -1c
.RI "bool \fBtestDisplayMode\fP (\fBDisplayMode\fP) const "
.br
.ti -1c
.RI "bool \fBtestItemAttribute\fP (\fBItemAttribute\fP) const "
.br
.ti -1c
.RI "bool \fBtestRenderHint\fP (\fBRenderHint\fP) const "
.br
.ti -1c
.RI "const \fBQwtText\fP & \fBtitle\fP () const "
.br
.ti -1c
.RI "QRect \fBtransform\fP (const \fBQwtScaleMap\fP &, const \fBQwtScaleMap\fP &, const QwtDoubleRect &) const "
.br
.ti -1c
.RI "virtual void \fBupdateLegend\fP (\fBQwtLegend\fP *) const "
.br
.ti -1c
.RI "virtual void \fBupdateScaleDiv\fP (const \fBQwtScaleDiv\fP &, const \fBQwtScaleDiv\fP &)"
.br
.ti -1c
.RI "int \fBxAxis\fP () const "
.br
.ti -1c
.RI "int \fByAxis\fP () const "
.br
.ti -1c
.RI "double \fBz\fP () const "
.br
.ti -1c
.RI "virtual \fB~QwtPlotSpectrogram\fP ()"
.br
.in -1c
.SS "Protected Member Functions"
.in +1c
.ti -1c
.RI "virtual QSize \fBcontourRasterSize\fP (const QwtDoubleRect &, const QRect &) const "
.br
.ti -1c
.RI "virtual void \fBdrawContourLines\fP (QPainter *p, const \fBQwtScaleMap\fP &xMap, const \fBQwtScaleMap\fP &yMap, const QwtRasterData::ContourLines &lines) const "
.br
.ti -1c
.RI "virtual QwtRasterData::ContourLines \fBrenderContourLines\fP (const QwtDoubleRect &rect, const QSize &raster) const "
.br
.ti -1c
.RI "virtual QImage \fBrenderImage\fP (const \fBQwtScaleMap\fP &xMap, const \fBQwtScaleMap\fP &yMap, const QwtDoubleRect &rect) const "
.br
.in -1c
.SH "Detailed Description"
.PP
A plot item, which displays a spectrogram.
A spectrogram displays threedimenional data, where the 3rd dimension ( the intensity ) is displayed using colors. The colors are calculated from the values using a color map.
.PP
In ContourMode contour lines are painted for the contour levels.
.PP
.PP
\fBSee also:\fP
.RS 4
\fBQwtRasterData\fP, \fBQwtColorMap\fP
.RE
.PP
.SH "Member Enumeration Documentation"
.PP
.SS "enum \fBQwtPlotRasterItem::CachePolicy\fP\fC [inherited]\fP".IP "\(bu" 2
NoCache
.br
\fBrenderImage()\fP is called, whenever the item has to be repainted
.IP "\(bu" 2
PaintCache
.br
\fBrenderImage()\fP is called, whenever the image cache is not valid, or the scales, or the size of the canvas has changed. This type of cache is only useful for improving the performance of hide/show operations. All other situations are already handled by the plot canvas cache.
.IP "\(bu" 2
ScreenCache
.br
The screen cache is an image in size of the screen. As long as the scales don't change the target image is scaled from the cache. This might improve the performance when resizing the plot widget, but suffers from scaling effects.
.PP
.PP
The default policy is NoCache
.SS "enum \fBQwtPlotSpectrogram::DisplayMode\fP"The display mode controls how the raster data will be represented.
.IP "\(bu" 2
ImageMode
.br
The values are mapped to colors using a color map.
.IP "\(bu" 2
ContourMode
.br
The data is displayed using contour lines
.PP
.PP
When both modes are enabled the contour lines are painted on top of the spectrogram. The default setting enables ImageMode.
.PP
\fBSee also:\fP
.RS 4
\fBsetDisplayMode()\fP, \fBtestDisplayMode()\fP
.RE
.PP
.SS "enum \fBQwtPlotItem::ItemAttribute\fP\fC [inherited]\fP"Plot Item Attributes
.PP
.IP "\(bu" 2
Legend
.br
The item is represented on the legend.
.IP "\(bu" 2
AutoScale
.br
The \fBboundingRect()\fP of the item is included in the autoscaling calculation.
.PP
.PP
\fBSee also:\fP
.RS 4
\fBsetItemAttribute()\fP, \fBtestItemAttribute()\fP
.RE
.PP
.SS "enum \fBQwtPlotItem::RenderHint\fP\fC [inherited]\fP"
.PP
Render hints.
.SS "enum \fBQwtPlotItem::RttiValues\fP\fC [inherited]\fP"
.PP
Runtime type information. RttiValues is used to cast plot items, without having to enable runtime type information of the compiler.
.SH "Constructor & Destructor Documentation"
.PP
.SS "QwtPlotSpectrogram::QwtPlotSpectrogram (const QString &title = \fCQString::null\fP)\fC [explicit]\fP"Sets the following item attributes:
.IP "\(bu" 2
QwtPlotItem::AutoScale: true
.IP "\(bu" 2
QwtPlotItem::Legend: false
.PP
.PP
The z value is initialized by 8.0.
.PP
\fBParameters:\fP
.RS 4
\fItitle\fP Title
.RE
.PP
\fBSee also:\fP
.RS 4
\fBQwtPlotItem::setItemAttribute()\fP, \fBQwtPlotItem::setZ()\fP
.RE
.PP
.SS "QwtPlotSpectrogram::~QwtPlotSpectrogram ()\fC [virtual]\fP"
.PP
Destructor.
.SH "Member Function Documentation"
.PP
.SS "int QwtPlotRasterItem::alpha () const\fC [inherited]\fP"\fBReturns:\fP
.RS 4
Alpha value of the raster item
.RE
.PP
\fBSee also:\fP
.RS 4
\fBsetAlpha()\fP
.RE
.PP
.SS "void QwtPlotItem::attach (\fBQwtPlot\fP *plot)\fC [inherited]\fP"
.PP
Attach the item to a plot. This method will attach a \fBQwtPlotItem\fP to the \fBQwtPlot\fP argument. It will first detach the \fBQwtPlotItem\fP from any plot from a previous call to attach (if necessary). If a NULL argument is passed, it will detach from any \fBQwtPlot\fP it was attached to.
.PP
\fBParameters:\fP
.RS 4
\fIplot\fP Plot widget
.RE
.PP
\fBSee also:\fP
.RS 4
\fBQwtPlotItem::detach()\fP
.RE
.PP
.SS "QwtDoubleRect QwtPlotSpectrogram::boundingRect () const\fC [virtual]\fP"\fBReturns:\fP
.RS 4
Bounding rect of the data
.RE
.PP
\fBSee also:\fP
.RS 4
\fBQwtRasterData::boundingRect()\fP
.RE
.PP
.PP
Reimplemented from \fBQwtPlotItem\fP.
.SS "\fBQwtPlotRasterItem::CachePolicy\fP QwtPlotRasterItem::cachePolicy () const\fC [inherited]\fP"\fBReturns:\fP
.RS 4
Cache policy
.RE
.PP
\fBSee also:\fP
.RS 4
\fBCachePolicy\fP, \fBsetCachePolicy()\fP
.RE
.PP
.SS "const \fBQwtColorMap\fP & QwtPlotSpectrogram::colorMap () const"\fBReturns:\fP
.RS 4
Color Map used for mapping the intensity values to colors
.RE
.PP
\fBSee also:\fP
.RS 4
\fBsetColorMap()\fP
.RE
.PP
.SS "QwtValueList QwtPlotSpectrogram::contourLevels () const"
.PP
Return the levels of the contour lines. The levels are sorted in increasing order.
.PP
\fBSee also:\fP
.RS 4
\fBcontourLevels()\fP, \fBrenderContourLines()\fP, \fBQwtRasterData::contourLines()\fP
.RE
.PP
.SS "QPen QwtPlotSpectrogram::contourPen (doublelevel) const\fC [virtual]\fP"
.PP
Calculate the pen for a contour line. The color of the pen is the color for level calculated by the color map
.PP
\fBParameters:\fP
.RS 4
\fIlevel\fP Contour level
.RE
.PP
\fBReturns:\fP
.RS 4
Pen for the contour line
.RE
.PP
\fBNote:\fP
.RS 4
contourPen is only used if \fBdefaultContourPen()\fP.style() == Qt::NoPen
.RE
.PP
\fBSee also:\fP
.RS 4
\fBsetDefaultContourPen()\fP, \fBsetColorMap()\fP, \fBsetContourLevels()\fP
.RE
.PP
.SS "QSize QwtPlotSpectrogram::contourRasterSize (const QwtDoubleRect &area, const QRect &rect) const\fC [protected, virtual]\fP"
.PP
Return the raster to be used by the CONREC contour algorithm. A larger size will improve the precisision of the CONREC algorithm, but will slow down the time that is needed to calculate the lines.
.PP
The default implementation returns rect.size() / 2 bounded to \fBdata()\fP.\fBrasterHint()\fP.
.PP
\fBParameters:\fP
.RS 4
\fIarea\fP Rect, where to calculate the contour lines
.br
\fIrect\fP Rect in pixel coordinates, where to paint the contour lines
.RE
.PP
\fBReturns:\fP
.RS 4
Raster to be used by the CONREC contour algorithm.
.RE
.PP
\fBNote:\fP
.RS 4
The size will be bounded to rect.size().
.RE
.PP
\fBSee also:\fP
.RS 4
\fBdrawContourLines()\fP, \fBQwtRasterData::contourLines()\fP
.RE
.PP
.SS "const \fBQwtRasterData\fP & QwtPlotSpectrogram::data () const"\fBReturns:\fP
.RS 4
Spectrogram data
.RE
.PP
\fBSee also:\fP
.RS 4
\fBsetData()\fP
.RE
.PP
.SS "QPen QwtPlotSpectrogram::defaultContourPen () const"\fBReturns:\fP
.RS 4
Default contour pen
.RE
.PP
\fBSee also:\fP
.RS 4
\fBsetDefaultContourPen()\fP
.RE
.PP
.SS "void QwtPlotItem::detach ()\fC [inline, inherited]\fP"
.PP
This method detaches a \fBQwtPlotItem\fP from any \fBQwtPlot\fP it has been associated with. \fBdetach()\fP is equivalent to calling attach( NULL )
.PP
\fBSee also:\fP
.RS 4
\fBattach( QwtPlot* plot )\fP
.RE
.PP
.SS "void QwtPlotSpectrogram::draw (QPainter *painter, const \fBQwtScaleMap\fP &xMap, const \fBQwtScaleMap\fP &yMap, const QRect &canvasRect) const\fC [virtual]\fP"
.PP
Draw the spectrogram. \fBParameters:\fP
.RS 4
\fIpainter\fP Painter
.br
\fIxMap\fP Maps x-values into pixel coordinates.
.br
\fIyMap\fP Maps y-values into pixel coordinates.
.br
\fIcanvasRect\fP Contents rect of the canvas in painter coordinates
.RE
.PP
\fBSee also:\fP
.RS 4
\fBsetDisplayMode()\fP, \fBrenderImage()\fP, \fBQwtPlotRasterItem::draw()\fP, \fBdrawContourLines()\fP
.RE
.PP
.PP
Reimplemented from \fBQwtPlotRasterItem\fP.
.SS "void QwtPlotSpectrogram::drawContourLines (QPainter *painter, const \fBQwtScaleMap\fP &xMap, const \fBQwtScaleMap\fP &yMap, const QwtRasterData::ContourLines &contourLines) const\fC [protected, virtual]\fP"Paint the contour lines
.PP
\fBParameters:\fP
.RS 4
\fIpainter\fP Painter
.br
\fIxMap\fP Maps x-values into pixel coordinates.
.br
\fIyMap\fP Maps y-values into pixel coordinates.
.br
\fIcontourLines\fP Contour lines
.RE
.PP
\fBSee also:\fP
.RS 4
\fBrenderContourLines()\fP, \fBdefaultContourPen()\fP, \fBcontourPen()\fP
.RE
.PP
.SS "void QwtPlotItem::hide ()\fC [inherited]\fP"
.PP
Hide the item.
.SS "void QwtPlotRasterItem::invalidateCache ()\fC [inherited]\fP"Invalidate the paint cache
.PP
\fBSee also:\fP
.RS 4
\fBsetCachePolicy()\fP
.RE
.PP
.SS "QwtDoubleRect QwtPlotItem::invTransform (const \fBQwtScaleMap\fP &xMap, const \fBQwtScaleMap\fP &yMap, const QRect &rect) const\fC [inherited]\fP"Transform a rectangle from paint to scale coordinates
.PP
\fBParameters:\fP
.RS 4
\fIxMap\fP X map
.br
\fIyMap\fP Y map
.br
\fIrect\fP Rectangle in paint coordinates
.RE
.PP
\fBReturns:\fP
.RS 4
Rectangle in scale coordinates
.RE
.PP
\fBSee also:\fP
.RS 4
\fBtransform()\fP
.RE
.PP
.SS "bool QwtPlotItem::isVisible () const\fC [inherited]\fP"\fBReturns:\fP
.RS 4
true if visible
.RE
.PP
\fBSee also:\fP
.RS 4
\fBsetVisible()\fP, \fBshow()\fP, \fBhide()\fP
.RE
.PP
.SS "void QwtPlotItem::itemChanged ()\fC [virtual, inherited]\fP"Update the legend and call \fBQwtPlot::autoRefresh\fP for the parent plot.
.PP
\fBSee also:\fP
.RS 4
\fBupdateLegend()\fP
.RE
.PP
.SS "QWidget * QwtPlotItem::legendItem () const\fC [virtual, inherited]\fP"
.PP
Allocate the widget that represents the item on the legend. The default implementation is made for \fBQwtPlotCurve\fP and returns a QwtLegendItem(), but an item could be represented by any type of widget, by overloading \fBlegendItem()\fP and \fBupdateLegend()\fP.
.PP
\fBReturns:\fP
.RS 4
QwtLegendItem()
.RE
.PP
\fBSee also:\fP
.RS 4
\fBupdateLegend()\fP QwtLegend()
.RE
.PP
.PP
Implements \fBQwtLegendItemManager\fP.
.SS "QRect QwtPlotItem::paintRect (const \fBQwtScaleMap\fP &xMap, const \fBQwtScaleMap\fP &yMap) const\fC [inherited]\fP"
.PP
Calculate the bounding paint rect of 2 maps. \fBParameters:\fP
.RS 4
\fIxMap\fP X map
.br
\fIyMap\fP X map
.RE
.PP
\fBReturns:\fP
.RS 4
Bounding rect of the scale maps
.RE
.PP
.SS "\fBQwtPlot\fP * QwtPlotItem::plot () const\fC [inherited]\fP"
.PP
Return attached plot.
.SS "QSize QwtPlotSpectrogram::rasterHint (const QwtDoubleRect &rect) const\fC [virtual]\fP"
.PP
Returns the recommended raster for a given rect. F.e the raster hint is used to limit the resolution of the image that is rendered.
.PP
\fBParameters:\fP
.RS 4
\fIrect\fP Rect for the raster hint
.RE
.PP
\fBReturns:\fP
.RS 4
\fBdata()\fP.rasterHint(rect)
.RE
.PP
.PP
Reimplemented from \fBQwtPlotRasterItem\fP.
.SS "QwtRasterData::ContourLines QwtPlotSpectrogram::renderContourLines (const QwtDoubleRect &rect, const QSize &raster) const\fC [protected, virtual]\fP"Calculate contour lines
.PP
\fBParameters:\fP
.RS 4
\fIrect\fP Rectangle, where to calculate the contour lines
.br
\fIraster\fP Raster, used by the CONREC algorithm
.RE
.PP
\fBSee also:\fP
.RS 4
\fBcontourLevels()\fP, \fBsetConrecAttribute()\fP, \fBQwtRasterData::contourLines()\fP
.RE
.PP
.SS "QImage QwtPlotSpectrogram::renderImage (const \fBQwtScaleMap\fP &xMap, const \fBQwtScaleMap\fP &yMap, const QwtDoubleRect &area) const\fC [protected, virtual]\fP"
.PP
Render an image from the data and color map. The area is translated into a rect of the paint device. For each pixel of this rect the intensity is mapped into a color.
.PP
\fBParameters:\fP
.RS 4
\fIxMap\fP X-Scale Map
.br
\fIyMap\fP Y-Scale Map
.br
\fIarea\fP Area that should be rendered in scale coordinates.
.RE
.PP
\fBReturns:\fP
.RS 4
A QImage::Format_Indexed8 or QImage::Format_ARGB32 depending on the color map.
.RE
.PP
\fBSee also:\fP
.RS 4
QwtRasterData::intensity(), \fBQwtColorMap::rgb()\fP, \fBQwtColorMap::colorIndex()\fP
.RE
.PP
.PP
Implements \fBQwtPlotRasterItem\fP.
.SS "int QwtPlotSpectrogram::rtti () const\fC [virtual]\fP"\fBReturns:\fP
.RS 4
QwtPlotItem::Rtti_PlotSpectrogram
.RE
.PP
.PP
Reimplemented from \fBQwtPlotItem\fP.
.SS "QwtDoubleRect QwtPlotItem::scaleRect (const \fBQwtScaleMap\fP &xMap, const \fBQwtScaleMap\fP &yMap) const\fC [inherited]\fP"
.PP
Calculate the bounding scale rect of 2 maps. \fBParameters:\fP
.RS 4
\fIxMap\fP X map
.br
\fIyMap\fP X map
.RE
.PP
\fBReturns:\fP
.RS 4
Bounding rect of the scale maps
.RE
.PP
.SS "void QwtPlotRasterItem::setAlpha (intalpha)\fC [inherited]\fP"
.PP
Set an alpha value for the raster data. Often a plot has several types of raster data organized in layers. ( f.e a geographical map, with weather statistics ). Using \fBsetAlpha()\fP raster items can be stacked easily.
.PP
The alpha value is a value [0, 255] to control the transparency of the image. 0 represents a fully transparent color, while 255 represents a fully opaque color.
.PP
\fBParameters:\fP
.RS 4
\fIalpha\fP Alpha value
.RE
.PP
.IP "\(bu" 2
alpha >= 0
.br
All alpha values of the pixels returned by \fBrenderImage()\fP will be set to alpha, beside those with an alpha value of 0 (invalid pixels).
.IP "\(bu" 2
alpha < 0 The alpha values returned by \fBrenderImage()\fP are not changed.
.PP
.PP
The default alpha value is \-1.
.PP
\fBSee also:\fP
.RS 4
\fBalpha()\fP
.RE
.PP
.SS "void QwtPlotItem::setAxis (intxAxis, intyAxis)\fC [inherited]\fP"Set X and Y axis
.PP
The item will painted according to the coordinates its Axes.
.PP
\fBParameters:\fP
.RS 4
\fIxAxis\fP X Axis
.br
\fIyAxis\fP Y Axis
.RE
.PP
\fBSee also:\fP
.RS 4
\fBsetXAxis()\fP, \fBsetYAxis()\fP, \fBxAxis()\fP, \fByAxis()\fP
.RE
.PP
.SS "void QwtPlotRasterItem::setCachePolicy (\fBQwtPlotRasterItem::CachePolicy\fPpolicy)\fC [inherited]\fP"Change the cache policy
.PP
The default policy is NoCache
.PP
\fBParameters:\fP
.RS 4
\fIpolicy\fP Cache policy
.RE
.PP
\fBSee also:\fP
.RS 4
\fBCachePolicy\fP, \fBcachePolicy()\fP
.RE
.PP
.SS "void QwtPlotSpectrogram::setColorMap (const \fBQwtColorMap\fP &colorMap)"Change the color map
.PP
Often it is useful to display the mapping between intensities and colors as an additional plot axis, showing a color bar.
.PP
\fBParameters:\fP
.RS 4
\fIcolorMap\fP Color Map
.RE
.PP
\fBSee also:\fP
.RS 4
\fBcolorMap()\fP, QwtScaleWidget::setColorBarEnabled(), QwtScaleWidget::setColorMap()
.RE
.PP
.SS "void QwtPlotSpectrogram::setConrecAttribute (\fBQwtRasterData::ConrecAttribute\fPattribute, boolon)"Modify an attribute of the CONREC algorithm, used to calculate the contour lines.
.PP
\fBParameters:\fP
.RS 4
\fIattribute\fP CONREC attribute
.br
\fIon\fP On/Off
.RE
.PP
\fBSee also:\fP
.RS 4
\fBtestConrecAttribute()\fP, \fBrenderContourLines()\fP, \fBQwtRasterData::contourLines()\fP
.RE
.PP
.SS "void QwtPlotSpectrogram::setContourLevels (const QwtValueList &levels)"Set the levels of the contour lines
.PP
\fBParameters:\fP
.RS 4
\fIlevels\fP Values of the contour levels
.RE
.PP
\fBSee also:\fP
.RS 4
\fBcontourLevels()\fP, \fBrenderContourLines()\fP, \fBQwtRasterData::contourLines()\fP
.RE
.PP
\fBNote:\fP
.RS 4
contourLevels returns the same levels but sorted.
.RE
.PP
.SS "void QwtPlotSpectrogram::setData (const \fBQwtRasterData\fP &data)"Set the data to be displayed
.PP
\fBParameters:\fP
.RS 4
\fIdata\fP Spectrogram Data
.RE
.PP
\fBSee also:\fP
.RS 4
\fBdata()\fP
.RE
.PP
.SS "void QwtPlotSpectrogram::setDefaultContourPen (const QPen &pen)"
.PP
Set the default pen for the contour lines. If the spectrogram has a valid default contour pen a contour line is painted using the default contour pen. Otherwise (pen.style() == Qt::NoPen) the pen is calculated for each contour level using \fBcontourPen()\fP.
.PP
\fBSee also:\fP
.RS 4
\fBdefaultContourPen()\fP, \fBcontourPen()\fP
.RE
.PP
.SS "void QwtPlotSpectrogram::setDisplayMode (\fBDisplayMode\fPmode, boolon = \fCtrue\fP)"The display mode controls how the raster data will be represented.
.PP
\fBParameters:\fP
.RS 4
\fImode\fP Display mode
.br
\fIon\fP On/Off
.RE
.PP
The default setting enables ImageMode.
.PP
\fBSee also:\fP
.RS 4
\fBDisplayMode\fP, displayMode()
.RE
.PP
.SS "void QwtPlotItem::setItemAttribute (\fBItemAttribute\fPattribute, boolon = \fCtrue\fP)\fC [inherited]\fP"Toggle an item attribute
.PP
\fBParameters:\fP
.RS 4
\fIattribute\fP Attribute type
.br
\fIon\fP true/false
.RE
.PP
\fBSee also:\fP
.RS 4
\fBtestItemAttribute()\fP, \fBItemAttribute\fP
.RE
.PP
.SS "void QwtPlotItem::setRenderHint (\fBRenderHint\fPhint, boolon = \fCtrue\fP)\fC [inherited]\fP"Toggle an render hint
.PP
\fBParameters:\fP
.RS 4
\fIhint\fP Render hint
.br
\fIon\fP true/false
.RE
.PP
\fBSee also:\fP
.RS 4
\fBtestRenderHint()\fP, \fBRenderHint\fP
.RE
.PP
.SS "void QwtPlotItem::setTitle (const \fBQwtText\fP &title)\fC [inherited]\fP"Set a new title
.PP
\fBParameters:\fP
.RS 4
\fItitle\fP Title
.RE
.PP
\fBSee also:\fP
.RS 4
\fBtitle()\fP
.RE
.PP
.SS "void QwtPlotItem::setTitle (const QString &title)\fC [inherited]\fP"Set a new title
.PP
\fBParameters:\fP
.RS 4
\fItitle\fP Title
.RE
.PP
\fBSee also:\fP
.RS 4
\fBtitle()\fP
.RE
.PP
.SS "void QwtPlotItem::setVisible (boolon)\fC [virtual, inherited]\fP"Show/Hide the item
.PP
\fBParameters:\fP
.RS 4
\fIon\fP Show if true, otherwise hide
.RE
.PP
\fBSee also:\fP
.RS 4
\fBisVisible()\fP, \fBshow()\fP, \fBhide()\fP
.RE
.PP
.SS "void QwtPlotItem::setXAxis (intaxis)\fC [inherited]\fP"Set the X axis
.PP
The item will painted according to the coordinates its Axes.
.PP
\fBParameters:\fP
.RS 4
\fIaxis\fP X Axis
.RE
.PP
\fBSee also:\fP
.RS 4
\fBsetAxis()\fP, \fBsetYAxis()\fP, \fBxAxis()\fP
.RE
.PP
.SS "void QwtPlotItem::setYAxis (intaxis)\fC [inherited]\fP"Set the Y axis
.PP
The item will painted according to the coordinates its Axes.
.PP
\fBParameters:\fP
.RS 4
\fIaxis\fP Y Axis
.RE
.PP
\fBSee also:\fP
.RS 4
\fBsetAxis()\fP, \fBsetXAxis()\fP, \fByAxis()\fP
.RE
.PP
.SS "void QwtPlotItem::setZ (doublez)\fC [inherited]\fP"
.PP
Set the z value. Plot items are painted in increasing z-order.
.PP
\fBParameters:\fP
.RS 4
\fIz\fP Z-value
.RE
.PP
\fBSee also:\fP
.RS 4
\fBz()\fP, \fBQwtPlotDict::itemList()\fP
.RE
.PP
.SS "void QwtPlotItem::show ()\fC [inherited]\fP"
.PP
Show the item.
.SS "bool QwtPlotSpectrogram::testConrecAttribute (\fBQwtRasterData::ConrecAttribute\fPattribute) const"Test an attribute of the CONREC algorithm, used to calculate the contour lines.
.PP
\fBParameters:\fP
.RS 4
\fIattribute\fP CONREC attribute
.RE
.PP
\fBReturns:\fP
.RS 4
true, is enabled
.RE
.PP
\fBSee also:\fP
.RS 4
\fBsetConrecAttribute()\fP, \fBrenderContourLines()\fP, \fBQwtRasterData::contourLines()\fP
.RE
.PP
.SS "bool QwtPlotSpectrogram::testDisplayMode (\fBDisplayMode\fPmode) const"The display mode controls how the raster data will be represented.
.PP
\fBParameters:\fP
.RS 4
\fImode\fP Display mode
.RE
.PP
\fBReturns:\fP
.RS 4
true if mode is enabled
.RE
.PP
.SS "bool QwtPlotItem::testItemAttribute (\fBItemAttribute\fPattribute) const\fC [inherited]\fP"Test an item attribute
.PP
\fBParameters:\fP
.RS 4
\fIattribute\fP Attribute type
.RE
.PP
\fBReturns:\fP
.RS 4
true/false
.RE
.PP
\fBSee also:\fP
.RS 4
\fBsetItemAttribute()\fP, \fBItemAttribute\fP
.RE
.PP
.SS "bool QwtPlotItem::testRenderHint (\fBRenderHint\fPhint) const\fC [inherited]\fP"Test a render hint
.PP
\fBParameters:\fP
.RS 4
\fIhint\fP Render hint
.RE
.PP
\fBReturns:\fP
.RS 4
true/false
.RE
.PP
\fBSee also:\fP
.RS 4
\fBsetRenderHint()\fP, \fBRenderHint\fP
.RE
.PP
.SS "const \fBQwtText\fP & QwtPlotItem::title () const\fC [inherited]\fP"\fBReturns:\fP
.RS 4
Title of the item
.RE
.PP
\fBSee also:\fP
.RS 4
\fBsetTitle()\fP
.RE
.PP
.SS "QRect QwtPlotItem::transform (const \fBQwtScaleMap\fP &xMap, const \fBQwtScaleMap\fP &yMap, const QwtDoubleRect &rect) const\fC [inherited]\fP"Transform a rectangle
.PP
\fBParameters:\fP
.RS 4
\fIxMap\fP X map
.br
\fIyMap\fP Y map
.br
\fIrect\fP Rectangle in scale coordinates
.RE
.PP
\fBReturns:\fP
.RS 4
Rectangle in paint coordinates
.RE
.PP
\fBSee also:\fP
.RS 4
\fBinvTransform()\fP
.RE
.PP
.SS "void QwtPlotItem::updateLegend (\fBQwtLegend\fP *legend) const\fC [virtual, inherited]\fP"
.PP
Update the widget that represents the item on the legend. \fBupdateLegend()\fP is called from \fBitemChanged()\fP to adopt the widget representing the item on the legend to its new configuration.
.PP
The default implementation is made for \fBQwtPlotCurve\fP and updates a QwtLegendItem(), but an item could be represented by any type of widget, by overloading \fBlegendItem()\fP and \fBupdateLegend()\fP.
.PP
\fBParameters:\fP
.RS 4
\fIlegend\fP Legend
.RE
.PP
\fBSee also:\fP
.RS 4
\fBlegendItem()\fP, \fBitemChanged()\fP, QwtLegend()
.RE
.PP
.PP
Implements \fBQwtLegendItemManager\fP.
.PP
Reimplemented in \fBQwtPlotCurve\fP.
.SS "void QwtPlotItem::updateScaleDiv (const \fBQwtScaleDiv\fP &, const \fBQwtScaleDiv\fP &)\fC [virtual, inherited]\fP"
.PP
Update the item to changes of the axes scale division. Update the item, when the axes of plot have changed. The default implementation does nothing, but items that depend on the scale division (like QwtPlotGrid()) have to reimplement \fBupdateScaleDiv()\fP
.PP
\fBParameters:\fP
.RS 4
\fIxScaleDiv\fP Scale division of the x-axis
.br
\fIyScaleDiv\fP Scale division of the y-axis
.RE
.PP
\fBSee also:\fP
.RS 4
\fBQwtPlot::updateAxes()\fP
.RE
.PP
.PP
Reimplemented in \fBQwtPlotGrid\fP, and \fBQwtPlotScaleItem\fP.
.SS "int QwtPlotItem::xAxis () const\fC [inherited]\fP"
.PP
Return xAxis.
.SS "int QwtPlotItem::yAxis () const\fC [inherited]\fP"
.PP
Return yAxis.
.SS "double QwtPlotItem::z () const\fC [inherited]\fP"Plot items are painted in increasing z-order.
.PP
\fBReturns:\fP
.RS 4
\fBsetZ()\fP, \fBQwtPlotDict::itemList()\fP
.RE
.PP
.SH "Author"
.PP
Generated automatically by Doxygen for Qwt User's Guide from the source code.
|