70 QString::SectionFlag flag = QString::SectionSkipEmpty;
71 bool degreesSucceeded, minutesSucceeded, secondsSucceeded;
73 double degrees = angle.section(
' ', 0, 0, flag).toDouble(°reesSucceeded);
74 double minutes = angle.section(
' ', 1, 1, flag).toDouble(&minutesSucceeded);
75 double seconds = angle.section(
' ', 2, 2, flag).toDouble(&secondsSucceeded);
77 if (!(degreesSucceeded && minutesSucceeded && secondsSucceeded) ) {
78 QString msg = QObject::tr(
"[%1] is not a vaid input to Angle. It needs to be of the form: "
79 "\"dd mm ss.ss\"").arg(angle);
89 double decimalDegrees = degrees + minutes/60.0 + seconds/3600.0;
137 double otherAngle = angle2.
radians();
155 double otherAngle = angle2.
radians();
225 IString msg =
"Cannot compare a invalid angles with the < operator";
242 IString msg =
"Cannot compare a invalid angles with the > operator";
257 QString textResult =
"";
263 textResult +=
" degrees";
290 IString msg =
"Angle can not interpret the enumerated value [" +
308 double angleValue =
Null;
320 if(angleValue ==
Null) {
321 IString msg =
"Angle can not interpret the enumerated value [" +
339 IString msg =
"Angle cannot be a non-Null special pixel";
359 IString msg =
"Angle can not interpret the enumerated value [" +
380 dbg.nospace() << angleToPrint.
radians() <<
" <radians> ("
381 << angleToPrint.
degrees() <<
" <degrees>)";