27 #ifndef GSKYREGIONRECTANGLE_HPP
28 #define GSKYREGIONRECTANGLE_HPP
75 const double& posang);
89 void centre(
const double& ra,
const double& dec);
90 double ra(
void)
const;
91 double dec(
void)
const;
92 const double&
width(
void)
const;
93 void width(
const double& width);
94 const double&
height(
void)
const;
95 void height(
const double& height);
96 const double&
posang(
void)
const;
97 void posang(
const double& posang);
99 void read(
const std::string& line);
100 std::string
write(
void)
const;
132 return (
"GSkyRegionRectangle");
void compute_solid_angle(void)
Compute solid angle of rectangle.
GSkyPixel dir_to_local(const GSkyDir &dir) const
Transform sky direction to local rectangle coordinates.
void free_members(void)
Delete class members.
double dec_deg(void) const
Returns Declination in degrees.
std::string print(const GChatter &chatter=NORMAL) const
Print rectangular region.
GSkyRegionRectangle * clone(void) const
Clone rectangular sky region.
Sky direction class interface definition.
GSkyRegionRectangle & operator=(const GSkyRegionRectangle ®ion)
Assignment operator.
double dec(void) const
Return rectangular region centre Declination.
GSkyDir local_to_dir(const GSkyPixel &local) const
Transform local rectangle coordinates to sky direction.
std::string classname(void) const
Return class name.
const double & posang(void) const
Return region position angle (in degrees)
Interface for the rectangular sky region class.
std::string write(void) const
Write region into a string.
const double & height(void) const
Return region height extension (in degrees)
GSkyDir m_centre
Centre or reference point of the region.
const double & width(void) const
Return region width extension (in degrees)
Abstract interface for the sky region class.
double m_width
Width of the region (degrees)
bool contains(const GSkyDir &dir) const
Checks if sky direction lies within region.
GSkyRegionRectangle(void)
Void constructor.
double ra_deg(void) const
Returns Right Ascension in degrees.
void radec_deg(const double &ra, const double &dec)
Set equatorial sky direction (degrees)
void copy_members(const GSkyRegionRectangle ®ion)
Copy class members.
bool overlaps(const GSkyRegion ®) const
Checks if region is overlapping with this region.
void clear(void)
Clear instance.
double ra(void) const
Return rectangular region centre Right Ascension.
GSkyDir corner(const int &index) const
Return sky direction of one corner of the rectangle.
double m_height
Height of the region (degrees)
const GSkyDir & centre(void) const
Return rectangular region centre.
double m_posang
Position angle, counterclockwise from North (degrees)
void init_members(void)
Initialise class members.
void read(const std::string &line)
Read region from DS9 string.
Abstract sky region base class interface definition.
virtual ~GSkyRegionRectangle(void)
Destructor.