source: Sophya/trunk/SophyaExt/FitsIOServer/fitsspherethetaphi.h@ 2013

Last change on this file since 2013 was 1752, checked in by lemeur, 24 years ago

interface avec spheres theta-phi

  • Property svn:executable set to *
File size: 1.5 KB
Line 
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"
11namespace SOPHYA {
12///////////////////////////////////////////////////////////////////////
13// ------------- Classe pour la gestion de persistance I/O format fits--
14// spherethetaphi
15//////////////////////////////////////////////////////////////////////
16template <class T>
17class FITS_SphereThetaPhi : public FitsIOHandler
18{
19public:
20
21FITS_SphereThetaPhi();
22FITS_SphereThetaPhi(char inputfile[],int hdunum=0);
23FITS_SphereThetaPhi(const SphereThetaPhi<T>& obj);
24FITS_SphereThetaPhi(SphereThetaPhi<T>* obj);
25virtual ~FITS_SphereThetaPhi();
26virtual AnyDataObj* DataObj();
27virtual void SetDataObj(AnyDataObj & o);
28
29void Mollweide_picture_projection(char flnm[]);
30void sinus_picture_projection(char flnm[]);
31
32
33inline operator SphereThetaPhi<T>() { return(*dobj_); }
34
35
36protected:
37
38virtual void ReadFromFits(FitsInFile& is);
39virtual void WriteToFits(FitsOutFile& os) ;
40SphereThetaPhi<T>* dobj_;
41bool ownobj_;
42
43
44
45};
46
47
48//////////////////////////////////////////////////////////////////
49
50template <class T>
51inline FitsOutFile& operator << (FitsOutFile& fios, SphereThetaPhi<T> & sph)
52 { FITS_SphereThetaPhi<T> fih(&sph); fih.Write(fios); return (fios); }
53
54template <class T>
55inline 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
Note: See TracBrowser for help on using the repository browser.