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