File: QwtAlphaColorMap.3

package info (click to toggle)
qwt5 5.2.2-3
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 13,340 kB
  • sloc: cpp: 32,645; makefile: 23; sh: 4
file content (214 lines) | stat: -rw-r--r-- 4,508 bytes parent folder | download
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
.TH "QwtAlphaColorMap" 3 "Mon Aug 1 2011" "Version 5.2.2" "Qwt User's Guide" \" -*- nroff -*-
.ad l
.nh
.SH NAME
QwtAlphaColorMap \- 
.PP
\fBQwtAlphaColorMap\fP variies the alpha value of a color.  

.SH SYNOPSIS
.br
.PP
.PP
\fC#include <qwt_color_map.h>\fP
.PP
Inherits \fBQwtColorMap\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 "
.br
.ti -1c
.RI "QColor \fBcolor\fP (const \fBQwtDoubleInterval\fP &, double value) const "
.br
.ti -1c
.RI "virtual QVector< QRgb > \fBcolorTable\fP (const \fBQwtDoubleInterval\fP &) const "
.br
.ti -1c
.RI "virtual \fBQwtColorMap\fP * \fBcopy\fP () const "
.br
.ti -1c
.RI "\fBFormat\fP \fBformat\fP () const "
.br
.ti -1c
.RI "\fBQwtAlphaColorMap\fP & \fBoperator=\fP (const \fBQwtAlphaColorMap\fP &)"
.br
.ti -1c
.RI "\fBQwtAlphaColorMap\fP (const QColor &=QColor(Qt::gray))"
.br
.ti -1c
.RI "\fBQwtAlphaColorMap\fP (const \fBQwtAlphaColorMap\fP &)"
.br
.ti -1c
.RI "virtual QRgb \fBrgb\fP (const \fBQwtDoubleInterval\fP &, double value) const "
.br
.ti -1c
.RI "void \fBsetColor\fP (const QColor &)"
.br
.ti -1c
.RI "virtual \fB~QwtAlphaColorMap\fP ()"
.br
.in -1c
.SH "Detailed Description"
.PP 
\fBQwtAlphaColorMap\fP variies the alpha value of a color. 
.SH "Member Enumeration Documentation"
.PP 
.SS "enum \fBQwtColorMap::Format\fP\fC [inherited]\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 "QwtAlphaColorMap::QwtAlphaColorMap (const QColor &color = \fCQColor(Qt::gray)\fP)"Constructor 
.PP
\fBParameters:\fP
.RS 4
\fIcolor\fP Color of the map 
.RE
.PP

.SS "QwtAlphaColorMap::QwtAlphaColorMap (const \fBQwtAlphaColorMap\fP &other)"Copy constructor 
.PP
\fBParameters:\fP
.RS 4
\fIother\fP Other color map 
.RE
.PP

.SS "QwtAlphaColorMap::~QwtAlphaColorMap ()\fC [virtual]\fP"
.PP
Destructor. 
.SH "Member Function Documentation"
.PP 
.SS "QColor QwtAlphaColorMap::color () const"\fBReturns:\fP
.RS 4
the color 
.RE
.PP
\fBSee also:\fP
.RS 4
\fBsetColor()\fP 
.RE
.PP

.SS "QColor QwtColorMap::color (const \fBQwtDoubleInterval\fP &interval, doublevalue) const\fC [inline, inherited]\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 "QwtColorTable QwtColorMap::colorTable (const \fBQwtDoubleInterval\fP &interval) const\fC [virtual, inherited]\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 "\fBQwtColorMap\fP * QwtAlphaColorMap::copy () const\fC [virtual]\fP"
.PP
Clone the color map. 
.PP
Implements \fBQwtColorMap\fP.
.SS "\fBQwtColorMap::Format\fP QwtColorMap::format () const\fC [inline, inherited]\fP"\fBReturns:\fP
.RS 4
Intended format of the color map 
.RE
.PP
\fBSee also:\fP
.RS 4
\fBFormat\fP 
.RE
.PP

.SS "\fBQwtAlphaColorMap\fP & QwtAlphaColorMap::operator= (const \fBQwtAlphaColorMap\fP &other)"Assignment operator 
.PP
\fBParameters:\fP
.RS 4
\fIother\fP Other color map 
.RE
.PP
\fBReturns:\fP
.RS 4
*this 
.RE
.PP

.SS "QRgb QwtAlphaColorMap::rgb (const \fBQwtDoubleInterval\fP &interval, doublevalue) const\fC [virtual]\fP"
.PP
Map a value of a given interval into a alpha value. alpha := (value - interval.minValue()) / interval.width();
.PP
\fBParameters:\fP
.RS 4
\fIinterval\fP Range for all values 
.br
\fIvalue\fP Value to map into a rgb value 
.RE
.PP
\fBReturns:\fP
.RS 4
rgb value, with an alpha value 
.RE
.PP

.PP
Implements \fBQwtColorMap\fP.
.SS "void QwtAlphaColorMap::setColor (const QColor &color)"Set the color
.PP
\fBParameters:\fP
.RS 4
\fIcolor\fP Color 
.RE
.PP
\fBSee also:\fP
.RS 4
\fBcolor()\fP 
.RE
.PP


.SH "Author"
.PP 
Generated automatically by Doxygen for Qwt User's Guide from the source code.