27#ifndef GSKYREGIONS_HPP
28#define GSKYREGIONS_HPP
81 void remove(
const int& index);
113 return (
"GSkyRegions");
Definition of interface for container classes.
Exception handler interface definition.
Filename class interface definition.
Abstract sky region base class interface definition.
Interface class for container classes.
Abstract interface for the sky region class.
Sky region container class.
GSkyRegions * clone(void) const
Clone instance.
std::string print(const GChatter &chatter=NORMAL) const
Print regions.
void remove(const int &index)
Remove region from container.
void init_members(void)
Initialise class members.
const GFilename & filename(void) const
Return regions file name.
GSkyRegion * at(const int &index)
Return pointer to region.
virtual ~GSkyRegions(void)
Destructor.
GSkyRegions & operator=(const GSkyRegions ®ions)
Assignment operator.
bool contains(const GSkyDir &dir) const
Check if direction is contained in one of the regions.
void load(const GFilename &filename)
Load regions from DS9 region file.
std::string classname(void) const
Return class name.
void clear(void)
Clear object.
GSkyRegion * append(const GSkyRegion ®ion)
Append region to container.
void free_members(void)
Delete class members.
GSkyRegion * insert(const int &index, const GSkyRegion ®ion)
Insert region into container.
void extend(const GSkyRegions ®ions)
Append region container.
GSkyRegion * set(const int &index, const GSkyRegion ®ion)
Set region in container.
bool is_empty(void) const
Signals if there are no regions in container.
bool overlaps(const GSkyRegion ®ion) const
Check if region overlaps one of the regions.
GSkyRegion * operator[](const int &index)
Return pointer to region.
void save(const GFilename &filename) const
Save regions into DS9 region file.
void reserve(const int &num)
Reserves space for regions in container.
void copy_members(const GSkyRegions ®ions)
Copy class members.
std::vector< GSkyRegion * > m_regions
List of regions.
GSkyRegions(void)
Void constructor.
GFilename m_filename
Filename of origin.
int size(void) const
Return number of regions in container.