My Project
 All Classes Files Functions Variables Enumerations Enumerator Friends Macros Pages
gcp::util::HourAngle Class Reference
Inheritance diagram for gcp::util::HourAngle:
gcp::util::Angle gcp::util::ConformableQuantity

Public Member Functions

 HourAngle ()
 
void setHours (double hours)
 
void setHours (std::string hours)
 
void setHours (double hour, double min, double sec)
 
virtual ~HourAngle ()
 
double hours ()
 
double seconds ()
 
unsigned getIntegerHours ()
 
unsigned getIntegerMinutes ()
 
unsigned getIntegerSeconds ()
 
unsigned getIntegerMilliSeconds ()
 
HourAngle operator+ (HourAngle &angle)
 
HourAngle operator- (HourAngle &angle)
 
- Public Member Functions inherited from gcp::util::Angle
 Angle (bool modulo=false)
 
 Angle (std::string degrees, bool modulo=false)
 
 Angle (const Radians &units, double radians, bool modulo=false)
 
 Angle (const Degrees &units, double degrees, bool modulo=false)
 
 Angle (const MilliArcSec &units, double mas, bool modulo=false)
 
 Angle (const ArcSec &units, double as, bool modulo=false)
 
 Angle (const ArcMinutes &units, double am, bool modulo=false)
 
 Angle (Angle &angle)
 
 Angle (const Angle &angle)
 
void operator= (Angle &angle)
 
void operator= (const Angle &angle)
 
virtual ~Angle ()
 
void setRadians (double radians)
 
void setDegrees (double degrees)
 
void setDegrees (double degrees, double arcmin, double arcsec)
 
void setArcMinutes (double am)
 
void setMas (double mas)
 
void setArcSec (double as)
 
void setDegrees (std::string degrees)
 
virtual void addRadians (double radians)
 
virtual void addDegrees (double degrees)
 
virtual void addDegrees (std::string degrees)
 
double radians ()
 
double degrees ()
 
double arcsec ()
 
double arcmin ()
 
double mas ()
 
std::string strDegrees ()
 
Angle operator+ (Angle &angle)
 
Angle operator- (Angle &angle)
 
void operator/= (unsigned uval)
 
Angle operator/ (unsigned uval)
 
bool operator> (Angle &angle)
 
bool operator> (const Angle &angle)
 
bool operator>= (Angle &angle)
 
bool operator< (Angle &angle)
 
bool operator< (const Angle &angle)
 
bool operator<= (Angle &angle)
 
void initialize ()
 
- Public Member Functions inherited from gcp::util::ConformableQuantity
 ConformableQuantity ()
 
virtual ~ConformableQuantity ()
 
bool isFinite ()
 

Static Public Attributes

static const double hourPerRad_ = 12/M_PI
 
static const double secPerRad_ = 3600*12/M_PI
 
- Static Public Attributes inherited from gcp::util::Angle
static const double pi_ = M_PI
 
static const double twoPi_ = 2*M_PI
 
static const double degPerRad_ = 180/M_PI
 
static const double arcSecPerDegree_ = 3600
 
static const double masPerDegree_ = Angle::arcSecPerDegree_ * 1000
 
static const double arcSecPerRad_ = 206265
 
static const double arcMinPerRad_ = 60 * Angle::degPerRad_
 
static const double masPerRad_ = Angle::masPerDegree_ * Angle::degPerRad_
 

Friends

std::ostream & operator<< (std::ostream &os, HourAngle &hour)
 

Additional Inherited Members

- Static Public Member Functions inherited from gcp::util::Angle
static double sexagesimalToDouble (std::string valStr)
 
static std::string doubleToSexagesimal (double val)
 
- Protected Member Functions inherited from gcp::util::Angle
 Angle (double radians, bool modulo)
 
- Protected Member Functions inherited from gcp::util::ConformableQuantity
void setFinite (bool finite)
 
- Protected Attributes inherited from gcp::util::Angle
double radians_
 
bool modulo_
 
- Protected Attributes inherited from gcp::util::ConformableQuantity
bool finite_
 

Constructor & Destructor Documentation

gcp::util::HourAngle::HourAngle ( )
inline

Public constructor intializes to angle modulo 2*PI

HourAngle::~HourAngle ( )
virtual

Destructor.

Member Function Documentation

double gcp::util::HourAngle::hours ( )
inline

Return the contents of this object

HourAngle HourAngle::operator+ ( HourAngle angle)

Add two HourAngles

....................................................................... Addition operator for HourAngle.

HourAngle HourAngle::operator- ( HourAngle angle)

Subtract two HourAngles

....................................................................... Subtraction operator for HourAngle.

double gcp::util::HourAngle::seconds ( )
inline

Return the contents of this object

void HourAngle::setHours ( double  hours)

Constructor.

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
HourAngle hour 
)
friend

Allows cout << HourAngle


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