Inheritance diagram for FitsManager:
Public Member Functions | |
FitsManager (const std::string &fileName, int mode, bool verbose) | |
Standard constructor. | |
~FitsManager () | |
Standard destructor. | |
void | copyProperties (FitsManager &src) |
copy properties of a manager to the current manager | |
void | pHDU () |
go to principal HDU of the MEF | |
void | extHDU (int pos) |
go to an extension HDU of the MEF | |
void | readImage (void **img) |
Read an extension. | |
void | unreadImage (void **img) |
Free an extension. | |
void | setHDUAsImage (int bitpix, const long naxis, const long *axes, const long factor) |
Set the current HDU as an image extension. | |
void | writeImage (void **img) |
Write an extension. | |
const int | getBitpix () const |
Return the current value of the bitpix. | |
const long | getAxis (int i) const |
Return the current value of i-th axis. | |
const long * | getAxes () const |
Return the current value of axes. | |
const long | getNAxes () const |
Return the current number of axes. | |
const long | getNExtend () const |
Return the number of extension in the MEF file. | |
Private Attributes | |
fitsfile * | _file |
Pointer to the FITS file. | |
std::string | _name |
Name of the FITS file. | |
int | _nextend |
Number of extensions in the MEF file. | |
int | _bitpix |
bitpix of the current extension | |
int | _currentExt |
position of the current extension | |
int | _currentType |
type of the current extension | |
int | _maxdim |
Maximum number of dimensions in the current extension. | |
int | _naxis |
Number of dimensions in the current extension. | |
long * | _naxes |
table containing dimensions of the current extension | |
long * | _fpixel |
table used for cfitsio routines |
The class uses cfitsio library to manage files.
|
Standard constructor.
|
|
Standard destructor. The destructor closes the file and frees used memory. |
|
copy properties of a manager to the current manager The function gets every properties of a fits manager and copies them into the current class. The function is usefull for mask creation. |
|
go to an extension HDU of the MEF The function sets internal variables to correspond to a given extension of the MEF file.
|
|
Return the current value of axes. The function returns a pointer to a table containing the value of the axes of the current extension. |
|
Return the current value of i-th axis. The function returns the value of the i-th axis of the current extension. |
|
Return the current value of the bitpix. The function returns the value of the bitpix of the current extension. |
|
Return the current number of axes. The function returns the number of axes of the current extension. |
|
go to principal HDU of the MEF The function sets internal variables to correspond to the pHDU of the MEF file. |
|
Read an extension. The function reads an extension according to internal values and stores it in the given pointer.
|
|
Set the current HDU as an image extension. The function set internal values so that the current extension is considered to be an image extension. The function is used before an extension is written.
|
|
Free an extension. The function frees the given pointer.
|
|
Write an extension. The function writes an extension according to internal values and the given pointer.
|
|
table used for cfitsio routines Must not be used for any other purpose |