Changeset 1196 in Sophya for trunk/SophyaLib/SkyMap/spherehealpix.h
- Timestamp:
- Sep 22, 2000, 12:36:46 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/SkyMap/spherehealpix.h
r1195 r1196 9 9 #include "ppersist.h" 10 10 11 #include "HEALPixUtils.h" 11 12 12 13 namespace SOPHYA { … … 63 64 class SphereHEALPix : public SphericalMap<T> 64 65 { 65 66 67 friend class FIO_SphereHEALPix<T>;68 friend class FITS_SphereHEALPix<T>;69 70 66 public : 67 // Static Methods to ease the use of HEALPix index <> angle conversion methods 68 69 static inline int_4 nest2ring(int_4 nside,int_4 ipnest) 70 { return HEALPix::nest2ring(nside, ipnest); } 71 static inline int_4 ring2nest(int_4 nside,int_4 ipring) 72 { return HEALPix::ring2nest(nside, ipring); } 73 static inline int_4 ang2pix_ring(int_4 nside,double theta,double phi) 74 { return HEALPix::ang2pix_ring(nside, theta, phi); } 75 static inline int_4 ang2pix_nest(int_4 nside,double theta,double phi) 76 { return HEALPix::ang2pix_nest(nside, theta, phi); } 77 static inline void pix2ang_ring(int_4 nside,int_4 ipix,double& theta,double& phi) 78 { HEALPix::pix2ang_ring(nside, ipix, theta, phi); } 79 static inline void pix2ang_nest(int_4 nside,int_4 ipix,double& theta,double& phi) 80 { HEALPix::pix2ang_nest(nside, ipix, theta, phi); } 71 81 72 82 SphereHEALPix(); … … 217 227 {return Set(a);} 218 228 229 void CloneOrShare(const SphereHEALPix<T>& a); 230 SphereHEALPix<T>& Set(const SphereHEALPix<T>& a); 231 SphereHEALPix<T>& CopyElt(const SphereHEALPix<T>& a); 232 233 234 // friend declaration for classes which handle persistence and FITS IO 235 friend class FIO_SphereHEALPix<T>; 236 friend class FITS_SphereHEALPix<T>; 219 237 220 pr ivate:238 protected : 221 239 222 240 // ------------- méthodes internes ---------------------- … … 224 242 void SetThetaSlices(); 225 243 226 //int_4 nest2ring(int_4 nside,int_4 ipnest) const;227 //int_4 ring2nest(int_4 nside,int_4 ipring) const;228 229 //int_4 ang2pix_ring(int_4 nside,double theta,double phi) const;230 //int_4 ang2pix_nest(int_4 nside,double theta,double phi) const;231 //void pix2ang_ring(int_4 nside,int_4 ipix,double& theta,double& phi) const;232 //void pix2ang_nest(int_4 nside,int_4 ipix,double& theta,double& phi) const;233 244 inline void setParameters(int_4 nside, int_4 nbpixels, double solangle) 234 245 { … … 238 249 } 239 250 240 void CloneOrShare(const SphereHEALPix<T>& a);241 SphereHEALPix<T>& Set(const SphereHEALPix<T>& a);242 SphereHEALPix<T>& CopyElt(const SphereHEALPix<T>& a);243 244 251 // ------------- variables internes ----------------------- 245 252
Note:
See TracChangeset
for help on using the changeset viewer.