Download Qwt User's Guide Reference Manual
Transcript
6.74 QwtScaleEngine Class Reference 330 Public Member Functions • • • • • • • • • • • • • QwtScaleEngine () virtual ∼QwtScaleEngine () void setAttribute (Attribute, bool on=true) bool testAttribute (Attribute) const void setAttributes (int) int attributes () const void setReference (double reference) double reference () const void setMargins (double lower, double upper) double lowerMargin () const double upperMargin () const virtual void autoScale (int maxNumSteps, double &x1, double &x2, double &stepSize) const =0 virtual QwtScaleDiv divideScale (double x1, double x2, int maxMajSteps, int maxMinSteps, double stepSize=0.0) const=0 • virtual QwtScaleTransformation ∗ transformation () const=0 Protected Member Functions • • • • bool contains (const QwtDoubleInterval &, double val) const QwtValueList strip (const QwtValueList &, const QwtDoubleInterval &) const double divideInterval (double interval, int numSteps) const QwtDoubleInterval buildInterval (double v) const 6.74.1 Detailed Description Base class for scale engines. A scale engine trys to find "reasonable" ranges and step sizes for scales. The layout of the scale can be varied with setAttribute(). Qwt offers implementations for logarithmic (log10) and linear scales. Contributions for other types of scale engines (date/time, log2 ... ) are welcome. 6.74.2 Member Enumeration Documentation 6.74.2.1 enum QwtScaleEngine::Attribute • IncludeReference Build a scale which includes the reference() value. • Symmetric Build a scale which is symmetric to the reference() value. • Floating The endpoints of the scale are supposed to be equal the outmost included values plus the specified margins (see setMargins()). If this attribute is ∗not∗ set, the endpoints of the scale will be integer multiples of the step size. Generated on Sun Mar 22 16:44:05 2009 for Qwt User’s Guide by Doxygen
Related documents