casa
$Rev:20696$
|
#include <Util.h>
Static Public Member Functions | |
static void | showUserMessage (QString &msg, QWidget *parent) |
static double | degMinSecToRadians (int degrees, int mins, float secs) |
static double | hrMinSecToRadians (int hours, int mins, float secs) |
static QString | toHTML (const QString &baseStr) |
static int | getCenter (const Vector< Double > &values, Double &mean) |
static void | getRa (double radians, int &raHour, int &raMin, double &raSec) |
static void | getDec (double radians, int &decDeg, int &decMin, double &decSec) |
static void | minMax (double &min, double &max, const Vector< Double > &values) |
static QString | toDegreeString (int hrs, int mins, double secs) |
static QString | toDecString (int hrs, int mins, double secs) |
static void | appendSign (double rad, QString °reeString) |
static QList< QString > | getTitleCaseVariations (QString source) |
static QString | toTitleCase (QString word) |
static QString | stripBrackets (QString unitStr) |
Designed to take an input string of the format '[km/s]' and return 'km/s'. | |
static QString | stripFont (QString unitStr) |
Designed to take an input string of the format <font color="black">km/s</font>' and return 'km/s'. | |
Static Public Attributes | |
static const QString | ORGANIZATION |
static const QString | APPLICATION |
Private Member Functions | |
Util () | |
virtual | ~Util () |
Static Private Member Functions | |
static double | toRadians (double degrees) |
static double | toDecimalDegrees (int hrs, int mins, float seconds) |
Static Private Attributes | |
static const double | PI |
static const double | TIME_CONV |
static const double | RAD_DEGREE_CONVERSION |
casa::Util::Util | ( | ) | [private] |
virtual casa::Util::~Util | ( | ) | [private, virtual] |
static void casa::Util::appendSign | ( | double | rad, |
QString & | degreeString | ||
) | [static] |
static double casa::Util::degMinSecToRadians | ( | int | degrees, |
int | mins, | ||
float | secs | ||
) | [static] |
static int casa::Util::getCenter | ( | const Vector< Double > & | values, |
Double & | mean | ||
) | [static] |
static void casa::Util::getDec | ( | double | radians, |
int & | decDeg, | ||
int & | decMin, | ||
double & | decSec | ||
) | [static] |
static void casa::Util::getRa | ( | double | radians, |
int & | raHour, | ||
int & | raMin, | ||
double & | raSec | ||
) | [static] |
static QList<QString> casa::Util::getTitleCaseVariations | ( | QString | source | ) | [static] |
static double casa::Util::hrMinSecToRadians | ( | int | hours, |
int | mins, | ||
float | secs | ||
) | [static] |
static void casa::Util::minMax | ( | double & | min, |
double & | max, | ||
const Vector< Double > & | values | ||
) | [static] |
static void casa::Util::showUserMessage | ( | QString & | msg, |
QWidget * | parent | ||
) | [static] |
static QString casa::Util::stripBrackets | ( | QString | unitStr | ) | [static] |
Designed to take an input string of the format '[km/s]' and return 'km/s'.
static QString casa::Util::stripFont | ( | QString | unitStr | ) | [static] |
Designed to take an input string of the format <font color="black">km/s</font>' and return 'km/s'.
static double casa::Util::toDecimalDegrees | ( | int | hrs, |
int | mins, | ||
float | seconds | ||
) | [static, private] |
static QString casa::Util::toDecString | ( | int | hrs, |
int | mins, | ||
double | secs | ||
) | [static] |
static QString casa::Util::toDegreeString | ( | int | hrs, |
int | mins, | ||
double | secs | ||
) | [static] |
static QString casa::Util::toHTML | ( | const QString & | baseStr | ) | [static] |
static double casa::Util::toRadians | ( | double | degrees | ) | [static, private] |
static QString casa::Util::toTitleCase | ( | QString | word | ) | [static] |
const QString casa::Util::APPLICATION [static] |
const QString casa::Util::ORGANIZATION [static] |
const double casa::Util::PI [static, private] |
const double casa::Util::RAD_DEGREE_CONVERSION [static, private] |
const double casa::Util::TIME_CONV [static, private] |