[1752] | 1 | #ifndef FITSSPHERETHETAPHI_SEEN
|
---|
| 2 | #define FITSSPHERETHETAPHI_SEEN
|
---|
| 3 |
|
---|
| 4 |
|
---|
| 5 | // Guy Le Meur 10/2001
|
---|
| 6 |
|
---|
| 7 |
|
---|
| 8 | #include "spherethetaphi.h"
|
---|
| 9 | #include "anydataobj.h"
|
---|
| 10 | #include "fitsfile.h"
|
---|
| 11 | namespace SOPHYA {
|
---|
| 12 | ///////////////////////////////////////////////////////////////////////
|
---|
| 13 | // ------------- Classe pour la gestion de persistance I/O format fits--
|
---|
| 14 | // spherethetaphi
|
---|
| 15 | //////////////////////////////////////////////////////////////////////
|
---|
| 16 | template <class T>
|
---|
| 17 | class FITS_SphereThetaPhi : public FitsIOHandler
|
---|
| 18 | {
|
---|
| 19 | public:
|
---|
| 20 |
|
---|
| 21 | FITS_SphereThetaPhi();
|
---|
| 22 | FITS_SphereThetaPhi(char inputfile[],int hdunum=0);
|
---|
| 23 | FITS_SphereThetaPhi(const SphereThetaPhi<T>& obj);
|
---|
| 24 | FITS_SphereThetaPhi(SphereThetaPhi<T>* obj);
|
---|
| 25 | virtual ~FITS_SphereThetaPhi();
|
---|
| 26 | virtual AnyDataObj* DataObj();
|
---|
| 27 | virtual void SetDataObj(AnyDataObj & o);
|
---|
| 28 |
|
---|
| 29 | void Mollweide_picture_projection(char flnm[]);
|
---|
| 30 | void sinus_picture_projection(char flnm[]);
|
---|
| 31 |
|
---|
| 32 |
|
---|
| 33 | inline operator SphereThetaPhi<T>() { return(*dobj_); }
|
---|
| 34 |
|
---|
| 35 |
|
---|
| 36 | protected:
|
---|
| 37 |
|
---|
| 38 | virtual void ReadFromFits(FitsInFile& is);
|
---|
| 39 | virtual void WriteToFits(FitsOutFile& os) ;
|
---|
| 40 | SphereThetaPhi<T>* dobj_;
|
---|
| 41 | bool ownobj_;
|
---|
| 42 |
|
---|
| 43 |
|
---|
| 44 |
|
---|
| 45 | };
|
---|
| 46 |
|
---|
| 47 |
|
---|
| 48 | //////////////////////////////////////////////////////////////////
|
---|
| 49 |
|
---|
| 50 | template <class T>
|
---|
| 51 | inline FitsOutFile& operator << (FitsOutFile& fios, SphereThetaPhi<T> & sph)
|
---|
| 52 | { FITS_SphereThetaPhi<T> fih(&sph); fih.Write(fios); return (fios); }
|
---|
| 53 |
|
---|
| 54 | template <class T>
|
---|
| 55 | inline FitsInFile& operator >> (FitsInFile& fiis, SphereThetaPhi<T> & sph)
|
---|
| 56 | { FITS_SphereThetaPhi<T> fih(&sph); fih.Read(fiis); return (fiis); }
|
---|
| 57 |
|
---|
| 58 |
|
---|
| 59 |
|
---|
| 60 | } // Fin du namespace
|
---|
| 61 |
|
---|
| 62 |
|
---|
| 63 | #endif
|
---|