SRGDecimalScale::SetResolution

voidSRGDecimalScale::SetResolution(doubledResolution)

Specifies the resolution of the steps in between labels

Defined in: DScale.h

Parameters

dResolution

Desired resolution

Remarks

If your minimum and maximum values are 0 and 10 respectively and the resolution is set to 1.0, the scale will be calculated as follows:
If there is room for all the labels... Z 1 2 3 4 5 6 7 8 9 10
If there is not enough room... Z 2 4 6 8 10
If that won't fit... Z 5 10
Whatever the range of values, the scale will be divided by 1, 5, 2, and 10 repeatedly until a fit is found.

See also...

 GetResolutionm_dResolution