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
|
.TH "QwtColorMap" 3 "Mon Aug 1 2011" "Version 5.2.2" "Qwt User's Guide" \" -*- nroff -*-
.ad l
.nh
.SH NAME
QwtColorMap \-
.PP
\fBQwtColorMap\fP is used to map values into colors.
.SH SYNOPSIS
.br
.PP
.PP
\fC#include <qwt_color_map.h>\fP
.PP
Inherited by \fBQwtAlphaColorMap\fP, and \fBQwtLinearColorMap\fP.
.SS "Public Types"
.in +1c
.ti -1c
.RI "enum \fBFormat\fP { \fBRGB\fP, \fBIndexed\fP }"
.br
.in -1c
.SS "Public Member Functions"
.in +1c
.ti -1c
.RI "QColor \fBcolor\fP (const \fBQwtDoubleInterval\fP &, double value) const "
.br
.ti -1c
.RI "virtual unsigned char \fBcolorIndex\fP (const \fBQwtDoubleInterval\fP &interval, double value) const =0"
.br
.ti -1c
.RI "virtual QVector< QRgb > \fBcolorTable\fP (const \fBQwtDoubleInterval\fP &) const "
.br
.ti -1c
.RI "virtual \fBQwtColorMap\fP * \fBcopy\fP () const =0"
.br
.ti -1c
.RI "\fBFormat\fP \fBformat\fP () const "
.br
.ti -1c
.RI "\fBQwtColorMap\fP (\fBFormat\fP=QwtColorMap::RGB)"
.br
.ti -1c
.RI "virtual QRgb \fBrgb\fP (const \fBQwtDoubleInterval\fP &interval, double value) const =0"
.br
.ti -1c
.RI "virtual \fB~QwtColorMap\fP ()"
.br
.in -1c
.SH "Detailed Description"
.PP
\fBQwtColorMap\fP is used to map values into colors.
For displaying 3D data on a 2D plane the 3rd dimension is often displayed using colors, like f.e in a spectrogram.
.PP
Each color map is optimized to return colors for only one of the following image formats:
.PP
.IP "\(bu" 2
QImage::Format_Indexed8
.br
.IP "\(bu" 2
QImage::Format_ARGB32
.br
.PP
.PP
\fBSee also:\fP
.RS 4
\fBQwtPlotSpectrogram\fP, \fBQwtScaleWidget\fP
.RE
.PP
.SH "Member Enumeration Documentation"
.PP
.SS "enum \fBQwtColorMap::Format\fP".IP "\(bu" 2
RGB
.br
The map is intended to map into QRgb values.
.IP "\(bu" 2
Indexed
.br
The map is intended to map into 8 bit values, that are indices into the color table.
.PP
.PP
\fBSee also:\fP
.RS 4
\fBrgb()\fP, \fBcolorIndex()\fP, \fBcolorTable()\fP
.RE
.PP
.SH "Constructor & Destructor Documentation"
.PP
.SS "QwtColorMap::QwtColorMap (\fBFormat\fPformat = \fCQwtColorMap::RGB\fP)"
.PP
Constructor.
.SS "QwtColorMap::~QwtColorMap ()\fC [virtual]\fP"
.PP
Destructor.
.SH "Member Function Documentation"
.PP
.SS "QColor QwtColorMap::color (const \fBQwtDoubleInterval\fP &interval, doublevalue) const\fC [inline]\fP"Map a value into a color
.PP
\fBParameters:\fP
.RS 4
\fIinterval\fP Valid interval for values
.br
\fIvalue\fP Value
.RE
.PP
\fBReturns:\fP
.RS 4
Color corresponding to value
.RE
.PP
\fBWarning:\fP
.RS 4
This method is slow for Indexed color maps. If it is necessary to map many values, its better to get the color table once and find the color using \fBcolorIndex()\fP.
.RE
.PP
.SS "virtual unsigned char QwtColorMap::colorIndex (const \fBQwtDoubleInterval\fP &interval, doublevalue) const\fC [pure virtual]\fP"Map a value of a given interval into a color index
.PP
\fBParameters:\fP
.RS 4
\fIinterval\fP Range for the values
.br
\fIvalue\fP Value
.RE
.PP
\fBReturns:\fP
.RS 4
color index, corresponding to value
.RE
.PP
.PP
Implemented in \fBQwtLinearColorMap\fP.
.SS "QwtColorTable QwtColorMap::colorTable (const \fBQwtDoubleInterval\fP &interval) const\fC [virtual]\fP"Build and return a color map of 256 colors
.PP
The color table is needed for rendering indexed images in combination with using \fBcolorIndex()\fP.
.PP
\fBParameters:\fP
.RS 4
\fIinterval\fP Range for the values
.RE
.PP
\fBReturns:\fP
.RS 4
A color table, that can be used for a QImage
.RE
.PP
.SS "virtual \fBQwtColorMap\fP* QwtColorMap::copy () const\fC [pure virtual]\fP"
.PP
Clone the color map.
.PP
Implemented in \fBQwtLinearColorMap\fP, and \fBQwtAlphaColorMap\fP.
.SS "\fBQwtColorMap::Format\fP QwtColorMap::format () const\fC [inline]\fP"\fBReturns:\fP
.RS 4
Intended format of the color map
.RE
.PP
\fBSee also:\fP
.RS 4
\fBFormat\fP
.RE
.PP
.SS "virtual QRgb QwtColorMap::rgb (const \fBQwtDoubleInterval\fP &interval, doublevalue) const\fC [pure virtual]\fP"Map a value of a given interval into a rgb value.
.PP
\fBParameters:\fP
.RS 4
\fIinterval\fP Range for the values
.br
\fIvalue\fP Value
.RE
.PP
\fBReturns:\fP
.RS 4
rgb value, corresponding to value
.RE
.PP
.PP
Implemented in \fBQwtLinearColorMap\fP, and \fBQwtAlphaColorMap\fP.
.SH "Author"
.PP
Generated automatically by Doxygen for Qwt User's Guide from the source code.
|