| [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 |  | 
|---|
| [2897] | 29 | virtual int         CheckHandling(AnyDataObj & o) ; | 
|---|
|  | 30 | virtual int         CheckReadability(FitsInOutFile& is); | 
|---|
|  | 31 | virtual FitsHandlerInterface* Clone(); | 
|---|
|  | 32 |  | 
|---|
| [1752] | 33 | void Mollweide_picture_projection(char flnm[]); | 
|---|
|  | 34 | void sinus_picture_projection(char flnm[]); | 
|---|
|  | 35 |  | 
|---|
|  | 36 |  | 
|---|
|  | 37 | inline operator SphereThetaPhi<T>() { return(*dobj_); } | 
|---|
|  | 38 |  | 
|---|
|  | 39 |  | 
|---|
|  | 40 | protected: | 
|---|
|  | 41 |  | 
|---|
|  | 42 | virtual void ReadFromFits(FitsInFile& is); | 
|---|
|  | 43 | virtual void WriteToFits(FitsOutFile& os) ; | 
|---|
|  | 44 | SphereThetaPhi<T>* dobj_; | 
|---|
|  | 45 | bool ownobj_; | 
|---|
|  | 46 |  | 
|---|
|  | 47 |  | 
|---|
|  | 48 |  | 
|---|
|  | 49 | }; | 
|---|
|  | 50 |  | 
|---|
|  | 51 |  | 
|---|
|  | 52 | ////////////////////////////////////////////////////////////////// | 
|---|
|  | 53 |  | 
|---|
|  | 54 | template <class T> | 
|---|
|  | 55 | inline FitsOutFile& operator << (FitsOutFile& fios, SphereThetaPhi<T> & sph) | 
|---|
|  | 56 | { FITS_SphereThetaPhi<T> fih(&sph); fih.Write(fios); return (fios); } | 
|---|
|  | 57 |  | 
|---|
|  | 58 | template <class T> | 
|---|
|  | 59 | inline FitsInFile& operator >> (FitsInFile& fiis, SphereThetaPhi<T> & sph) | 
|---|
|  | 60 | { FITS_SphereThetaPhi<T> fih(&sph); fih.Read(fiis); return (fiis); } | 
|---|
|  | 61 |  | 
|---|
|  | 62 |  | 
|---|
|  | 63 |  | 
|---|
|  | 64 | } // Fin du namespace | 
|---|
|  | 65 |  | 
|---|
|  | 66 |  | 
|---|
|  | 67 | #endif | 
|---|