Ignore:
Timestamp:
Sep 22, 2000, 12:36:46 PM (25 years ago)
Author:
ansari
Message:

Introduction de la classe HEALPix pour accrocher les methodes de
converion angle<>index
rajout en methodes inline static de ces methodes de conversion pour
SphereHEALPix<T>
+ Autre modifs cosmetiques + MAJ Makefile , Reza 21/9/2000

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/SkyMap/spherehealpix.h

    r1195 r1196  
    99#include "ppersist.h"
    1010
     11#include "HEALPixUtils.h"
    1112
    1213namespace SOPHYA {
     
    6364class SphereHEALPix : public SphericalMap<T>
    6465{
    65 
    66 
    67   friend class FIO_SphereHEALPix<T>;
    68   friend class FITS_SphereHEALPix<T>;
    69 
    7066public :
     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); }
    7181
    7282SphereHEALPix();
     
    217227                                                        {return Set(a);}
    218228
     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>;
    219237       
    220 private :
     238protected :
    221239
    222240// ------------- méthodes internes ----------------------
     
    224242void SetThetaSlices();
    225243
    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;
    233244inline void setParameters(int_4 nside, int_4 nbpixels, double solangle)
    234245  {
     
    238249  }
    239250
    240  void CloneOrShare(const SphereHEALPix<T>& a);
    241  SphereHEALPix<T>& Set(const SphereHEALPix<T>& a);
    242  SphereHEALPix<T>& CopyElt(const SphereHEALPix<T>& a);
    243 
    244251// ------------- variables internes -----------------------
    245252
Note: See TracChangeset for help on using the changeset viewer.