Engauge Digitizer  2
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. More...
 
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. 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 CoordUnitsPolarTheta.

Definition at line 14 of file FormatDegreesMinutesSecondsPolarTheta.h.

Constructor & Destructor Documentation

◆ FormatDegreesMinutesSecondsPolarTheta()

FormatDegreesMinutesSecondsPolarTheta::FormatDegreesMinutesSecondsPolarTheta ( )

Single constructor.

Definition at line 16 of file FormatDegreesMinutesSecondsPolarTheta.cpp.

18 {

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 20 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 
38  return formatOutputDegreesMinutesSeconds (value);
39 
42  isNsHemisphere);
43 
44  default:
45  break;
46  }
47 
48  LOG4CPP_ERROR_S ((*mainCat)) << "FormatDegreesMinutesSecondsPolarTheta::formatOutput";
49  ENGAUGE_ASSERT (false);
50 
51  return "";

The documentation for this class was generated from the following files:
COORD_UNITS_POLAR_THETA_DEGREES
Definition: CoordUnitsPolarTheta.h:14
COORD_UNITS_POLAR_THETA_DEGREES_MINUTES
Definition: CoordUnitsPolarTheta.h:15
LOG4CPP_ERROR_S
#define LOG4CPP_ERROR_S(logger)
Definition: convenience.h:12
COORD_UNITS_POLAR_THETA_DEGREES_MINUTES_SECONDS
Definition: CoordUnitsPolarTheta.h:16
mainCat
log4cpp::Category * mainCat
Definition: Logger.cpp:14
COORD_UNITS_POLAR_THETA_DEGREES_MINUTES_SECONDS_NSEW
Definition: CoordUnitsPolarTheta.h:17
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