Engauge Digitizer 2
Loading...
Searching...
No Matches
FormatDegreesMinutesSecondsNonPolarTheta Class Reference

Angular units according to CoordUnitsNonPolarTheta. More...

#include <FormatDegreesMinutesSecondsNonPolarTheta.h>

Inheritance diagram for FormatDegreesMinutesSecondsNonPolarTheta:
Inheritance graph
Collaboration diagram for FormatDegreesMinutesSecondsNonPolarTheta:
Collaboration graph

Public Member Functions

 FormatDegreesMinutesSecondsNonPolarTheta ()
 Single constructor.
QString formatOutput (CoordUnitsNonPolarTheta 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 CoordUnitsNonPolarTheta.

Definition at line 15 of file FormatDegreesMinutesSecondsNonPolarTheta.h.

Constructor & Destructor Documentation

◆ FormatDegreesMinutesSecondsNonPolarTheta()

FormatDegreesMinutesSecondsNonPolarTheta::FormatDegreesMinutesSecondsNonPolarTheta ( )

Single constructor.

Definition at line 15 of file FormatDegreesMinutesSecondsNonPolarTheta.cpp.

16{
17}

Member Function Documentation

◆ formatOutput()

QString FormatDegreesMinutesSecondsNonPolarTheta::formatOutput ( CoordUnitsNonPolarTheta 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 19 of file FormatDegreesMinutesSecondsNonPolarTheta.cpp.

22{
23 //LOG4CPP_INFO_S ((*mainCat)) << "FormatDegreesMinutesSecondsNonPolarTheta::formatOutput";
24
25 // See if similar method with hemisphere argument should have been called
27
28 switch (coordUnits) {
31
34 isNsHemisphere);
35
36 default:
37 break;
38 }
39
40 LOG4CPP_ERROR_S ((*mainCat)) << "FormatDegreesMinutesSecondsNonPolarTheta::formatOutput";
41 ENGAUGE_ASSERT (false);
42 return "";
43}
@ COORD_UNITS_NON_POLAR_THETA_DEGREES_MINUTES_SECONDS
@ COORD_UNITS_NON_POLAR_THETA_DEGREES_MINUTES_SECONDS_NSEW
#define ENGAUGE_ASSERT(cond)
Drop in replacement for Q_ASSERT.
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: