27 #ifndef GSKYREGIONCIRCLE_HPP
28 #define GSKYREGIONCIRCLE_HPP
80 const double&
radius(
void)
const;
81 void radius(
const double& radius);
84 void centre(
const double& ra,
const double& dec);
85 double ra(
void)
const;
86 double dec(
void)
const;
87 void read(
const std::string& line);
88 std::string
write(
void)
const;
115 return (
"GSkyRegionCircle");
void free_members(void)
Delete class members.
std::string print(const GChatter &chatter=NORMAL) const
Print circular region.
bool overlaps(const GSkyRegion ®) const
Checks if region is overlapping with this region.
double dec_deg(void) const
Returns Declination in degrees.
GSkyDir m_centre
Centre or reference point of the region.
Sky direction class interface definition.
GSkyRegionCircle(void)
Void constructor.
friend bool operator!=(const GSkyRegionCircle &a, const GSkyRegionCircle &b)
Non equality operator.
void read(const std::string &line)
Read region from DS9 string.
Interface for the circular sky region class.
const double & radius(void) const
Return circular region radius (in degrees)
virtual ~GSkyRegionCircle(void)
Destructor.
std::string classname(void) const
Return class name.
Abstract interface for the sky region class.
std::string write(void) const
Write region into a string.
double m_radius
Radius of circular the region (degrees)
void compute_solid_angle(void)
Compute solid angle.
double ra_deg(void) const
Returns Right Ascension in degrees.
double dec(void) const
Return circular region centre Declination.
void radec_deg(const double &ra, const double &dec)
Set equatorial sky direction (degrees)
const GSkyDir & centre(void) const
Return circular region centre.
void copy_members(const GSkyRegionCircle ®ion)
Copy class members.
bool contains(const GSkyDir &dir) const
Checks if sky direction lies within region.
GSkyRegionCircle & operator=(const GSkyRegionCircle ®ion)
Assignment operator.
Abstract sky region base class interface definition.
friend bool operator==(const GSkyRegionCircle &a, const GSkyRegionCircle &b)
Equality operator.
Mathematical function definitions.
GSkyRegionCircle * clone(void) const
Clone circular sky region.
void clear(void)
Clear instance.
void init_members(void)
Initialise class members.
double ra(void) const
Return circular region centre Right Ascension.