Changeset 568 in Sophya for trunk/SophyaLib/Samba/pixelmap.h
- Timestamp:
- Nov 10, 1999, 3:17:10 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/Samba/pixelmap.h
r525 r568 8 8 #include <iostream.h> 9 9 10 // General map of pixels on part of sphere or whole sphere 11 // Class hierarchy : 12 // PixelMap 13 // SphericalMap 14 // SphereThetaPhi 15 // SphereGorski 16 // SphereIco 17 // LocalMap 18 10 //! General map of pixels on part of sphere or whole sphere 11 /*! Class hierarchy : 12 \verbatim 13 PixelMap 14 SphericalMap 15 SphereThetaPhi 16 SphereGorski 17 SphereIco 18 LocalMap 19 \endverbatim 20 */ 19 21 template<class T> 20 22 class PixelMap … … 33 35 inline SphereCoordSys* GetCoordSys() const { return(cs_); } 34 36 35 / / Number of pixels37 /*! Number of pixels */ 36 38 virtual int NbPixels() const=0; 37 39 38 / / Value of pixel number k40 /*! Value of pixel number k */ 39 41 virtual T& PixVal(int k)=0; 40 42 virtual T const& PixVal(int k) const=0; … … 44 46 virtual bool Contains(const SpherePosition& spos) const; 45 47 46 / / Index of pixel at (theta,phi)48 /*! Index of pixel at (theta,phi) */ 47 49 virtual int PixIndexSph(double theta, double phi) const=0; 48 50 // Index of pixel at a sky-position 49 51 virtual int PixIndex(const SpherePosition& spos); 50 52 51 52 // Value of pixel number at (theta,phi) 53 /*! Value of pixel number at (theta,phi) */ 53 54 virtual T& PixValSph(double theta, double phi) 54 55 {return PixVal(PixIndexSph(theta,phi));} … … 56 57 {return PixVal(PixIndexSph(theta,phi));} 57 58 58 / / Spherical coordinates of center of pixel number k59 /*! Spherical coordinates of center of pixel number k */ 59 60 virtual void PixThetaPhi(int k, double& theta, double& phi) const=0; 60 61 61 // provides a integer characterizing the pixelization refinement 62 // (depending of the type of the map) 62 /*! provides a integer characterizing the pixelization refinement 63 (depending of the type of the map) 64 */ 63 65 virtual int SizeIndex() const=0; 64 66 virtual char* TypeOfMap() const =0; 65 67 66 / / Pixel (steradians)68 /*! Pixel (steradians) */ 67 69 virtual double PixSolAngle(int k) const =0; 68 70 69 / / Overloading of () to access pixel number k.71 /*! Overloading of () to access pixel number k. */ 70 72 inline T& operator()(int k) {return(PixVal(k));} 71 73 inline T const& operator()(int k) const {return(PixVal(k));}
Note:
See TracChangeset
for help on using the changeset viewer.