Engauge Digitizer 2
Loading...
Searching...
No Matches
Public Member Functions | List of all members
FormatDegreesMinutesSecondsPolarTheta Class Reference

Angular units according to CoordUnitsPolarTheta. More...

#include <FormatDegreesMinutesSecondsPolarTheta.h>

Inheritance diagram for FormatDegreesMinutesSecondsPolarTheta:
Inheritance graph
Collaboration diagram for FormatDegreesMinutesSecondsPolarTheta:
Collaboration graph

Public Member Functions

 FormatDegreesMinutesSecondsPolarTheta ()
 Single constructor.
 
QString formatOutput (CoordUnitsPolarTheta coordUnits, double value, bool isXTheta) const
 Format the degrees/minutes/seconds value. Distinguishing x/theta versus y/radius is required for N/S/E/W hemispheres.
 
- Public Member Functions inherited from FormatDegreesMinutesSecondsBase
 FormatDegreesMinutesSecondsBase ()
 Single constructor.
 
 ~FormatDegreesMinutesSecondsBase ()
 
QValidator::State parseInput (const QString &stringUntrimmed, double &value) const
 Parse the input string into a number value.
 

Additional Inherited Members

- Protected Member Functions inherited from FormatDegreesMinutesSecondsBase
QString formatOutputDegreesMinutesSeconds (double value) const
 Format as degrees, minutes and seconds without hemisphere.
 
QString formatOutputDegreesMinutesSecondsNsew (double value, bool isNsHemisphere) const
 Format as degrees, minutes and seconds with hemisphere.
 

Detailed Description

Angular units according to CoordUnitsPolarTheta.

Definition at line 15 of file FormatDegreesMinutesSecondsPolarTheta.h.

Constructor & Destructor Documentation

◆ FormatDegreesMinutesSecondsPolarTheta()

FormatDegreesMinutesSecondsPolarTheta::FormatDegreesMinutesSecondsPolarTheta ( )

Single constructor.

Definition at line 17 of file FormatDegreesMinutesSecondsPolarTheta.cpp.

18{
19}

Member Function Documentation

◆ formatOutput()

QString FormatDegreesMinutesSecondsPolarTheta::formatOutput ( CoordUnitsPolarTheta coordUnits,
double value,
bool isXTheta ) const

Format the degrees/minutes/seconds value. Distinguishing x/theta versus y/radius is required for N/S/E/W hemispheres.

Definition at line 21 of file FormatDegreesMinutesSecondsPolarTheta.cpp.

24{
25 //LOG4CPP_INFO_S ((*mainCat)) << "FormatDegreesMinutesSecondsPolarTheta::formatOutput";
26
27 // See if similar method with hemisphere argument should have been called
29
30 switch (coordUnits) {
32 return formatOutputDegrees (value);
33
35 return formatOutputDegreesMinutes (value);
36
39
43
44 default:
45 break;
46 }
47
48 LOG4CPP_ERROR_S ((*mainCat)) << "FormatDegreesMinutesSecondsPolarTheta::formatOutput";
49 ENGAUGE_ASSERT (false);
50
51 return "";
52}
@ COORD_UNITS_POLAR_THETA_DEGREES_MINUTES_SECONDS_NSEW
@ COORD_UNITS_POLAR_THETA_DEGREES_MINUTES
@ COORD_UNITS_POLAR_THETA_DEGREES
@ COORD_UNITS_POLAR_THETA_DEGREES_MINUTES_SECONDS
const int INNER_RADIUS_MIN
#define ENGAUGE_ASSERT(cond)
Drop in replacement for Q_ASSERT if defined(QT_NO_DEBUG) && !defined(QT_FORCE_ASSERTS) define ENGAUGE...
log4cpp::Category * mainCat
Definition Logger.cpp:14
QString formatOutputDegreesMinutesSeconds(double value) const
Format as degrees, minutes and seconds without hemisphere.
QString formatOutputDegreesMinutesSecondsNsew(double value, bool isNsHemisphere) const
Format as degrees, minutes and seconds with hemisphere.
#define LOG4CPP_ERROR_S(logger)
Definition convenience.h:12

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