Changeset 682 in Sophya for trunk/SophyaLib/Samba/spheregorski.h


Ignore:
Timestamp:
Dec 10, 1999, 5:56:03 PM (26 years ago)
Author:
ansari
Message:

Compilation Mac pour CodeWarrior PRO 5

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/Samba/spheregorski.h

    r604 r682  
    6464  nside MUST be a power of 2 (<= 8192)
    6565*/
    66 SphereGorski(int m);
     66SphereGorski(int_4 m);
    6767SphereGorski(const SphereGorski<T>& s, bool share=false);
    6868//!     Destructor
     
    7373/* Nombre de pixels du decoupage */
    7474/*!    Return number of  pixels of the  splitting */
    75 virtual int NbPixels() const;
    76 inline void setNbPixels(int n) {nPix_= n;}
     75virtual int_4 NbPixels() const;
     76inline void setNbPixels(int_4 n) {nPix_= n;}
    7777
    7878/* Valeur du contenu du pixel d'indice "RING" k  */
    7979/*!    Return value of  pixel with "RING" index k */
    80 virtual T& PixVal(int k);
    81 virtual T const& PixVal(int k) const;
     80virtual T& PixVal(int_4 k);
     81virtual T const& PixVal(int_4 k) const;
    8282
    8383/* Nombre de tranches en theta */
    8484/*!    Return number of slices in theta direction on the  sphere */
    85 int NbThetaSlices() const;
     85int_4 NbThetaSlices() const;
    8686/*!   For a theta-slice with index 'index', return :
    8787
     
    9292    a vector containing the corresponding values of pixels
    9393*/
    94 void GetThetaSlice(int index,double& theta,TVector<double>& phi,TVector<T>& value) const;
     94void GetThetaSlice(int_4 index,double& theta,TVector<double>& phi,TVector<T>& value) const;
    9595
    9696/* Return true if teta,phi in map  */
     
    100100/*!  Return "RING" index of the pixel corresponding to direction (theta, phi).
    101101 */
    102 virtual int PixIndexSph(double theta,double phi) const;
     102virtual int_4 PixIndexSph(double theta,double phi) const;
    103103
    104104/* Coordonnees spheriques du milieu du pixel d'indice "RING" k   */
    105 virtual void PixThetaPhi(int k,double& theta,double& phi) const;
     105virtual void PixThetaPhi(int_4 k,double& theta,double& phi) const;
    106106
    107107/*! Set all pixels to value v */
     
    115115   fulfil this requirement.
    116116*/
    117 virtual double PixSolAngle(int dummy) const;
     117virtual double PixSolAngle(int_4 dummy) const;
    118118inline void setPixSolAngle(double x) {omeg_= x;}
    119119
     
    127127  nside MUST be a power of 2 (<= 8192)
    128128*/
    129 virtual void Resize(int m);
     129virtual void Resize(int_4 m);
    130130
    131131inline virtual char* TypeOfMap() const {return "RING";};
     
    133133/* Valeur du contenu du pixel d'indice "NEST" k */
    134134/*!    Return value of  pixel with "NESTED" index k */
    135 virtual T& PixValNest(int k);
     135virtual T& PixValNest(int_4 k);
    136136/*!    Return value of  pixel with "NESTED" index k */
    137 virtual T const& PixValNest(int k) const;
     137virtual T const& PixValNest(int_4 k) const;
    138138
    139139/* Indice "NEST" du pixel vers lequel pointe une direction definie par
     
    141141/*! Return "NESTED" index of the pixel corresponding to direction (theta, phi).
    142142 */
    143 virtual int PixIndexSphNest(double theta,double phi) const;
     143virtual int_4 PixIndexSphNest(double theta,double phi) const;
    144144
    145145/* Coordonnees spheriques du milieu du pixel d'indice "NEST" k       */
    146146/*!   Return (theta,phi) coordinates of middle of  pixel with "NESTED" index k
    147147 */
    148 virtual void PixThetaPhiNest(int k,double& theta,double& phi) const;
     148virtual void PixThetaPhiNest(int_4 k,double& theta,double& phi) const;
    149149
    150150/* algorithme de pixelisation */
    151 void Pixelize(int);
     151void Pixelize(int_4);
    152152
    153153/* convertit index nested en ring  */
    154154/*!    translation from NESTED index  into RING index */
    155 int NestToRing(int) const;
     155int_4 NestToRing(int_4) const;
    156156
    157157/* convertit index ring en nested" */
    158158/*!    translation from  RING index  into NESTED index */
    159 int RingToNest(int) const;
     159int_4 RingToNest(int_4) const;
    160160
    161161
    162162/* retourne/fixe la valeur du parametre Gorski */
    163 inline virtual int SizeIndex() const {return(nSide_);}
    164 inline void setSizeIndex(int n) {nSide_= n;}
     163inline virtual int_4 SizeIndex() const {return(nSide_);}
     164inline void setSizeIndex(int_4 n) {nSide_= n;}
    165165
    166166/* retourne les pointeurs /remplit les tableaux */
    167167inline const NDataBlock<T>* getDataBlock() const { return (&pixels_); }
    168 inline void setDataBlock(T* data,int m) { pixels_.FillFrom(m,data); }
     168inline void setDataBlock(T* data,int_4 m) { pixels_.FillFrom(m,data); }
    169169
    170170/*  Acces to the DataBlock  */
     
    182182void InitNul();
    183183
    184 int  nest2ring(int nside,int ipnest) const;
    185 int  ring2nest(int nside,int ipring) const;
    186 
    187 int  ang2pix_ring(int nside,double theta,double phi) const;
    188 int  ang2pix_nest(int nside,double theta,double phi) const;
    189 void pix2ang_ring(int nside,int ipix,double& theta,double& phi) const;
    190 void pix2ang_nest(int nside,int ipix,double& theta,double& phi) const;
     184int_4  nest2ring(int_4 nside,int_4 ipnest) const;
     185int_4  ring2nest(int_4 nside,int_4 ipring) const;
     186
     187int_4  ang2pix_ring(int_4 nside,double theta,double phi) const;
     188int_4  ang2pix_nest(int_4 nside,double theta,double phi) const;
     189void pix2ang_ring(int_4 nside,int_4 ipix,double& theta,double& phi) const;
     190void pix2ang_nest(int_4 nside,int_4 ipix,double& theta,double& phi) const;
    191191
    192192// ------------- variables internes -----------------------
    193 int nSide_;
    194 int nPix_;
     193int_4 nSide_;
     194int_4 nPix_;
    195195double omeg_;
    196196
     
    234234static PIXELS_XY& instance();
    235235
    236 NDataBlock<int> pix2x_;
    237 NDataBlock<int> pix2y_;
    238 NDataBlock<int> x2pix_;
    239 NDataBlock<int> y2pix_;
     236NDataBlock<int_4> pix2x_;
     237NDataBlock<int_4> pix2y_;
     238NDataBlock<int_4> x2pix_;
     239NDataBlock<int_4> y2pix_;
    240240
    241241private :
Note: See TracChangeset for help on using the changeset viewer.