source: Sophya/trunk/SophyaPI/PIext/nomskymapadapter.h@ 3132

Last change on this file since 3132 was 2975, checked in by ansari, 19 years ago

Ajout flag int lev ds les adaptateurs NObjMgrAdapter::Print(ostream& os, int lev=0) et NamedObjMgr::Print() + modif commande print - Reza 20 Juin 2006

File size: 1.8 KB
Line 
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"
11#include "tmatrix.h"
12#include "pixelmap.h"
13
14
15
16//----------------------------------------------------------------
17// Class Adaptateur d'objet (Pour NamedObjMgr) d'objet PixelMap<T>
18//----------------------------------------------------------------
19
20template <class T>
21class NOMAdapter_PixelMap : public NObjMgrAdapter {
22public:
23 NOMAdapter_PixelMap(PixelMap<T>* m = NULL);
24 virtual ~NOMAdapter_PixelMap();
25
26 virtual NObjMgrAdapter* Clone(AnyDataObj* o);
27
28 virtual string GetDataObjType();
29
30 virtual AnyDataObj* CloneDataObj(bool share=false);
31
32 virtual void SavePPF(POutPersist& s, string const & nom);
33
34 virtual void Print(ostream& os, int lev=0);
35 virtual P2DArrayAdapter* Get2DArray(string& dopt);
36 virtual NTupleInterface* GetNTupleInterface(bool& adel);
37
38 virtual void MeanSig(T& gmoy, T& gsig);
39 virtual void Project_Mol(TMatrix<T> & mtx, T defval=0.);
40
41protected:
42 PixelMap<T>* mMap;
43};
44
45// Class Interface NTuple pour PixelMap<T>
46
47template <class T>
48class NTupInt_PixelMap : public NTupleInterface {
49public:
50 NTupInt_PixelMap(PixelMap<T>* m);
51 virtual ~NTupInt_PixelMap();
52 virtual sa_size_t NbLines() const ;
53 virtual sa_size_t NbColumns() const ;
54 virtual r_8 * GetLineD(sa_size_t n) const ;
55 virtual string VarList_C(const char* nomx=NULL) const ;
56protected:
57 PixelMap<T>* mMap;
58 mutable r_8 mRet[8];
59};
60
61// Valeur par defaut pour la projection MolleWeide, en dehors de la sphere
62void Set_Project_Mol_DefVal(double def);
63
64#endif
Note: See TracBrowser for help on using the repository browser.