File: QwtRasterData.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 (203 lines) | stat: -rw-r--r-- 5,708 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
.TH "QwtRasterData" 3 "Mon Aug 1 2011" "Version 5.2.2" "Qwt User's Guide" \" -*- nroff -*-
.ad l
.nh
.SH NAME
QwtRasterData \- 
.PP
\fBQwtRasterData\fP defines an interface to any type of raster data.  

.SH SYNOPSIS
.br
.PP
.PP
\fC#include <qwt_raster_data.h>\fP
.PP
Inherited by QwtPlotSpectrogram::PrivateData::DummyData.
.SS "Public Types"

.in +1c
.ti -1c
.RI "enum \fBConrecAttribute\fP { \fBIgnoreAllVerticesOnLevel\fP =  1, \fBIgnoreOutOfRange\fP =  2 }"
.br
.ti -1c
.RI "typedef QMap< double, QPolygonF > \fBContourLines\fP"
.br
.in -1c
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "QwtDoubleRect \fBboundingRect\fP () const "
.br
.ti -1c
.RI "virtual ContourLines \fBcontourLines\fP (const QwtDoubleRect &rect, const QSize &raster, const QList< double > &levels, int flags) const "
.br
.ti -1c
.RI "virtual \fBQwtRasterData\fP * \fBcopy\fP () const =0"
.br
.ti -1c
.RI "virtual void \fBdiscardRaster\fP ()"
.br
.ti -1c
.RI "virtual void \fBinitRaster\fP (const QwtDoubleRect &, const QSize &raster)"
.br
.ti -1c
.RI "\fBQwtRasterData\fP ()"
.br
.ti -1c
.RI "\fBQwtRasterData\fP (const QwtDoubleRect &)"
.br
.ti -1c
.RI "virtual \fBQwtDoubleInterval\fP \fBrange\fP () const =0"
.br
.ti -1c
.RI "virtual QSize \fBrasterHint\fP (const QwtDoubleRect &) const "
.br
.ti -1c
.RI "virtual void \fBsetBoundingRect\fP (const QwtDoubleRect &)"
.br
.ti -1c
.RI "virtual double \fBvalue\fP (double x, double y) const =0"
.br
.ti -1c
.RI "virtual \fB~QwtRasterData\fP ()"
.br
.in -1c
.SH "Detailed Description"
.PP 
\fBQwtRasterData\fP defines an interface to any type of raster data. 

\fBQwtRasterData\fP is an abstract interface, that is used by \fBQwtPlotRasterItem\fP to find the values at the pixels of its raster.
.PP
Often a raster item is used to display values from a matrix. Then the derived raster data class needs to implement some sort of resampling, that maps the raster of the matrix into the requested raster of the raster item ( depending on resolution and scales of the canvas ). 
.SH "Member Enumeration Documentation"
.PP 
.SS "enum \fBQwtRasterData::ConrecAttribute\fP"
.PP
Attribute to modify the contour algorithm. 
.SH "Constructor & Destructor Documentation"
.PP 
.SS "QwtRasterData::QwtRasterData ()"
.PP
Constructor. 
.SS "QwtRasterData::QwtRasterData (const QwtDoubleRect &boundingRect)"Constructor
.PP
\fBParameters:\fP
.RS 4
\fIboundingRect\fP Bounding rectangle 
.RE
.PP
\fBSee also:\fP
.RS 4
\fBsetBoundingRect()\fP 
.RE
.PP

.SS "QwtRasterData::~QwtRasterData ()\fC [virtual]\fP"
.PP
Destructor. 
.SH "Member Function Documentation"
.PP 
.SS "QwtDoubleRect QwtRasterData::boundingRect () const"\fBReturns:\fP
.RS 4
Bounding rectangle 
.RE
.PP
\fBSee also:\fP
.RS 4
\fBboundingRect()\fP 
.RE
.PP

.SS "QwtRasterData::ContourLines QwtRasterData::contourLines (const QwtDoubleRect &rect, const QSize &raster, const QList< double > &levels, intflags) const\fC [virtual]\fP"Calculate contour lines
.PP
An adaption of CONREC, a simple contouring algorithm. http://local.wasp.uwa.edu.au/~pbourke/papers/conrec/ 
.SS "virtual \fBQwtRasterData\fP* QwtRasterData::copy () const\fC [pure virtual]\fP"
.PP
Clone the data. 
.SS "void QwtRasterData::discardRaster ()\fC [virtual]\fP"
.PP
Discard a raster. After the composition of an image \fBQwtPlotSpectrogram\fP calls \fBdiscardRaster()\fP.
.PP
The default implementation does nothing, but if data has been loaded in \fBinitRaster()\fP, it could deleted now.
.PP
\fBSee also:\fP
.RS 4
\fBinitRaster()\fP, \fBvalue()\fP 
.RE
.PP

.SS "void QwtRasterData::initRaster (const QwtDoubleRect &, const QSize &raster)\fC [virtual]\fP"
.PP
Initialize a raster. Before the composition of an image \fBQwtPlotSpectrogram\fP calls initRaster, announcing the area and its resolution that will be requested.
.PP
The default implementation does nothing, but for data sets that are stored in files, it might be good idea to reimplement initRaster, where the data is resampled and loaded into memory.
.PP
\fBParameters:\fP
.RS 4
\fIrect\fP Area of the raster 
.br
\fIraster\fP Number of horizontal and vertical pixels
.RE
.PP
\fBSee also:\fP
.RS 4
\fBinitRaster()\fP, \fBvalue()\fP 
.RE
.PP

.SS "virtual \fBQwtDoubleInterval\fP QwtRasterData::range () const\fC [pure virtual]\fP"\fBReturns:\fP
.RS 4
the range of the values 
.RE
.PP

.SS "QSize QwtRasterData::rasterHint (const QwtDoubleRect &) const\fC [virtual]\fP"
.PP
Find the raster of the data for an area. The resolution is the number of horizontal and vertical pixels that the data can return for an area. An invalid resolution indicates that the data can return values for any detail level.
.PP
The resolution will limit the size of the image that is rendered from the data. F.e. this might be important when printing a spectrogram to a A0 printer with 600 dpi.
.PP
The default implementation returns an invalid resolution (size)
.PP
\fBParameters:\fP
.RS 4
\fIrect\fP In most implementations the resolution of the data doesn't depend on the requested rectangle.
.RE
.PP
\fBReturns:\fP
.RS 4
Resolution, as number of horizontal and vertical pixels 
.RE
.PP

.SS "void QwtRasterData::setBoundingRect (const QwtDoubleRect &boundingRect)\fC [virtual]\fP"Set the bounding rect ( == area, un plot coordinates )
.PP
\fBParameters:\fP
.RS 4
\fIboundingRect\fP Bounding rectangle 
.RE
.PP
\fBSee also:\fP
.RS 4
\fBboundingRect()\fP 
.RE
.PP

.SS "virtual double QwtRasterData::value (doublex, doubley) const\fC [pure virtual]\fP"\fBReturns:\fP
.RS 4
the value at a raster position 
.RE
.PP
\fBParameters:\fP
.RS 4
\fIx\fP X value in plot coordinates 
.br
\fIy\fP Y value in plot coordinates 
.RE
.PP


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