File: QwtPlotPanner.3

package info (click to toggle)
qwt 6.1.2-6
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 23,848 kB
  • ctags: 15,811
  • sloc: cpp: 57,382; makefile: 41
file content (191 lines) | stat: -rw-r--r-- 3,929 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
.TH "QwtPlotPanner" 3 "Thu Dec 11 2014" "Version 6.1.2" "Qwt User's Guide" \" -*- nroff -*-
.ad l
.nh
.SH NAME
QwtPlotPanner \- 
.PP
\fBQwtPlotPanner\fP provides panning of a plot canvas\&.  

.SH SYNOPSIS
.br
.PP
.PP
\fC#include <qwt_plot_panner\&.h>\fP
.PP
Inherits \fBQwtPanner\fP\&.
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBQwtPlotPanner\fP (QWidget *)"
.br
.RI "\fIA panner for the canvas of a \fBQwtPlot\fP\&. \fP"
.ti -1c
.RI "virtual \fB~QwtPlotPanner\fP ()"
.br
.RI "\fIDestructor\&. \fP"
.ti -1c
.RI "QWidget * \fBcanvas\fP ()"
.br
.RI "\fIReturn observed plot canvas\&. \fP"
.ti -1c
.RI "const QWidget * \fBcanvas\fP () const "
.br
.RI "\fIReturn Observed plot canvas\&. \fP"
.ti -1c
.RI "\fBQwtPlot\fP * \fBplot\fP ()"
.br
.RI "\fIReturn plot widget, containing the observed plot canvas\&. \fP"
.ti -1c
.RI "const \fBQwtPlot\fP * \fBplot\fP () const "
.br
.RI "\fIReturn plot widget, containing the observed plot canvas\&. \fP"
.ti -1c
.RI "void \fBsetAxisEnabled\fP (int axis, bool on)"
.br
.RI "\fIEn/Disable an axis\&. \fP"
.ti -1c
.RI "bool \fBisAxisEnabled\fP (int axis) const "
.br
.in -1c
.SS "Protected Slots"

.in +1c
.ti -1c
.RI "virtual void \fBmoveCanvas\fP (int dx, int dy)"
.br
.in -1c
.SS "Protected Member Functions"

.in +1c
.ti -1c
.RI "virtual QBitmap \fBcontentsMask\fP () const "
.br
.ti -1c
.RI "virtual QPixmap \fBgrab\fP () const "
.br
.in -1c
.SS "Additional Inherited Members"
.SH "Detailed Description"
.PP 
\fBQwtPlotPanner\fP provides panning of a plot canvas\&. 

\fBQwtPlotPanner\fP is a panner for a plot canvas, that adjusts the scales of the axes after dropping the canvas on its new position\&.
.PP
Together with \fBQwtPlotZoomer\fP and \fBQwtPlotMagnifier\fP powerful ways of navigating on a \fBQwtPlot\fP widget can be implemented easily\&.
.PP
\fBNote:\fP
.RS 4
The axes are not updated, while dragging the canvas 
.RE
.PP
\fBSee Also:\fP
.RS 4
\fBQwtPlotZoomer\fP, \fBQwtPlotMagnifier\fP 
.RE
.PP

.SH "Constructor & Destructor Documentation"
.PP 
.SS "QwtPlotPanner::QwtPlotPanner (QWidget *canvas)\fC [explicit]\fP"

.PP
A panner for the canvas of a \fBQwtPlot\fP\&. The panner is enabled for all axes
.PP
\fBParameters:\fP
.RS 4
\fIcanvas\fP Plot canvas to pan, also the parent object
.RE
.PP
\fBSee Also:\fP
.RS 4
\fBsetAxisEnabled()\fP 
.RE
.PP

.SH "Member Function Documentation"
.PP 
.SS "QBitmap QwtPlotPanner::contentsMask () const\fC [protected]\fP, \fC [virtual]\fP"
Calculate a mask from the border path of the canvas
.PP
\fBReturns:\fP
.RS 4
Mask as bitmap 
.RE
.PP
\fBSee Also:\fP
.RS 4
\fBQwtPlotCanvas::borderPath()\fP 
.RE
.PP

.PP
Reimplemented from \fBQwtPanner\fP\&.
.SS "QPixmap QwtPlotPanner::grab () const\fC [protected]\fP, \fC [virtual]\fP"

.PP
\fBReturns:\fP
.RS 4
Pixmap with the content of the canvas 
.RE
.PP

.PP
Reimplemented from \fBQwtPanner\fP\&.
.SS "bool QwtPlotPanner::isAxisEnabled (intaxis) const"
Test if an axis is enabled
.PP
\fBParameters:\fP
.RS 4
\fIaxis\fP Axis, see \fBQwtPlot::Axis\fP 
.RE
.PP
\fBReturns:\fP
.RS 4
True, if the axis is enabled
.RE
.PP
\fBSee Also:\fP
.RS 4
\fBsetAxisEnabled()\fP, \fBmoveCanvas()\fP 
.RE
.PP

.SS "void QwtPlotPanner::moveCanvas (intdx, intdy)\fC [protected]\fP, \fC [virtual]\fP, \fC [slot]\fP"
Adjust the enabled axes according to dx/dy
.PP
\fBParameters:\fP
.RS 4
\fIdx\fP Pixel offset in x direction 
.br
\fIdy\fP Pixel offset in y direction
.RE
.PP
\fBSee Also:\fP
.RS 4
\fBQwtPanner::panned()\fP 
.RE
.PP

.SS "void QwtPlotPanner::setAxisEnabled (intaxis, boolon)"

.PP
En/Disable an axis\&. Axes that are enabled will be synchronized to the result of panning\&. All other axes will remain unchanged\&.
.PP
\fBParameters:\fP
.RS 4
\fIaxis\fP Axis, see \fBQwtPlot::Axis\fP 
.br
\fIon\fP On/Off
.RE
.PP
\fBSee Also:\fP
.RS 4
\fBisAxisEnabled()\fP, \fBmoveCanvas()\fP 
.RE
.PP


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