Common methods for formatting strategies. More...
#include <FormatCoordsUnitsStrategyAbstractBase.h>
Public Member Functions | |
| FormatCoordsUnitsStrategyAbstractBase () | |
| Single constructor. | |
Protected Member Functions | |
| int | precisionDigitsForRawNumber (double valueUnformatted, double valueUnformattedOther, bool isXTheta, const DocumentModelGeneral &modelGeneral, const Transformation &transformation) const |
| Compute precision for outputting an unformatted value, consistent with the resolution at the point where that point lies. | |
Common methods for formatting strategies.
Definition at line 14 of file FormatCoordsUnitsStrategyAbstractBase.h.
| int FormatCoordsUnitsStrategyAbstractBase::precisionDigitsForRawNumber | ( | double | valueUnformatted, | |
| double | valueUnformattedOther, | |||
| bool | isXTheta, | |||
| const DocumentModelGeneral & | modelGeneral, | |||
| const Transformation & | transformation | |||
| ) | const [protected] |
Compute precision for outputting an unformatted value, consistent with the resolution at the point where that point lies.
This algorithm causes many digits to appear when a graph's dynamic range is relatively small (like -118.4 to -118.2 degrees in longitude), and fewer digits to appear when a graph's dynamic range is relatively large (like 0 to 100)
Definition at line 17 of file FormatCoordsUnitsStrategyAbstractBase.cpp.
1.6.1