casa
5.7.0-16
|
Convenience class for the different units available for coordinates/sizes. More...
#include <RSUtils.qo.h>
Public Member Functions | |
RSValue (double d=0) | |
RSValue (double d, casacore::Unit u) | |
RSValue (bool hms, long hd, long m, double s, bool minus=false) | |
~RSValue () | |
Static Public Member Functions | |
static bool | convertBetween (const QString &from, const casacore::String &fromUnits, RSValue &to) |
Converts the value in the given QString in the given units to the given RSValue. More... | |
static bool | convertBetween (const RSValue &from, QString &to, int precision=-1) |
Converts the value in the given RSValue to the given QString, using the given precision for the doubles. More... | |
static bool | convertBetween (const RSValue &from, RSValue &to, const casacore::String &toUnits) |
Converts the value in the given RSValue to the give RSValue which uses the given units. More... | |
Public Attributes | |
bool | isQuantum |
bool | isHMS |
bool | isMinusZero |
casacore::Quantum< double > | val |
long | hOrD |
long | min |
double | sec |
Static Public Attributes | |
static const casacore::String | DEG |
casacore::Conversion methods/constants // More... | |
static const casacore::String | RAD |
static const casacore::String | ARCSEC |
static const casacore::String | ARCMIN |
static const casacore::String | HMS |
static const casacore::String | DMS |
Convenience class for the different units available for coordinates/sizes.
Two modes: quantum and HMS/DMS (distinguished by the "isQuantum" flag).
Definition at line 328 of file RSUtils.qo.h.
|
inline |
Definition at line 330 of file RSUtils.qo.h.
|
inline |
Definition at line 333 of file RSUtils.qo.h.
|
inline |
Definition at line 336 of file RSUtils.qo.h.
|
inline |
Definition at line 340 of file RSUtils.qo.h.
|
static |
|
static |
Converts the value in the given RSValue to the given QString, using the given precision for the doubles.
|
static |
|
static |
Definition at line 359 of file RSUtils.qo.h.
Referenced by casa::QtEditRegionShape::sizeUnits().
|
static |
Definition at line 358 of file RSUtils.qo.h.
Referenced by casa::QtEditRegionShape::sizeUnits().
|
static |
casacore::Conversion methods/constants //
Units constants.
Definition at line 356 of file RSUtils.qo.h.
Referenced by casa::QtEditRegionShape::positionUnits(), and casa::QtEditRegionShape::sizeUnits().
|
static |
Definition at line 361 of file RSUtils.qo.h.
Referenced by casa::QtEditRegionShape::positionUnits().
|
static |
Definition at line 360 of file RSUtils.qo.h.
Referenced by casa::QtEditRegionShape::positionUnits().
long casa::RSValue::hOrD |
Definition at line 347 of file RSUtils.qo.h.
bool casa::RSValue::isHMS |
Definition at line 343 of file RSUtils.qo.h.
bool casa::RSValue::isMinusZero |
Definition at line 344 of file RSUtils.qo.h.
bool casa::RSValue::isQuantum |
Definition at line 342 of file RSUtils.qo.h.
long casa::RSValue::min |
Definition at line 348 of file RSUtils.qo.h.
|
static |
Definition at line 357 of file RSUtils.qo.h.
Referenced by casa::QtEditRegionShape::positionUnits(), and casa::QtEditRegionShape::sizeUnits().
double casa::RSValue::sec |
Definition at line 349 of file RSUtils.qo.h.
casacore::Quantum<double> casa::RSValue::val |
Definition at line 346 of file RSUtils.qo.h.