27 #ifndef GFITSIMAGESHORT_HPP
28 #define GFITSIMAGESHORT_HPP
47 GFitsImageShort(
const int& nx,
const int& ny,
const int& nz,
const int& nt,
const short*
pixels = NULL);
56 short&
operator()(
const int& ix,
const int& iy);
57 short&
operator()(
const int& ix,
const int& iy,
const int& iz);
58 short&
operator()(
const int& ix,
const int& iy,
const int& iz,
const int& it);
60 const short&
operator()(
const int& ix,
const int& iy)
const;
61 const short&
operator()(
const int& ix,
const int& iy,
const int& iz)
const;
62 const short&
operator()(
const int& ix,
const int& iy,
const int& iz,
const int& it)
const;
68 short&
at(
const int& ix);
69 short&
at(
const int& ix,
const int& iy);
70 short&
at(
const int& ix,
const int& iy,
const int& iz);
71 short&
at(
const int& ix,
const int& iy,
const int& iz,
const int& it);
72 const short&
at(
const int& ix)
const;
73 const short&
at(
const int& ix,
const int& iy)
const;
74 const short&
at(
const int& ix,
const int& iy,
const int& iz)
const;
75 const short&
at(
const int& ix,
const int& iy,
const int& iz,
const int& it)
const;
76 double pixel(
const int& ix)
const;
77 double pixel(
const int& ix,
const int& iy)
const;
78 double pixel(
const int& ix,
const int& iy,
const int& iz)
const;
79 double pixel(
const int& ix,
const int& iy,
const int& iz,
const int& it)
const;
111 return (
"GFitsImageShort");
Abstract FITS image base class.
void release_data(void)
Release data.
std::string classname(void) const
Return class name.
void free_members(void)
Delete class members.
int type(void) const
Return image type.
GFitsImageShort * clone(void) const
Clone FITS image.
short * m_nulval
NULL value.
GFitsImageShort(void)
Void constructor.
void load_data(void) const
Load data.
void clear(void)
Clear instance.
double pixel(const int &ix) const
Return value of image pixel.
Abstract FITS image base class definition.
void init_data(void)
Initialise data.
short & operator()(const int &ix)
Image pixel access operator.
void copy_members(const GFitsImageShort &image)
Copy class members.
short & at(const int &ix)
Image pixel access operator.
Short integer FITS image class.
int naxes(const int &axis) const
Return dimension of an image axis.
void construct_data(const short *pixels)
Construct data from array.
virtual ~GFitsImageShort(void)
Destructor.
void * pixels(void)
Return pointer to image pixel.
void alloc_data(void)
Allocate data.
void alloc_nulval(const void *value)
Allocates nul value.
GFitsImageShort & operator=(const GFitsImageShort &image)
Assignment operator.
void init_members(void)
Initialise class members.