27#ifndef GSKYREGIONMAP_HPP
28#define GSKYREGIONMAP_HPP
70 void read(
const std::string& line);
71 std::string
write(
void)
const;
107 return (
"GSkyRegionMap");
Filename class interface definition.
Sky map class definition.
Abstract sky region base class interface definition.
Interface for the circular sky region class.
Interface for a sky region map.
GSkyMap m_map
The region map.
void set_nonzero_indices(void)
Create an array of non-zero pixel indices.
void read(const std::string &line)
Create region from a string in DS9 format.
bool contains(const GSkyDir &dir) const
Check if a given direction is contained in this region.
void copy_members(const GSkyRegionMap ®ion)
Copy class members.
GSkyRegionMap(void)
Void constructor.
GSkyRegionMap * clone(void) const
Clone sky region map.
bool overlaps(const GSkyRegion ®) const
Checks if a given region is overlapping with this region.
void init_members(void)
Initialise class members.
const std::vector< int > & nonzero_indices(void) const
Get non-zero index vector.
virtual ~GSkyRegionMap(void)
Destructor.
std::string write(void) const
Write string describing region in DS9 region format.
void compute_solid_angle(void)
Compute solid angle.
void load(const GFilename &filename)
Load region map from FITS file.
void set_region_rectangle(const GSkyRegionRectangle *rect)
Set region map from region rectangle.
std::string classname(void) const
Return class name.
const GSkyMap & map(void) const
Return sky map.
std::string print(const GChatter &chatter=NORMAL) const
Print region description.
std::vector< int > m_nonzero_indices
Vector of non-zero pixel indices.
void set_region_circle(const GSkyRegionCircle *circle)
Set region map from region circle.
void free_members(void)
Delete class members.
void clear(void)
Clear instance.
GSkyRegionMap & operator=(const GSkyRegionMap ®ion)
Assignment operator.
Interface for the rectangular sky region class.
Abstract interface for the sky region class.