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/spherethetaphi.h

    r604 r682  
    3131    pet is a dummy parameter at the moment.
    3232*/
    33 SphereThetaPhi(int m);
     33SphereThetaPhi(int_4 m);
    3434SphereThetaPhi(const SphereThetaPhi<T>& s, bool share=false);
    3535virtual ~SphereThetaPhi();
     
    3939/* retourne/fixe le nombre de pixels */
    4040/*!    Return total number of pixels  */
    41 virtual int NbPixels() const;
    42 inline void setNbPixels(int nbpix) { NPix_= nbpix; }
     41virtual int_4 NbPixels() const;
     42inline void setNbPixels(int_4 nbpix) { NPix_= nbpix; }
    4343
    4444/* retourne la valeur du pixel d'indice k */
    4545/*!    Return value of pixel with index k */
    46 virtual T&       PixVal(int k);
    47 virtual T const& PixVal(int k) const;
     46virtual T&       PixVal(int_4 k);
     47virtual T const& PixVal(int_4 k) const;
    4848
    4949/* Return true if teta,phi in map  */
     
    5151/* retourne l'indice du pixel a (theta,phi) */
    5252/*    Return index of the pixel corresponding to direction (theta, phi). */
    53 virtual int PixIndexSph(double theta, double phi) const;
     53virtual int_4 PixIndexSph(double theta, double phi) const;
    5454
    5555/* retourne les coordonnees Spheriques du centre du pixel d'indice k */
    5656/*!   Return (theta,phi) coordinates of middle of  pixel with  index k */
    57 virtual void PixThetaPhi(int k, double& theta, double& phi) const;
     57virtual void PixThetaPhi(int_4 k, double& theta, double& phi) const;
    5858
    5959/*! Setting pixel values to a constant */
     
    6767    fulfil this requirement.
    6868*/
    69 virtual double PixSolAngle(int dummy) const;
     69virtual double PixSolAngle(int_4 dummy) const;
    7070inline void setPixSolAngle(double omega) { Omega_= omega; }
    7171 
    7272/* retourne/fixe la valeur du parametre de decoupage m */
    73 inline virtual int SizeIndex() const { return( NTheta_); }
    74 inline void setSizeIndex(int nbindex) { NTheta_= nbindex; }
     73inline virtual int_4 SizeIndex() const { return( NTheta_); }
     74inline void setSizeIndex(int_4 nbindex) { NTheta_= nbindex; }
    7575
    7676// ------------- Specific methods  ----------------------
    7777
    7878/*!   re-pixelize the sphere */
    79 virtual void Resize(int m);
     79virtual void Resize(int_4 m);
    8080
    8181inline virtual char* TypeOfMap() const {return "TETAFI";};
     
    8383/* Valeurs de theta des paralleles et phi des meridiens limitant le pixel d'indice k */
    8484/*   Return values of theta,phi which limit the pixel with  index k */
    85 virtual void Limits(int k,double& th1,double& th2,double& phi1,double& phi2);
     85virtual void Limits(int_4 k,double& th1,double& th2,double& phi1,double& phi2);
    8686
    8787/* Nombre de tranches en theta */
    8888/*!    Return number of theta-slices on the sphere */
    89 int NbThetaSlices() const;
     89int_4 NbThetaSlices() const;
    9090
    9191/* Nombre de pixels en phi de la tranche d'indice kt */
    92 int NPhi(int kt) const;
     92int_4 NPhi(int_4 kt) const;
    9393
    9494/* Renvoie dans t1,t2 les valeurs respectives de theta min et theta max  */
    9595/* de la tranche d'indice kt  */
    9696/*!    Return  theta values which limit the slice kt */
    97 void Theta(int kt, double& t1, double& t2);
     97void Theta(int_4 kt, double& t1, double& t2);
    9898
    9999/* Renvoie dans p1,p2 les valeurs phimin et phimax du pixel d'indice jp  */
    100100/* dans la tranche d'indice kt  */
    101101/*!   Return values of phi which limit the jp-th pixel of the kt-th slice */
    102 void Phi(int kt, int jp, double& p1, double& p2);
     102void Phi(int_4 kt, int_4 jp, double& p1, double& p2);
    103103
    104104/* Renvoie l'indice k du pixel d'indice jp dans la tranche d'indice kt   */
    105105/*!   Return pixel index  with sequence index jp in the slice kt */
    106 int Index(int kt, int jp) const;
     106int_4 Index(int_4 kt, int_4 jp) const;
    107107
    108108/* Indice kt de la tranche et indice jp du pixel d'indice k  */
    109109/*!    Return indices kt (theta) and jp (phi) of  pixel with index k */
    110 void ThetaPhiIndex(int k,int& kt,int& jp);
     110void ThetaPhiIndex(int_4 k,int_4& kt,int_4& jp);
    111111
    112112/*!    achieve the splitting into pixels (m has the same signification
     
    121121    phi of the slice closest of the equator with z<0).
    122122*/
    123 void Pixelize(int);
     123void Pixelize(int_4);
    124124
    125125/*!   For a theta-slice with index 'index', return :
     
    131131    a vector containing the corresponding values of pixels
    132132*/
    133 void GetThetaSlice(int index,double& theta,TVector<double>& phi,TVector<T>& value) const;
     133void GetThetaSlice(int_4 index,double& theta,TVector<double>& phi,TVector<T>& value) const;
    134134
    135135/*retourne le tableau contenant le nombre de pixels en phi de chacune des bandes en theta */
    136 inline const int* getmNPhi() const { return(NPhi_); }
    137 void setmNPhi(int* array, int m);
     136inline const int_4* getmNPhi() const { return(NPhi_); }
     137void setmNPhi(int_4* array, int_4 m);
    138138
    139139/* retourne/remplit le tableau contenant le nombre/Deuxpi total des pixels contenus dans les bandes */
    140 inline const int* getmTNphi() const { return(TNphi_); }
    141 void setmTNphi(int* array, int m);
     140inline const int_4* getmTNphi() const { return(TNphi_); }
     141void setmTNphi(int_4* array, int_4 m);
    142142
    143143/* retourne/remplit le tableau contenant les valeurs limites de theta */
    144144inline const double* getmTheta() const { return(Theta_); }
    145 void setmTheta(double* array, int m);
     145void setmTheta(double* array, int_4 m);
    146146
    147147/* retourne le pointeur vers/remplit  le vecteur des contenus des pixels */
    148148inline const NDataBlock<T>* getDataBlock() const { return (&pixels_); }
    149 void setDataBlock(T* data, int m);
     149void setDataBlock(T* data, int_4 m);
    150150
    151151/*  Acces to the DataBlock  */
     
    163163
    164164// ------------- variables internes ---------------------
    165 int NTheta_;
    166 int NPix_;
     165int_4 NTheta_;
     166int_4 NPix_;
    167167double Omega_;
    168 int* NPhi_;
    169 int* TNphi_;
     168int_4* NPhi_;
     169int_4* TNphi_;
    170170double* Theta_;
    171171NDataBlock<T> pixels_;
Note: See TracChangeset for help on using the changeset viewer.