1
.TH "QwtScaleArithmetic" 3 "11 Jun 2007" "Version 5.0.2" "Qwt User's Guide" \" -*- nroff -*-
9
.SH "Detailed Description"
11
Arithmetic including a tolerance.
13
Definition at line 22 of file qwt_scale_engine.h.
14
.SS "Static Public Member Functions"
18
.RI "static int \fBcompareEps\fP (double value1, double value2, double intervalSize)"
21
.RI "static double \fBceilEps\fP (double value, double intervalSize)"
24
.RI "static double \fBfloorEps\fP (double value, double intervalSize)"
27
.RI "static double \fBdivideEps\fP (double interval, double steps)"
30
.RI "static double \fBceil125\fP (double x)"
33
.RI "static double \fBfloor125\fP (double x)"
36
.SH "Member Function Documentation"
38
.SS "double QwtScaleArithmetic::ceil125 (double x)\fC [static]\fP"
40
Find the smallest value out of {1,2,5}*10^n with an integer number n which is greater than or equal to x
49
Definition at line 98 of file qwt_scale_engine.cpp.
51
Referenced by QwtScaleEngine::divideInterval().
52
.SS "double QwtScaleArithmetic::ceilEps (double value, double intervalSize)\fC [static]\fP"
54
Ceil a value, relative to an interval
58
\fIvalue\fP Value to ceil
60
\fIintervalSize\fP Interval size
70
Definition at line 50 of file qwt_scale_engine.cpp.
72
Referenced by QwtLinearScaleEngine::align().
73
.SS "int QwtScaleArithmetic::compareEps (double value1, double value2, double intervalSize)\fC [static]\fP"
75
Compare 2 values, relative to an interval.
77
Values are 'equal', when : $\cdot value2 - value1 <= abs(intervalSize * 10e^{-6})$
81
\fIvalue1\fP First value to compare
83
\fIvalue2\fP Second value to compare
85
\fIintervalSize\fP interval size
90
0: if equal, -1: if value2 > value1, 1: if value1 > value2
95
Definition at line 28 of file qwt_scale_engine.cpp.
97
Referenced by QwtScaleEngine::contains().
98
.SS "double QwtScaleArithmetic::floor125 (double x)\fC [static]\fP"
100
Find the largest value out of {1,2,5}*10^n with an integer number n which is smaller than or equal to x.
109
Definition at line 126 of file qwt_scale_engine.cpp.
110
.SS "double QwtScaleArithmetic::floorEps (double value, double intervalSize)\fC [static]\fP"
112
Floor a value, relative to an interval
116
\fIvalue\fP Value to floor
118
\fIintervalSize\fP Interval size
128
Definition at line 67 of file qwt_scale_engine.cpp.
130
Referenced by QwtLinearScaleEngine::align().
134
Generated automatically by Doxygen for Qwt User's Guide from the source code.