source: Sophya/trunk/SophyaLib/SkyMap/sphericalmap.h@ 2965

Last change on this file since 2965 was 2885, checked in by ansari, 20 years ago

Modifs (ajout this->) pour compilation avec g++ 4 (V >= 3.4) - Reza 4 Jan 2006

File size: 1.4 KB
Line 
1#ifndef SPHERICALMAP_SEEN
2#define SPHERICALMAP_SEEN
3
4// valeurs de Pi, 2*Pi, etc
5#include "smathconst.h"
6#include <math.h>
7#include "pixelmap.h"
8#include "tvector.h"
9
10// Map of pixels on a whole sphere.
11// Class hierarchy :
12// PixelMap
13// SphericalMap
14// SphereThetaPhi
15// SphereGorski
16// SphereIco
17// LocalMap
18
19
20
21
22namespace SOPHYA {
23
24/*!
25 \class SphericalMap
26 \ingroup SkyMap
27 Base class (pure virtual) for 4Pi spherical maps
28*/
29
30template<class T>
31class SphericalMap : public PixelMap<T>
32{
33
34public :
35
36SphericalMap() {};
37virtual ~SphericalMap() {};
38
39// Overloading of () to access pixel number k.
40inline T& operator()(int k) {return(this->PixVal(k));}
41inline T const& operator()(int k) const {return(this->PixVal(k));}
42inline T& operator()(double theta,double phi) {return(this->PixValSph(theta,phi));};
43inline T const& operator()(double theta,double phi) const {return(this->PixValSph(theta,phi));};
44
45// index characterizing the size pixelization : m for SphereThetaPhi
46// nside for Gorski sphere...
47virtual void Resize(int_4 m)=0;
48virtual uint_4 NbThetaSlices() const=0;
49virtual void GetThetaSlice(int_4 index,r_8& theta, TVector<r_8>& phi, TVector<T>& value) const=0;
50virtual void GetThetaSlice(int_4 sliceIndex, r_8& theta, r_8& phi0, TVector<int_4>& pixelIndices,TVector<T>& value) const=0 ;
51};
52
53
54} // Fin du namespace
55
56
57
58
59#endif
60
61
62
63
64
65
Note: See TracBrowser for help on using the repository browser.