27 #ifndef GSKYREGION_HPP
28 #define GSKYREGION_HPP
69 virtual void clear(
void) = 0;
71 virtual std::string
classname(
void)
const = 0;
72 virtual void read(
const std::string& regstring) = 0;
73 virtual std::string
write(
void)
const = 0;
80 const std::string&
type(
void)
const;
81 const std::string&
name(
void)
const;
83 void type(
const std::string& type);
84 void name(
const std::string& name);
virtual GSkyRegion * clone(void) const =0
Clones object.
double m_solid
Solid angle subtended by the region (sr)
void copy_members(const GSkyRegion ®ion)
Copy class members.
virtual ~GSkyRegion(void)
Destructor.
void free_members(void)
Delete class members.
void init_members(void)
Initialise class members.
const double & solidangle(void) const
Return solid angle of region.
const std::string & type(void) const
Return region type.
virtual std::string write(void) const =0
Definition of interface for all GammaLib classes.
std::string m_type
Type of the region (circle, rectangle,...)
const std::string & name(void) const
Return region name.
virtual std::string print(const GChatter &chatter=NORMAL) const =0
Print content of object.
Abstract interface for the sky region class.
virtual bool contains(const GSkyDir &dir) const =0
std::string m_name
Name of the region.
Interface class for all GammaLib classes.
virtual GSkyRegion & operator=(const GSkyRegion ®ion)
Assignment operator.
virtual void read(const std::string ®string)=0
virtual std::string classname(void) const =0
Return class name.
virtual bool overlaps(const GSkyRegion ®) const =0
virtual void clear(void)=0
Clear object.
GSkyRegion(void)
Void constructor.