QwtLogScaleEngine.3 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  1. .TH "QwtLogScaleEngine" 3 "Mon Dec 28 2020" "Version 6.1.6" "Qwt User's Guide" \" -*- nroff -*-
  2. .ad l
  3. .nh
  4. .SH NAME
  5. QwtLogScaleEngine \- A scale engine for logarithmic scales\&.
  6. .SH SYNOPSIS
  7. .br
  8. .PP
  9. .PP
  10. \fC#include <qwt_scale_engine\&.h>\fP
  11. .PP
  12. Inherits \fBQwtScaleEngine\fP\&.
  13. .SS "Public Member Functions"
  14. .in +1c
  15. .ti -1c
  16. .RI "\fBQwtLogScaleEngine\fP (uint \fBbase\fP=10)"
  17. .br
  18. .ti -1c
  19. .RI "virtual \fB~QwtLogScaleEngine\fP ()"
  20. .br
  21. .RI "Destructor\&. "
  22. .ti -1c
  23. .RI "virtual void \fBautoScale\fP (int maxNumSteps, double &x1, double &x2, double &stepSize) const"
  24. .br
  25. .ti -1c
  26. .RI "virtual \fBQwtScaleDiv\fP \fBdivideScale\fP (double x1, double x2, int maxMajorSteps, int maxMinorSteps, double stepSize=0\&.0) const"
  27. .br
  28. .RI "Calculate a scale division for an interval\&. "
  29. .in -1c
  30. .SS "Protected Member Functions"
  31. .in +1c
  32. .ti -1c
  33. .RI "\fBQwtInterval\fP \fBalign\fP (const \fBQwtInterval\fP &, double stepSize) const"
  34. .br
  35. .RI "Align an interval to a step size\&. "
  36. .ti -1c
  37. .RI "void \fBbuildTicks\fP (const \fBQwtInterval\fP &, double stepSize, int maxMinorSteps, QList< double > ticks[\fBQwtScaleDiv::NTickTypes\fP]) const"
  38. .br
  39. .RI "Calculate ticks for an interval\&. "
  40. .ti -1c
  41. .RI "QList< double > \fBbuildMajorTicks\fP (const \fBQwtInterval\fP &interval, double stepSize) const"
  42. .br
  43. .RI "Calculate major ticks for an interval\&. "
  44. .ti -1c
  45. .RI "void \fBbuildMinorTicks\fP (const QList< double > &majorTicks, int maxMinorSteps, double stepSize, QList< double > &minorTicks, QList< double > &mediumTicks) const"
  46. .br
  47. .RI "Calculate minor/medium ticks for major ticks\&. "
  48. .in -1c
  49. .SS "Additional Inherited Members"
  50. .SH "Detailed Description"
  51. .PP
  52. A scale engine for logarithmic scales\&.
  53. The step size is measured in \fIdecades\fP and the major step size will be adjusted to fit the pattern $\left\{ 1,2,3,5\right\} \cdot 10^{n}$, where n is a natural number including zero\&.
  54. .PP
  55. \fBWarning\fP
  56. .RS 4
  57. the step size as well as the margins are measured in \fIdecades\fP\&.
  58. .RE
  59. .PP
  60. .SH "Constructor & Destructor Documentation"
  61. .PP
  62. .SS "QwtLogScaleEngine::QwtLogScaleEngine (uint base = \fC10\fP)"
  63. Constructor
  64. .PP
  65. \fBParameters\fP
  66. .RS 4
  67. \fIbase\fP Base of the scale engine
  68. .RE
  69. .PP
  70. \fBSee also\fP
  71. .RS 4
  72. \fBsetBase()\fP
  73. .RE
  74. .PP
  75. .SH "Member Function Documentation"
  76. .PP
  77. .SS "\fBQwtInterval\fP QwtLogScaleEngine::align (const \fBQwtInterval\fP & interval, double stepSize) const\fC [protected]\fP"
  78. .PP
  79. Align an interval to a step size\&. The limits of an interval are aligned that both are integer multiples of the step size\&.
  80. .PP
  81. \fBParameters\fP
  82. .RS 4
  83. \fIinterval\fP Interval
  84. .br
  85. \fIstepSize\fP Step size
  86. .RE
  87. .PP
  88. \fBReturns\fP
  89. .RS 4
  90. Aligned interval
  91. .RE
  92. .PP
  93. .SS "void QwtLogScaleEngine::autoScale (int maxNumSteps, double & x1, double & x2, double & stepSize) const\fC [virtual]\fP"
  94. Align and divide an interval
  95. .PP
  96. \fBParameters\fP
  97. .RS 4
  98. \fImaxNumSteps\fP Max\&. number of steps
  99. .br
  100. \fIx1\fP First limit of the interval (In/Out)
  101. .br
  102. \fIx2\fP Second limit of the interval (In/Out)
  103. .br
  104. \fIstepSize\fP Step size (Out)
  105. .RE
  106. .PP
  107. \fBSee also\fP
  108. .RS 4
  109. \fBQwtScaleEngine::setAttribute()\fP
  110. .RE
  111. .PP
  112. .PP
  113. Implements \fBQwtScaleEngine\fP\&.
  114. .SS "QList< double > QwtLogScaleEngine::buildMajorTicks (const \fBQwtInterval\fP & interval, double stepSize) const\fC [protected]\fP"
  115. .PP
  116. Calculate major ticks for an interval\&.
  117. .PP
  118. \fBParameters\fP
  119. .RS 4
  120. \fIinterval\fP Interval
  121. .br
  122. \fIstepSize\fP Step size
  123. .RE
  124. .PP
  125. \fBReturns\fP
  126. .RS 4
  127. Calculated ticks
  128. .RE
  129. .PP
  130. .SS "void QwtLogScaleEngine::buildMinorTicks (const QList< double > & majorTicks, int maxMinorSteps, double stepSize, QList< double > & minorTicks, QList< double > & mediumTicks) const\fC [protected]\fP"
  131. .PP
  132. Calculate minor/medium ticks for major ticks\&.
  133. .PP
  134. \fBParameters\fP
  135. .RS 4
  136. \fImajorTicks\fP Major ticks
  137. .br
  138. \fImaxMinorSteps\fP Maximum number of minor steps
  139. .br
  140. \fIstepSize\fP Step size
  141. .br
  142. \fIminorTicks\fP Array to be filled with the calculated minor ticks
  143. .br
  144. \fImediumTicks\fP Array to be filled with the calculated medium ticks
  145. .RE
  146. .PP
  147. .SS "void QwtLogScaleEngine::buildTicks (const \fBQwtInterval\fP & interval, double stepSize, int maxMinorSteps, QList< double > ticks[QwtScaleDiv::NTickTypes]) const\fC [protected]\fP"
  148. .PP
  149. Calculate ticks for an interval\&.
  150. .PP
  151. \fBParameters\fP
  152. .RS 4
  153. \fIinterval\fP Interval
  154. .br
  155. \fImaxMinorSteps\fP Maximum number of minor steps
  156. .br
  157. \fIstepSize\fP Step size
  158. .br
  159. \fIticks\fP Arrays to be filled with the calculated ticks
  160. .RE
  161. .PP
  162. \fBSee also\fP
  163. .RS 4
  164. \fBbuildMajorTicks()\fP, \fBbuildMinorTicks\fP
  165. .RE
  166. .PP
  167. .SS "\fBQwtScaleDiv\fP QwtLogScaleEngine::divideScale (double x1, double x2, int maxMajorSteps, int maxMinorSteps, double stepSize = \fC0\&.0\fP) const\fC [virtual]\fP"
  168. .PP
  169. Calculate a scale division for an interval\&.
  170. .PP
  171. \fBParameters\fP
  172. .RS 4
  173. \fIx1\fP First interval limit
  174. .br
  175. \fIx2\fP Second interval limit
  176. .br
  177. \fImaxMajorSteps\fP Maximum for the number of major steps
  178. .br
  179. \fImaxMinorSteps\fP Maximum number of minor steps
  180. .br
  181. \fIstepSize\fP Step size\&. If stepSize == 0, the engine calculates one\&.
  182. .RE
  183. .PP
  184. \fBReturns\fP
  185. .RS 4
  186. Calculated scale division
  187. .RE
  188. .PP
  189. .PP
  190. Implements \fBQwtScaleEngine\fP\&.
  191. .SH "Author"
  192. .PP
  193. Generated automatically by Doxygen for Qwt User's Guide from the source code\&.