Engauge Digitizer  2
Public Member Functions | List of all members
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. More...
 
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. More...
 
- Public Member Functions inherited from FormatDegreesMinutesSecondsBase
 FormatDegreesMinutesSecondsBase ()
 Single constructor. More...
 
 ~FormatDegreesMinutesSecondsBase ()
 
QValidator::State parseInput (const QString &stringUntrimmed, double &value) const
 Parse the input string into a number value. More...
 

Additional Inherited Members

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

Detailed Description

Angular units according to CoordUnitsNonPolarTheta.

Definition at line 14 of file FormatDegreesMinutesSecondsNonPolarTheta.h.

Constructor & Destructor Documentation

◆ FormatDegreesMinutesSecondsNonPolarTheta()

FormatDegreesMinutesSecondsNonPolarTheta::FormatDegreesMinutesSecondsNonPolarTheta ( )

Single constructor.

Definition at line 14 of file FormatDegreesMinutesSecondsNonPolarTheta.cpp.

16 {

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 18 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) {
30  return formatOutputDegreesMinutesSeconds (value);
31 
34  isNsHemisphere);
35 
36  default:
37  break;
38  }
39 
40  LOG4CPP_ERROR_S ((*mainCat)) << "FormatDegreesMinutesSecondsNonPolarTheta::formatOutput";
41  ENGAUGE_ASSERT (false);
42  return "";

The documentation for this class was generated from the following files:
LOG4CPP_ERROR_S
#define LOG4CPP_ERROR_S(logger)
Definition: convenience.h:12
COORD_UNITS_NON_POLAR_THETA_DEGREES_MINUTES_SECONDS
Definition: CoordUnitsNonPolarTheta.h:18
mainCat
log4cpp::Category * mainCat
Definition: Logger.cpp:14
FormatDegreesMinutesSecondsBase::formatOutputDegreesMinutesSecondsNsew
QString formatOutputDegreesMinutesSecondsNsew(double value, bool isNsHemisphere) const
Format as degrees, minutes and seconds with hemisphere.
Definition: FormatDegreesMinutesSecondsBase.cpp:53
FormatDegreesMinutesSecondsBase::formatOutputDegreesMinutesSeconds
QString formatOutputDegreesMinutesSeconds(double value) const
Format as degrees, minutes and seconds without hemisphere.
Definition: FormatDegreesMinutesSecondsBase.cpp:29
ENGAUGE_ASSERT
#define ENGAUGE_ASSERT(cond)
Drop in replacement for Q_ASSERT if defined(QT_NO_DEBUG) && !defined(QT_FORCE_ASSERTS) define ENGAUGE...
Definition: EngaugeAssert.h:19
COORD_UNITS_NON_POLAR_THETA_DEGREES_MINUTES_SECONDS_NSEW
Definition: CoordUnitsNonPolarTheta.h:19