Changeset 470 in Sophya for trunk/SophyaLib/Samba/sphericalmap.h
- Timestamp:
- Oct 15, 1999, 5:43:30 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/Samba/sphericalmap.h
r228 r470 6 6 #include <math.h> 7 7 #include "pixelmap.h" 8 #include "cvector.h" 8 #include "tvector.h" 9 9 10 // Map of pixels on a whole sphere. 10 11 // Class hierarchy : … … 16 17 // LocalMap 17 18 18 class SphericalMap : public PixelMap { 19 template<class T> 20 class SphericalMap : public PixelMap<T> 21 { 22 23 public : 19 24 20 public :21 25 SphericalMap() {}; 22 26 virtual ~SphericalMap() {}; 23 27 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));} 29 inline r_8& operator()(float theta, float phi) 30 { return(PixValSph(theta, phi)) ; }; 31 inline r_8 const& operator()(float theta, float phi) const 32 { return(PixValSph(theta, phi)) ; }; 28 // Overloading of () to access pixel number k. 29 inline T& operator()(int_4 k) {return(PixVal(k));} 30 inline T const& operator()(int_4 k) const {return(PixVal(k));} 31 inline T& operator()(float theta,float phi) {return(PixValSph(theta,phi));}; 32 inline T const& operator()(float theta,float phi) const {return(PixValSph(theta,phi));}; 33 33 34 34 // index characterizing the size pixelization : m for SphereThetaPhi 35 // nside for Gorski sphere... 36 virtual void Resize(int_4 m)=0; 35 37 virtual int_4 NbThetaSlices() const=0; 36 virtual void GetThetaSlice(int_4 index, r_4& theta, Vector& phi, Vector& value) const=0;38 virtual void GetThetaSlice(int_4 index, r_4& theta, TVector<float>& phi, TVector<T>& value) const=0; 37 39 }; 38 39 40 #endif 40 41
Note:
See TracChangeset
for help on using the changeset viewer.