Changeset 682 in Sophya for trunk/SophyaLib/Samba/pixelmap.h
- Timestamp:
- Dec 10, 1999, 5:56:03 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/Samba/pixelmap.h
r592 r682 36 36 37 37 /*! Number of pixels */ 38 virtual int NbPixels() const=0;38 virtual int_4 NbPixels() const=0; 39 39 40 40 /*! Value of pixel number k */ 41 virtual T& PixVal(int k)=0;42 virtual T const& PixVal(int k) const=0;41 virtual T& PixVal(int_4 k)=0; 42 virtual T const& PixVal(int_4 k) const=0; 43 43 44 44 // Map s coverage … … 47 47 48 48 /*! Index of pixel at (theta,phi) */ 49 virtual int PixIndexSph(double theta, double phi) const=0;49 virtual int_4 PixIndexSph(double theta, double phi) const=0; 50 50 // Index of pixel at a sky-position 51 virtual int PixIndex(const SpherePosition& spos);51 virtual int_4 PixIndex(const SpherePosition& spos); 52 52 53 53 /*! Value of pixel number at (theta,phi) */ … … 58 58 59 59 /*! Spherical coordinates of center of pixel number k */ 60 virtual void PixThetaPhi(int k, double& theta, double& phi) const=0;60 virtual void PixThetaPhi(int_4 k, double& theta, double& phi) const=0; 61 61 62 62 /*! provides a integer characterizing the pixelization refinement 63 63 (depending of the type of the map) 64 64 */ 65 virtual int SizeIndex() const=0;65 virtual int_4 SizeIndex() const=0; 66 66 virtual char* TypeOfMap() const =0; 67 67 68 68 /*! Pixel (steradians) */ 69 virtual double PixSolAngle(int k) const =0;69 virtual double PixSolAngle(int_4 k) const =0; 70 70 71 71 /*! Overloading of () to access pixel number k. */ 72 inline T& operator()(int k) {return(PixVal(k));}73 inline T const& operator()(int k) const {return(PixVal(k));}72 inline T& operator()(int_4 k) {return(PixVal(k));} 73 inline T const& operator()(int_4 k) const {return(PixVal(k));} 74 74 75 75 // Overloading of () to access pixel at a sky position . … … 110 110 111 111 template <class T> 112 int PixelMap<T>::PixIndex(const SpherePosition& spos)112 int_4 PixelMap<T>::PixIndex(const SpherePosition& spos) 113 113 { 114 114 UnitVector v = spos.Transform(*cs_);
Note:
See TracChangeset
for help on using the changeset viewer.