casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Static Public Member Functions | Static Public Attributes | Private Member Functions | Static Private Member Functions | Static Private Attributes
casa::Util Class Reference

#include <Util.h>

List of all members.

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 &degreeString)
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

Detailed Description

Definition at line 35 of file Util.h.


Constructor & Destructor Documentation

casa::Util::Util ( ) [private]
virtual casa::Util::~Util ( ) [private, virtual]

Member Function Documentation

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]

Member Data Documentation

const QString casa::Util::APPLICATION [static]

Definition at line 38 of file Util.h.

const QString casa::Util::ORGANIZATION [static]

Definition at line 37 of file Util.h.

const double casa::Util::PI [static, private]

Definition at line 69 of file Util.h.

const double casa::Util::RAD_DEGREE_CONVERSION [static, private]

Definition at line 71 of file Util.h.

const double casa::Util::TIME_CONV [static, private]

Definition at line 70 of file Util.h.


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