Last change
on this file since 746 was 746, checked in by ansari, 26 years ago |
ajustement de type double r_8 etc.
|
File size:
1.2 KB
|
Rev | Line | |
---|
[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] | 19 | template<class T>
|
---|
| 20 | class SphericalMap : public PixelMap<T>
|
---|
| 21 | {
|
---|
| 22 |
|
---|
| 23 | public :
|
---|
[228] | 24 |
|
---|
| 25 | SphericalMap() {};
|
---|
| 26 | virtual ~SphericalMap() {};
|
---|
| 27 |
|
---|
[470] | 28 | // Overloading of () to access pixel number k.
|
---|
[473] | 29 | inline T& operator()(int k) {return(PixVal(k));}
|
---|
| 30 | inline T const& operator()(int k) const {return(PixVal(k));}
|
---|
| 31 | inline T& operator()(double theta,double phi) {return(PixValSph(theta,phi));};
|
---|
| 32 | inline 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...
|
---|
[727] | 36 | virtual void Resize(int m)=0;
|
---|
| 37 | virtual uint_4 NbThetaSlices() const=0;
|
---|
[746] | 38 | virtual void GetThetaSlice(int_4 index,r_8& theta, TVector<r_8>& phi, TVector<T>& value) const=0;
|
---|
| 39 | virtual void GetThetaSlice(int_4 sliceIndex, r_8& theta, r_8& phi0, TVector<int_4>& pixelIndices,TVector<T>& value) const=0 ;
|
---|
[228] | 40 | };
|
---|
| 41 | #endif
|
---|
| 42 |
|
---|
| 43 |
|
---|
| 44 |
|
---|
| 45 |
|
---|
| 46 |
|
---|
| 47 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.