source: Sophya/trunk/SophyaLib/Samba/sphericalmap.h@ 508

Last change on this file since 508 was 473, checked in by ansari, 26 years ago

modifs francois : passage en double etc. 18-OCT-99

File size: 1.1 KB
RevLine 
[228]1#ifndef SPHERICALMAP_SEEN
2#define SPHERICALMAP_SEEN
3
4// valeurs de Pi, 2*Pi, etc
5#include "nbmath.h"
6#include <math.h>
7#include "pixelmap.h"
[470]8#include "tvector.h"
9
[228]10// Map of pixels on a whole sphere.
11// Class hierarchy :
12// PixelMap
13// SphericalMap
14// SphereThetaPhi
15// SphereGorski
16// SphereIco
17// LocalMap
18
[470]19template<class T>
20class SphericalMap : public PixelMap<T>
21{
22
23public :
[228]24
25SphericalMap() {};
26virtual ~SphericalMap() {};
27
[470]28// Overloading of () to access pixel number k.
[473]29inline T& operator()(int k) {return(PixVal(k));}
30inline T const& operator()(int k) const {return(PixVal(k));}
31inline T& operator()(double theta,double phi) {return(PixValSph(theta,phi));};
32inline T const& operator()(double theta,double phi) const {return(PixValSph(theta,phi));};
[228]33
[470]34// index characterizing the size pixelization : m for SphereThetaPhi
35// nside for Gorski sphere...
[473]36virtual void Resize(int m)=0;
37virtual int NbThetaSlices() const=0;
38virtual void GetThetaSlice(int index,double& theta, TVector<double>& phi, TVector<T>& value) const=0;
[228]39};
40#endif
41
42
43
44
45
46
Note: See TracBrowser for help on using the repository browser.