constQwtAbstractScaleDraw*QwtAbstractScale::abstractScaleDraw()const[protected]Returns:
Scale draw
Seealso:setAbstractScaleDraw()QwtAbstractScaleDraw*QwtAbstractScale::abstractScaleDraw()[protected]Returns:
Scale draw
Seealso:setAbstractScaleDraw()doubleQwtAbstractScale::invTransform(intvalue)const
Translate a widget coordinate into a scale value
Parameters:value Widget coordinate
Returns:
Corresponding scale coordinate for value
Seealso:scaleMap(), transform()boolQwtAbstractScale::isInverted()constReturns:
True, when the scale is increasing in opposite direction to the widget coordinates
doubleQwtAbstractScale::lowerBound()constReturns:
Lower bound of the scale
Seealso:setLowerBound(), setScale(), upperBound()doubleQwtAbstractScale::maximum()constReturns:
The boundary with the larger value
Seealso:minimum(), lowerBound(), upperBound()doubleQwtAbstractScale::minimum()constReturns:
The boundary with the smaller value
Seealso:maximum(), lowerBound(), upperBound()voidQwtAbstractScale::rescale(doublelowerBound,doubleupperBound,doublestepSize)[protected]
Recalculate the scale division and update the scale.
Parameters:lowerBound Lower limit of the scale interval
upperBound Upper limit of the scale interval
stepSize Major step size
Seealso:scaleChange()constQwtScaleDiv&QwtAbstractScale::scaleDiv()constReturns:
Scale boundaries and positions of the ticks
The scale division might have been assigned explicitly or calculated implicitly by rescale().
constQwtScaleEngine*QwtAbstractScale::scaleEngine()constReturns:
Scale engine
Seealso:setScaleEngine()QwtScaleEngine*QwtAbstractScale::scaleEngine()Returns:
Scale engine
Seealso:setScaleEngine()constQwtScaleMap&QwtAbstractScale::scaleMap()constReturns:
Map to translate between scale and widget coordinates
intQwtAbstractScale::scaleMaxMajor()constReturns:
Maximal number of major tick intervals
Seealso:setScaleMaxMajor(), scaleMaxMinor()intQwtAbstractScale::scaleMaxMinor()constReturns:
Maximal number of minor tick intervals
Seealso:setScaleMaxMinor(), scaleMaxMajor()doubleQwtAbstractScale::scaleStepSize()constReturns:
Hint for the step size of the scale
Seealso:setScaleStepSize(), QwtScaleEngine::divideScale()voidQwtAbstractScale::setAbstractScaleDraw(QwtAbstractScaleDraw*scaleDraw)[protected]
Set a scale draw. scaleDraw has to be created with new and will be deleted in the destructor or the next
call of setAbstractScaleDraw().
Seealso:abstractScaleDraw()voidQwtAbstractScale::setLowerBound(doublevalue)
Set the lower bound of the scale
Parameters:value Lower bound
Seealso:lowerBound(), setScale(), setUpperBound()Note:
For inverted scales the lower bound is greater than the upper bound
voidQwtAbstractScale::setScale(doublelowerBound,doubleupperBound)
Specify a scale. Define a scale by an interval
The ticks are calculated using scaleMaxMinor(), scaleMaxMajor() and scaleStepSize().
Parameters:lowerBound lower limit of the scale interval
upperBound upper limit of the scale interval
Note:
For inverted scales the lower bound is greater than the upper bound
voidQwtAbstractScale::setScale(constQwtInterval&interval)
Specify a scale. Define a scale by an interval
The ticks are calculated using scaleMaxMinor(), scaleMaxMajor() and scaleStepSize().
Parameters:interval Interval
voidQwtAbstractScale::setScale(constQwtScaleDiv&scaleDiv)
Specify a scale. scaleMaxMinor(), scaleMaxMajor() and scaleStepSize() and have no effect.
Parameters:scaleDiv Scale division
Seealso:
setAutoScale()
voidQwtAbstractScale::setScaleEngine(QwtScaleEngine*scaleEngine)
Set a scale engine. The scale engine is responsible for calculating the scale division and provides a
transformation between scale and widget coordinates.
scaleEngine has to be created with new and will be deleted in the destructor or the next call of
setScaleEngine.
voidQwtAbstractScale::setScaleMaxMajor(intticks)
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.
Parameters:ticks Maximal number of major ticks.
Seealso:scaleMaxMajor(), setScaleMaxMinor(), setScaleStepSize(), QwtScaleEngine::divideInterval()voidQwtAbstractScale::setScaleMaxMinor(intticks)
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.
Parameters:ticks Maximal number of minor ticks.
Seealso:scaleMaxMajor(), setScaleMaxMinor(), setScaleStepSize(), QwtScaleEngine::divideInterval()voidQwtAbstractScale::setScaleStepSize(doublestepSize)
Set the step size used for calculating a scale division. The step size is hint for calculating the
intervals for the major ticks of the scale. A value of 0.0 is interpreted as no hint.
Parameters:stepSize Hint for the step size of the scale
Seealso:scaleStepSize(), QwtScaleEngine::divideScale()Note:
Position and distance between the major ticks also depends on scaleMaxMajor().
voidQwtAbstractScale::setUpperBound(doublevalue)
Set the upper bound of the scale
Parameters:value Upper bound
Seealso:upperBound(), setScale(), setLowerBound()Note:
For inverted scales the lower bound is greater than the upper bound
intQwtAbstractScale::transform(doublevalue)const
Translate a scale value into a widget coordinate
Parameters:value Scale value
Returns:
Corresponding widget coordinate for value
Seealso:scaleMap(), invTransform()doubleQwtAbstractScale::upperBound()constReturns:
Upper bound of the scale
Seealso:setUpperBound(), setScale(), lowerBound()