FormatCoordsUnitsStrategyAbstractBase Class Reference

Common methods for formatting strategies. More...

#include <FormatCoordsUnitsStrategyAbstractBase.h>

Inheritance diagram for FormatCoordsUnitsStrategyAbstractBase:
FormatCoordsUnitsStrategyNonPolarTheta FormatCoordsUnitsStrategyPolarTheta

List of all members.

Public Member Functions

 FormatCoordsUnitsStrategyAbstractBase ()
 Single constructor.

Protected Member Functions

int precisionDigitsForRawNumber (double valueUnformatted, double valueUnformattedOther, bool isXTheta, const Transformation &transformation) const
 Compute precision for outputting an unformatted value, consistent with the resolution at the point where that point lies.

Detailed Description

Common methods for formatting strategies.

Definition at line 13 of file FormatCoordsUnitsStrategyAbstractBase.h.


Member Function Documentation

int FormatCoordsUnitsStrategyAbstractBase::precisionDigitsForRawNumber ( double  valueUnformatted,
double  valueUnformattedOther,
bool  isXTheta,
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 16 of file FormatCoordsUnitsStrategyAbstractBase.cpp.


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Enumerations Enumerator Friends

Generated on 31 May 2016 for Engauge Digitizer by  doxygen 1.6.1