| [585] | 1 | // This may look like C code, but it is really -*- C++ -*- | 
|---|
|  | 2 | // Adaptateur d objets (pour NamedObjMgr) pour les classes | 
|---|
|  | 3 | // PixelMap/SphericalMap/LocalMap  de Sophya | 
|---|
|  | 4 | //                                      Reza 11/99 | 
|---|
|  | 5 | //  LAL-IN2P3/CNRS               CEA-DAPNIA | 
|---|
|  | 6 |  | 
|---|
|  | 7 | #ifndef NOMSKYMAPADAPTER_H_SEEN | 
|---|
|  | 8 | #define NOMSKYMAPADAPTER_H_SEEN | 
|---|
|  | 9 |  | 
|---|
|  | 10 | #include "nomgadapter.h" | 
|---|
| [594] | 11 | #include "tmatrix.h" | 
|---|
| [585] | 12 | #include "pixelmap.h" | 
|---|
|  | 13 |  | 
|---|
|  | 14 |  | 
|---|
|  | 15 |  | 
|---|
|  | 16 | //---------------------------------------------------------------- | 
|---|
|  | 17 | // Class Adaptateur d'objet (Pour NamedObjMgr) d'objet PixelMap<T> | 
|---|
|  | 18 | //---------------------------------------------------------------- | 
|---|
|  | 19 |  | 
|---|
|  | 20 | template <class T> | 
|---|
|  | 21 | class NOMAdapter_PixelMap : public NObjMgrAdapter { | 
|---|
|  | 22 | public: | 
|---|
|  | 23 | NOMAdapter_PixelMap(PixelMap<T>* m = NULL); | 
|---|
|  | 24 | virtual                       ~NOMAdapter_PixelMap(); | 
|---|
|  | 25 |  | 
|---|
|  | 26 | virtual NObjMgrAdapter*       Clone(AnyDataObj* o); | 
|---|
|  | 27 | virtual AnyDataObj*           GetCopyObj(); | 
|---|
|  | 28 |  | 
|---|
|  | 29 | //  virtual void                      ReadFits(string const & flnm); | 
|---|
|  | 30 | //  virtual void                      SaveFits(string const & flnm); | 
|---|
|  | 31 | virtual void                  SavePPF(POutPersist& s, string const & nom); | 
|---|
|  | 32 |  | 
|---|
|  | 33 | virtual void                  Print(ostream& os); | 
|---|
|  | 34 | virtual P2DArrayAdapter*      Get2DArray(string& dopt); | 
|---|
|  | 35 | virtual NTupleInterface*      GetNTupleInterface(bool& adel); | 
|---|
|  | 36 |  | 
|---|
| [594] | 37 | virtual void                  MeanSig(T& gmoy, T& gsig); | 
|---|
|  | 38 | virtual void                  Project_Mol(TMatrix<T> & mtx, T defval=0.); | 
|---|
|  | 39 |  | 
|---|
| [585] | 40 | protected: | 
|---|
|  | 41 | PixelMap<T>* mMap; | 
|---|
|  | 42 | }; | 
|---|
|  | 43 |  | 
|---|
|  | 44 | // Class Interface NTuple pour PixelMap<T> | 
|---|
|  | 45 |  | 
|---|
|  | 46 | template <class T> | 
|---|
|  | 47 | class NTupInt_PixelMap : public NTupleInterface { | 
|---|
|  | 48 | public: | 
|---|
|  | 49 | NTupInt_PixelMap(PixelMap<T>* m); | 
|---|
|  | 50 | virtual               ~NTupInt_PixelMap(); | 
|---|
|  | 51 | virtual uint_4        NbLines() const ; | 
|---|
|  | 52 | virtual uint_4        NbColumns() const ; | 
|---|
|  | 53 | virtual r_8 *         GetLineD(int n) const ; | 
|---|
|  | 54 | virtual string        VarList_C(const char* nomx=NULL) const ; | 
|---|
|  | 55 | protected: | 
|---|
|  | 56 | PixelMap<T>* mMap; | 
|---|
|  | 57 | mutable r_8 mRet[8]; | 
|---|
|  | 58 | }; | 
|---|
|  | 59 |  | 
|---|
|  | 60 |  | 
|---|
|  | 61 | #endif | 
|---|