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
|
.TH "QwtAbstractScale" 3 "Mon Aug 1 2011" "Version 5.2.2" "Qwt User's Guide" \" -*- nroff -*-
.ad l
.nh
.SH NAME
QwtAbstractScale \-
.PP
An abstract base class for classes containing a scale.
.SH SYNOPSIS
.br
.PP
.PP
\fC#include <qwt_abstract_scale.h>\fP
.PP
Inherited by \fBQwtKnob\fP, \fBQwtSlider\fP, and \fBQwtThermo\fP.
.SS "Public Member Functions"
.in +1c
.ti -1c
.RI "bool \fBautoScale\fP () const "
.br
.ti -1c
.RI "\fBQwtAbstractScale\fP ()"
.br
.ti -1c
.RI "const \fBQwtScaleEngine\fP * \fBscaleEngine\fP () const "
.br
.ti -1c
.RI "\fBQwtScaleEngine\fP * \fBscaleEngine\fP ()"
.br
.ti -1c
.RI "const \fBQwtScaleMap\fP & \fBscaleMap\fP () const "
.br
.ti -1c
.RI "int \fBscaleMaxMajor\fP () const "
.br
.ti -1c
.RI "int \fBscaleMaxMinor\fP () const "
.br
.ti -1c
.RI "void \fBsetAutoScale\fP ()"
.br
.ti -1c
.RI "void \fBsetScale\fP (const \fBQwtDoubleInterval\fP &, double step=0.0)"
.br
.ti -1c
.RI "void \fBsetScale\fP (const \fBQwtScaleDiv\fP &s)"
.br
.ti -1c
.RI "void \fBsetScale\fP (double vmin, double vmax, double step=0.0)"
.br
.ti -1c
.RI "void \fBsetScaleEngine\fP (\fBQwtScaleEngine\fP *)"
.br
.ti -1c
.RI "void \fBsetScaleMaxMajor\fP (int ticks)"
.br
.ti -1c
.RI "void \fBsetScaleMaxMinor\fP (int ticks)"
.br
.ti -1c
.RI "virtual \fB~QwtAbstractScale\fP ()"
.br
.in -1c
.SS "Protected Member Functions"
.in +1c
.ti -1c
.RI "const \fBQwtAbstractScaleDraw\fP * \fBabstractScaleDraw\fP () const "
.br
.ti -1c
.RI "\fBQwtAbstractScaleDraw\fP * \fBabstractScaleDraw\fP ()"
.br
.ti -1c
.RI "void \fBrescale\fP (double vmin, double vmax, double step=0.0)"
.br
.ti -1c
.RI "virtual void \fBscaleChange\fP ()"
.br
.ti -1c
.RI "void \fBsetAbstractScaleDraw\fP (\fBQwtAbstractScaleDraw\fP *)"
.br
.in -1c
.SH "Detailed Description"
.PP
An abstract base class for classes containing a scale.
\fBQwtAbstractScale\fP is used to provide classes with a \fBQwtScaleDraw\fP, and a \fBQwtScaleDiv\fP. The \fBQwtScaleDiv\fP might be set explicitly or calculated by a \fBQwtScaleEngine\fP.
.SH "Constructor & Destructor Documentation"
.PP
.SS "QwtAbstractScale::QwtAbstractScale ()"Constructor
.PP
Creates a default \fBQwtScaleDraw\fP and a \fBQwtLinearScaleEngine\fP. Autoscaling is enabled, and the stepSize is initialized by 0.0.
.SS "QwtAbstractScale::~QwtAbstractScale ()\fC [virtual]\fP"
.PP
Destructor.
.SH "Member Function Documentation"
.PP
.SS "const \fBQwtAbstractScaleDraw\fP * QwtAbstractScale::abstractScaleDraw () const\fC [protected]\fP"\fBReturns:\fP
.RS 4
Scale draw
.RE
.PP
\fBSee also:\fP
.RS 4
\fBsetAbstractScaleDraw()\fP
.RE
.PP
.SS "\fBQwtAbstractScaleDraw\fP * QwtAbstractScale::abstractScaleDraw ()\fC [protected]\fP"\fBReturns:\fP
.RS 4
Scale draw
.RE
.PP
\fBSee also:\fP
.RS 4
\fBsetAbstractScaleDraw()\fP
.RE
.PP
.SS "bool QwtAbstractScale::autoScale () const"\fBReturns:\fP
.RS 4
\fCtrue\fP if autoscaling is enabled
.RE
.PP
.SS "void QwtAbstractScale::rescale (doublevmin, doublevmax, doublestepSize = \fC0.0\fP)\fC [protected]\fP"Recalculate the scale division and update the scale draw.
.PP
\fBParameters:\fP
.RS 4
\fIvmin\fP Lower limit of the scale interval
.br
\fIvmax\fP Upper limit of the scale interval
.br
\fIstepSize\fP Major step size
.RE
.PP
\fBSee also:\fP
.RS 4
\fBscaleChange()\fP
.RE
.PP
.SS "void QwtAbstractScale::scaleChange ()\fC [protected, virtual]\fP"
.PP
Notify changed scale. Dummy empty implementation, intended to be overloaded by derived classes
.PP
Reimplemented in \fBQwtSlider\fP, and \fBQwtThermo\fP.
.SS "const \fBQwtScaleEngine\fP * QwtAbstractScale::scaleEngine () const"\fBReturns:\fP
.RS 4
Scale engine
.RE
.PP
\fBSee also:\fP
.RS 4
\fBsetScaleEngine()\fP
.RE
.PP
.SS "\fBQwtScaleEngine\fP * QwtAbstractScale::scaleEngine ()"\fBReturns:\fP
.RS 4
Scale engine
.RE
.PP
\fBSee also:\fP
.RS 4
\fBsetScaleEngine()\fP
.RE
.PP
.SS "const \fBQwtScaleMap\fP & QwtAbstractScale::scaleMap () const"\fBReturns:\fP
.RS 4
\fBabstractScaleDraw()\fP->\fBscaleMap()\fP
.RE
.PP
.SS "int QwtAbstractScale::scaleMaxMajor () const"\fBReturns:\fP
.RS 4
Max. number of major tick intervals The default value is 5.
.RE
.PP
.SS "int QwtAbstractScale::scaleMaxMinor () const"\fBReturns:\fP
.RS 4
Max. number of minor tick intervals The default value is 3.
.RE
.PP
.SS "void QwtAbstractScale::setAbstractScaleDraw (\fBQwtAbstractScaleDraw\fP *scaleDraw)\fC [protected]\fP"
.PP
Set a scale draw. scaleDraw has to be created with new and will be deleted in ~QwtAbstractScale or the next call of setAbstractScaleDraw.
.SS "void QwtAbstractScale::setAutoScale ()"
.PP
Advise the widget to control the scale range internally. Autoscaling is on by default.
.PP
\fBSee also:\fP
.RS 4
\fBsetScale()\fP, \fBautoScale()\fP
.RE
.PP
.SS "void QwtAbstractScale::setScale (doublevmin, doublevmax, doublestepSize = \fC0.0\fP)"
.PP
Specify a scale. Disable autoscaling and define a scale by an interval and a step size
.PP
\fBParameters:\fP
.RS 4
\fIvmin\fP lower limit of the scale interval
.br
\fIvmax\fP upper limit of the scale interval
.br
\fIstepSize\fP major step size
.RE
.PP
\fBSee also:\fP
.RS 4
\fBsetAutoScale()\fP
.RE
.PP
.SS "void QwtAbstractScale::setScale (const \fBQwtScaleDiv\fP &scaleDiv)"
.PP
Specify a scale. Disable autoscaling and define a scale by a scale division
.PP
\fBParameters:\fP
.RS 4
\fIscaleDiv\fP Scale division
.RE
.PP
\fBSee also:\fP
.RS 4
\fBsetAutoScale()\fP
.RE
.PP
.SS "void QwtAbstractScale::setScale (const \fBQwtDoubleInterval\fP &interval, doublestepSize = \fC0.0\fP)"
.PP
Specify a scale. Disable autoscaling and define a scale by an interval and a step size
.PP
\fBParameters:\fP
.RS 4
\fIinterval\fP Interval
.br
\fIstepSize\fP major step size
.RE
.PP
\fBSee also:\fP
.RS 4
\fBsetAutoScale()\fP
.RE
.PP
.SS "void QwtAbstractScale::setScaleEngine (\fBQwtScaleEngine\fP *scaleEngine)"
.PP
Set a scale engine. The scale engine is responsible for calculating the scale division, and in case of auto scaling how to align the scale.
.PP
scaleEngine has to be created with new and will be deleted in ~QwtAbstractScale or the next call of setScaleEngine.
.SS "void QwtAbstractScale::setScaleMaxMajor (intticks)"
.PP
Set the maximum number of major tick intervals. The scale's major ticks are calculated automatically such that the number of major intervals does not exceed ticks. The default value is 5.
.PP
\fBParameters:\fP
.RS 4
\fIticks\fP maximal number of major ticks.
.RE
.PP
\fBSee also:\fP
.RS 4
\fBQwtAbstractScaleDraw\fP
.RE
.PP
.SS "void QwtAbstractScale::setScaleMaxMinor (intticks)"
.PP
Set the maximum number of minor tick intervals. The scale's minor ticks are calculated automatically such that the number of minor intervals does not exceed ticks. The default value is 3.
.PP
\fBParameters:\fP
.RS 4
\fIticks\fP
.RE
.PP
\fBSee also:\fP
.RS 4
\fBQwtAbstractScaleDraw\fP
.RE
.PP
.SH "Author"
.PP
Generated automatically by Doxygen for Qwt User's Guide from the source code.
|