Rogue Wave Views Charts Package API Reference Guide |
Rogue Wave Views Documentation Home |
Class for computing the graduations of a scale. More...
#include <ilviews/charts/scaledis.h>
Public Member Functions | |
IlvAutoScaleStepsUpdater (IlvSingleScaleDisplayer *scale, IlDouble precision, IlvDim stepsSpacing=10, IlDouble precisionBase=10., IlBoolean autoSubSteps=IlTrue) | |
Constructor. More... | |
IlvAutoScaleStepsUpdater (IlvSingleScaleDisplayer *scale, IlvDim stepsSpacing=10, IlBoolean autoSubSteps=IlTrue, IlBoolean autoLabelFormat=IlTrue) | |
Constructor. More... | |
IlBoolean | getAutoLabelFormat () const |
Indicates whether the step label format is automatically computed. More... | |
IlBoolean | getAutoPrecision () const |
Indicates whether the precision is automatically computed. More... | |
IlBoolean | getAutoSubSteps () const |
Indicates whether the substeps are automatically computed. More... | |
IlDouble | getPrecision () const |
Returns the precision. More... | |
IlDouble | getPrecisionBase () const |
Returns the precision base. More... | |
IlvDim | getStepsSpacing () const |
Returns the steps spacing. More... | |
virtual void | getStepSubStepValues (const IlvProjectorArea &area, IlUInt &stepsCount, IlDouble *&stepValues, IlUInt &subStepsCount, IlDouble *&subStepValues) const |
Computes and returns the step and substep values for the associated scale. More... | |
void | setAutoLabelFormat (IlBoolean autoLabelFormat) |
Specifies whether the step label format is automatically computed. More... | |
void | setAutoPrecision (IlBoolean autoPrecision) |
Specifies whether the precision is automatically computed. More... | |
void | setAutoSubSteps (IlBoolean autoSubSteps, IlUInt subStepsCount=0) |
Specifies whether the substeps are automatically computed. More... | |
void | setPrecision (IlDouble precision, IlDouble precisionBase=10.) |
Sets the precision and the precision base. More... | |
void | setStepsSpacing (IlvDim stepsSpacing) |
Sets the steps spacing. More... | |
Public Member Functions inherited from IlvConstantScaleStepsUpdater | |
IlvConstantScaleStepsUpdater (IlvSingleScaleDisplayer *scale) | |
Constructor. More... | |
IlvConstantScaleStepsUpdater (IlvSingleScaleDisplayer *scale, IlUInt stepsCount, IlUInt subStepsCount=0) | |
Constructor. More... | |
IlvConstantScaleStepsUpdater (IlvSingleScaleDisplayer *scale, IlDouble stepUnit, IlDouble subStepUnit=0.) | |
Constructor. More... | |
virtual IlBoolean | checkRange (IlvCoordInterval &range) const |
Checks whether an interval is valid with respect to the step definition. More... | |
void | fixStepsCount (IlUInt stepsCount, IlUInt subStepsCount) |
Sets the number of steps and the number of substeps between two steps. More... | |
void | fixStepUnit (IlDouble stepUnit, IlDouble subStepUnit) |
Sets the step unit and the substep unit. More... | |
IlDouble | getFirstStepData () const |
Returns the data value associated with the first major step. More... | |
IlDouble | getLastStepData () const |
Returns the data value associated with the last major step. More... | |
IlUInt | getStepsCount () const |
Returns the number of major steps. More... | |
IlDouble | getStepUnit () const |
Returns the step unit. More... | |
IlUInt | getSubStepsCount () const |
Returns the number of minor steps between two major steps. More... | |
IlDouble | getSubStepUnit () const |
Returns the substep unit. More... | |
IlBoolean | isFirstStepDataDefined () const |
Indicates whether a data value is associated with the first major step. More... | |
IlBoolean | isLastStepDataDefined () const |
Indicates whether a data value is associated with the last major step. More... | |
void | setFirstStepData (IlDouble value) |
Sets the data value associated with the first major step. More... | |
void | setLastStepData (IlDouble value) |
Sets the data value associated with the last major step. More... | |
Public Member Functions inherited from IlvScaleStepsUpdater | |
virtual char * | computeStepLabel (IlDouble value) const |
Computes and returns the label displayed for a given data value. More... | |
IlvCoordinateInfo * | getCoordinateInfo () const |
Deprecated More... | |
IlvSingleScaleDisplayer * | getScale () const |
Returns the scale associated with the current scale steps updater. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from IlvScaleStepsUpdater | |
static IlvScaleStepsUpdater * | Get (const IlvSingleScaleDisplayer *scale) |
Returns the scale steps updater set on a given scale. More... | |
static IlvScaleStepsUpdater * | Remove (IlvSingleScaleDisplayer *scale) |
Removes the scale steps updater set on a given scale. More... | |
static IlvScaleStepsUpdater * | Set (IlvSingleScaleDisplayer *scale, IlvScaleStepsUpdater *updater) |
Sets a scale steps updater on a given scale. More... | |
Protected Member Functions inherited from IlvScaleStepsUpdater | |
IlvScaleStepsUpdater (IlvSingleScaleDisplayer *scale) | |
Constructor. More... | |
Class for computing the graduations of a scale.
Library: ilvcharts
IlvAutoScaleStepsUpdater
is a subclass of IlvConstantScaleStepsUpdater
that allows you to perform an automatic computation of the steps and the substeps of a scale.
IlvAutoScaleStepsUpdater::IlvAutoScaleStepsUpdater | ( | IlvSingleScaleDisplayer * | scale, |
IlDouble | precision, | ||
IlvDim | stepsSpacing = 10 , |
||
IlDouble | precisionBase = 10. , |
||
IlBoolean | autoSubSteps = IlTrue |
||
) |
Constructor.
Initializes a new IlvAutoScaleStepsUpdater
object. By default, the step label format is not automatically computed.
scale | The scale associated with the current scale steps updater. |
precision | The precision used to compute the step values. |
stepsSpacing | The minimum spacing that is left between two steps. |
precisionBase | The precision base used to compute the step values. |
autoSubSteps | The Boolean value indicating whether the number of substeps is automatically computed. |
IlvAutoScaleStepsUpdater::IlvAutoScaleStepsUpdater | ( | IlvSingleScaleDisplayer * | scale, |
IlvDim | stepsSpacing = 10 , |
||
IlBoolean | autoSubSteps = IlTrue , |
||
IlBoolean | autoLabelFormat = IlTrue |
||
) |
Constructor.
Initializes a new IlvAutoScaleStepsUpdater
object. By default, the precision is automatically computed and the precision base is set to 10
.
scale | The scale associated with the current scale steps updater. |
stepsSpacing | The minimum spacing that is left between two steps. |
autoSubSteps | The Boolean value indicating whether the number of substeps is automatically computed. |
autoLabelFormat | The Boolean value indicating whether the step label format is automatically computed. |
IlBoolean IlvAutoScaleStepsUpdater::getAutoLabelFormat | ( | ) | const |
Indicates whether the step label format is automatically computed.
IlTrue
if the step label format is automatically computed and IlFalse
otherwise. IlBoolean IlvAutoScaleStepsUpdater::getAutoPrecision | ( | ) | const |
Indicates whether the precision is automatically computed.
IlTrue
if the precision is automatically computed and IlFalse
otherwise. IlBoolean IlvAutoScaleStepsUpdater::getAutoSubSteps | ( | ) | const |
Indicates whether the substeps are automatically computed.
IlTrue
if the substeps are automatically computed and IlFalse
otherwise. IlDouble IlvAutoScaleStepsUpdater::getPrecision | ( | ) | const |
Returns the precision.
IlDouble IlvAutoScaleStepsUpdater::getPrecisionBase | ( | ) | const |
Returns the precision base.
IlvDim IlvAutoScaleStepsUpdater::getStepsSpacing | ( | ) | const |
Returns the steps spacing.
|
virtual |
Computes and returns the step and substep values for the associated scale.
area | The data area definition. This data area definition can be retrieved with the IlvChartGraphic::getProjectorArea() method. |
stepsCount | Returns the number of major steps. |
stepValues | Returns the values associated with the major steps. |
subStepsCount | Returns the number of minor steps. |
subStepValues | Returns the values associated with the minor steps. |
Reimplemented from IlvConstantScaleStepsUpdater.
void IlvAutoScaleStepsUpdater::setAutoLabelFormat | ( | IlBoolean | autoLabelFormat | ) |
Specifies whether the step label format is automatically computed.
autoLabelFormat | The new value of the flag indicating whether the step label format is automatically computed. |
void IlvAutoScaleStepsUpdater::setAutoPrecision | ( | IlBoolean | autoPrecision | ) |
Specifies whether the precision is automatically computed.
autoPrecision | The new value of the flag indicating whether the precision is automatically computed. |
Specifies whether the substeps are automatically computed.
autoSubSteps | The new value of the flag indicating whether the substeps are automatically computed. |
subStepsCount | The defined substeps count, if the substeps count is not automatically computed. |
Sets the precision and the precision base.
precision | The new precision. |
precisionBase | The new precision base. |
void IlvAutoScaleStepsUpdater::setStepsSpacing | ( | IlvDim | stepsSpacing | ) |
Sets the steps spacing.
stepsSpacing | The new minimum spacing between two steps. |
© Copyright 2018, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.