Engauge Digitizer  2
Public Member Functions | Protected Member Functions | List of all members
FormatCoordsUnitsStrategyAbstractBase Class Reference

Common methods for formatting strategies. More...

#include <FormatCoordsUnitsStrategyAbstractBase.h>

Inheritance diagram for FormatCoordsUnitsStrategyAbstractBase:
FormatCoordsUnitsStrategyNonPolarTheta FormatCoordsUnitsStrategyPolarTheta

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. More...
 

Detailed Description

Common methods for formatting strategies.

Definition at line 14 of file FormatCoordsUnitsStrategyAbstractBase.h.

Member Function Documentation

◆ precisionDigitsForRawNumber()

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.


The documentation for this class was generated from the following files: