Base class for computing the graduations of a scale.
More...
#include <ilviews/charts/scaledis.h>
|
class | IlvSingleScaleDisplayer |
|
Base class for computing the graduations of a scale.
Library: ilvcharts
IlvScaleStepsUpdater
is an abstract base class that allows you to compute the steps and the substeps for a single scale.
- See also
IlvNamedProperty
, IlvSingleScaleDisplayer
.
◆ IlvScaleStepsUpdater()
Constructor.
Initializes a new IlvScaleStepsUpdater
object.
- Parameters
-
scale | The scale associated with the current scale steps updater. |
◆ checkRange()
Checks whether an interval is valid with respect to the step definition.
Called whenever the range of the coordinate associated with the current scale is modified. With this method, you can modify the interval range so that it becomes consistent with the steps definition. The default implementation simply returns IlTrue
.
- Parameters
-
- Returns
IlFalse
if the range was not correct and had to be modified, and IlTrue
otherwise.
Reimplemented in IlvLogScaleStepsUpdater, and IlvConstantScaleStepsUpdater.
◆ computeStepLabel()
virtual char* IlvScaleStepsUpdater::computeStepLabel |
( |
IlDouble |
value | ) |
const |
|
virtual |
◆ Get()
Returns the scale steps updater set on a given scale.
- Returns
- A pointer to the scale steps updater set on a given scale. This scale steps updater is the one used to compute the graduations for the scale.
- Parameters
-
scale | The scale on which the returned scale steps updater is set. |
◆ getCoordinateInfo()
◆ getScale()
Returns the scale associated with the current scale steps updater.
- Returns
- The scale associated with the current scale steps updater.
◆ getStepSubStepValues()
virtual void IlvScaleStepsUpdater::getStepSubStepValues |
( |
const IlvProjectorArea & |
area, |
|
|
IlUInt & |
stepsCount, |
|
|
IlDouble *& |
stepValues, |
|
|
IlUInt & |
subStepsCount, |
|
|
IlDouble *& |
subStepValues |
|
) |
| const |
|
pure virtual |
◆ Remove()
Removes the scale steps updater set on a given scale.
- Parameters
-
scale | The scale for which the scale steps updater is removed. |
◆ Set()
Sets a scale steps updater on a given scale.
The scale steps updater updater will be used to compute the graduations for the scale scale.
- Parameters
-
scale | The scale on which the scale steps updater updater is set. |
updater | The new scale steps updater that is set on the scale scale.
|