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