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