93 operator double()
const;
100 bool is_1D(
void)
const;
101 bool is_2D(
void)
const;
103 void x(
const double&
x);
104 void y(
const double&
y);
105 void xy(
const double&
x,
const double&
y);
106 const double&
index(
void)
const;
107 const double&
x(
void)
const;
108 const double&
y(
void)
const;
132 return (
"GSkyPixel");
Definition of interface for all GammaLib classes.
bool operator!=(const GSkyPixel &a, const GSkyPixel &b)
Inqquality operator.
bool operator==(const GSkyPixel &a, const GSkyPixel &b)
Equality operator.
Interface class for all GammaLib classes.
void copy_members(const GSkyPixel &pixel)
Copy class members.
int m_size
Pixel dimension (0=undefined, 1=1D, 2=2D)
void free_members(void)
Delete class members.
GSkyPixel & operator=(const GSkyPixel &pixel)
Assignment operator.
friend bool operator!=(const GSkyPixel &a, const GSkyPixel &b)
Inqquality operator.
friend bool operator==(const GSkyPixel &a, const GSkyPixel &b)
Equality operator.
std::string print(const GChatter &chatter=NORMAL) const
Print pixel.
const double & y(void) const
Return y value of sky pixel.
int size(void) const
Return pixel dimension.
GSkyPixel * clone(void) const
Clone sky map pixel.
bool is_1D(void) const
Check if pixel is 1D.
bool is_2D(void) const
Check if pixel is 2D.
void clear(void)
Clear instance.
const double & x(void) const
Return x value of sky map pixel.
void init_members(void)
Initialise class members.
const double & index(void) const
Return sky map pixel index.
void xy(const double &x, const double &y)
Set x and y value of sky map pixel.
std::string classname(void) const
Return class name.
virtual ~GSkyPixel(void)
Destructor.
GSkyPixel(void)
Void constructor.