Changeset 473 in Sophya for trunk/SophyaLib/Samba/pixelmap.h
- Timestamp:
- Oct 18, 1999, 4:37:44 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/Samba/pixelmap.h
r470 r473 25 25 26 26 // Number of pixels 27 virtual int _4NbPixels() const=0;27 virtual int NbPixels() const=0; 28 28 29 29 // Value of pixel number k 30 virtual T& PixVal(int _4k)=0;31 virtual T const& PixVal(int _4k) const=0;30 virtual T& PixVal(int k)=0; 31 virtual T const& PixVal(int k) const=0; 32 32 33 33 // Index of pixel at (theta,phi) 34 virtual int _4 PixIndexSph(float theta, floatphi) const=0;34 virtual int PixIndexSph(double theta, double phi) const=0; 35 35 36 36 // Value of pixel number at (theta,phi) 37 virtual T& PixValSph( float theta, floatphi)37 virtual T& PixValSph(double theta, double phi) 38 38 {return PixVal(PixIndexSph(theta,phi));} 39 virtual T const& PixValSph( float theta, floatphi) const39 virtual T const& PixValSph(double theta, double phi) const 40 40 {return PixVal(PixIndexSph(theta,phi));} 41 41 42 42 // Spherical coordinates of center of pixel number k 43 virtual void PixThetaPhi(int _4 k, float& theta, float& phi) const=0;43 virtual void PixThetaPhi(int k, double& theta, double& phi) const=0; 44 44 45 45 // provides a integer characterizing the pixelization refinement 46 46 // (depending of the type of the map) 47 virtual int _4SizeIndex() const=0;47 virtual int SizeIndex() const=0; 48 48 virtual char* TypeOfMap() const =0; 49 49 50 50 // Pixel (steradians) 51 virtual r_8 PixSolAngle(int_4k) const =0;51 virtual double PixSolAngle(int k) const =0; 52 52 53 53 // Overloading of () to access pixel number k. 54 inline T& operator()(int _4k) {return(PixVal(k));}55 inline T const& operator()(int _4k) const {return(PixVal(k));}54 inline T& operator()(int k) {return(PixVal(k));} 55 inline T const& operator()(int k) const {return(PixVal(k));} 56 56 57 // Note : no overloading of ( float,float) to access pixel (theta,phi).58 // overloading of ( float,float) in SphericalMap57 // Note : no overloading of (double,double) to access pixel (theta,phi). 58 // overloading of (double,double) in SphericalMap 59 59 // overloading of (int,int) in CartesianMap 60 60
Note:
See TracChangeset
for help on using the changeset viewer.