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

Last change on this file since 396 was 228, checked in by ansari, 26 years ago

Creation du module DPC/Samba Reza 13/04/99

File size: 1.1 KB
Line 
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"
8#include "cvector.h"
9// Map of pixels on a whole sphere.
10// Class hierarchy :
11// PixelMap
12// SphericalMap
13// SphereThetaPhi
14// SphereGorski
15// SphereIco
16// LocalMap
17
18class SphericalMap : public PixelMap {
19
20public :
21SphericalMap() {};
22virtual ~SphericalMap() {};
23
24 // Overloading of () to access pixel number k.
25 inline r_8& operator()(int_4 k)
26 {return(PixVal(k));}
27 inline r_8 const& operator()(int_4 k) const
28 {return(PixVal(k));}
29inline r_8& operator()(float theta, float phi)
30 { return(PixValSph(theta, phi)) ; };
31inline r_8 const& operator()(float theta, float phi) const
32 { return(PixValSph(theta, phi)) ; };
33
34
35virtual int_4 NbThetaSlices() const=0;
36virtual void GetThetaSlice(int_4 index, r_4& theta, Vector& phi, Vector& value) const=0;
37};
38
39#endif
40
41
42
43
44
45
Note: See TracBrowser for help on using the repository browser.