Engauge Digitizer  2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 15 of file FormatDegreesMinutesSecondsPolarTheta.h.

Constructor & Destructor Documentation

FormatDegreesMinutesSecondsPolarTheta::FormatDegreesMinutesSecondsPolarTheta ( )

Single constructor.

Definition at line 17 of file FormatDegreesMinutesSecondsPolarTheta.cpp.

18 {
19 }

Member Function Documentation

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 
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 "";
52 }
QString formatOutputDegreesMinutesSeconds(double value) const
Format as degrees, minutes and seconds without hemisphere.
#define LOG4CPP_ERROR_S(logger)
Definition: convenience.h:12
QString formatOutputDegreesMinutesSecondsNsew(double value, bool isNsHemisphere) const
Format as degrees, minutes and seconds with hemisphere.
log4cpp::Category * mainCat
Definition: Logger.cpp:14
#define ENGAUGE_ASSERT(cond)
Drop in replacement for Q_ASSERT if defined(QT_NO_DEBUG) &amp;&amp; !defined(QT_FORCE_ASSERTS) define ENGAUGE...
Definition: EngaugeAssert.h:20

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