Ignore:
Timestamp:
Oct 18, 1999, 4:37:44 PM (26 years ago)
Author:
ansari
Message:

modifs francois : passage en double etc. 18-OCT-99

File:
1 edited

Legend:

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

    r470 r473  
    1818
    1919SphereThetaPhi();
    20 SphereThetaPhi(int_4 m);
     20SphereThetaPhi(int m);
    2121SphereThetaPhi(char* flnm);
    2222SphereThetaPhi(const SphereThetaPhi<T>& s);
     
    2626
    2727/* retourne/fixe le nombre de pixels */
    28 virtual int_4 NbPixels() const;
    29 inline void setNbPixels(int_4 nbpix) { NPix_= nbpix; }
     28virtual int NbPixels() const;
     29inline void setNbPixels(int nbpix) { NPix_= nbpix; }
    3030
    3131/* retourne la valeur du pixel d'indice k */
    32 virtual T&       PixVal(int_4 k);
    33 virtual T const& PixVal(int_4 k) const;
     32virtual T&       PixVal(int k);
     33virtual T const& PixVal(int k) const;
    3434
    3535/* retourne l'indice du pixel a (theta,phi) */
    36 virtual int_4 PixIndexSph(float theta, float phi) const;
     36virtual int PixIndexSph(double theta, double phi) const;
    3737
    3838/* retourne les coordonnees Spheriques du centre du pixel d'indice k */
    39 virtual void PixThetaPhi(int_4 k, float& theta, float& phi) const;
     39virtual void PixThetaPhi(int k, double& theta, double& phi) const;
    4040
    4141/* retourne/fixe l'angle Solide de Pixel   (steradians) */
    42 virtual r_8 PixSolAngle(int_4 dummy) const;
    43 inline void setPixSolAngle(r_8 omega) { Omega_= omega; }
     42virtual double PixSolAngle(int dummy) const;
     43inline void setPixSolAngle(double omega) { Omega_= omega; }
    4444 
    4545/* retourne/fixe la valeur du parametre de decoupage m */
    46 inline virtual int_4 SizeIndex() const { return( NTheta_); }
    47 inline void setSizeIndex(int_4 nbindex) { NTheta_= nbindex; }
     46inline virtual int SizeIndex() const { return( NTheta_); }
     47inline void setSizeIndex(int nbindex) { NTheta_= nbindex; }
    4848
    4949// ------------- Specific methods  ----------------------
    5050
    51 virtual void Resize(int_4 m);
     51virtual void Resize(int m);
    5252
    5353inline virtual char* TypeOfMap() const {return "TETAFI";};
    5454
    55 /* Valeurs de theta des paralleles et phi des meridiens limitant  le pixel d'indice k */
    56 virtual void Limits(int_4 k,float& tet1,float& tet2,float& phi1,float& phi2);
     55/* Valeurs de theta des paralleles et phi des meridiens limitant le pixel d'indice k */
     56virtual void Limits(int k,double& th1,double& th2,double& phi1,double& phi2);
    5757
    5858/* Nombre de tranches en theta */
    59 int_4 NbThetaSlices() const;
     59int NbThetaSlices() const;
    6060
    6161/* Nombre de pixels en phi de la tranche d'indice kt */
    62 int_4 NPhi(int_4 kt) const;
     62int NPhi(int kt) const;
    6363
    6464/* Renvoie dans t1,t2 les valeurs respectives de theta min et theta max  */
    6565/* de la tranche d'indice kt  */
    66 void Theta(int_4 kt, float& t1, float& t2);
     66void Theta(int kt, double& t1, double& t2);
    6767
    6868/* Renvoie dans p1,p2 les valeurs phimin et phimax du pixel d'indice jp  */
    6969/* dans la tranche d'indice kt  */
    70 void Phi(int_4 kt, int_4 jp, float& p1, float& p2);
     70void Phi(int kt, int jp, double& p1, double& p2);
    7171
    7272/* Renvoie l'indice k du pixel d'indice jp dans la tranche d'indice kt   */
    73 int_4 Index(int_4 kt, int_4 jp) const;
     73int Index(int kt, int jp) const;
    7474
    7575/* Indice kt de la tranche et indice jp du pixel d'indice k  */
    76 void ThetaPhiIndex(int_4 k,int_4& kt,int_4& jp);
     76void ThetaPhiIndex(int k,int& kt,int& jp);
    7777
    78 void Pixelize(int_4);
     78void Pixelize(int);
    7979
    80 void GetThetaSlice(int_4 index,r_4& theta,TVector<float>& phi,TVector<T>& value) const;
     80void GetThetaSlice(int index,double& theta,TVector<double>& phi,TVector<T>& value) const;
    8181
    8282/*retourne le tableau contenant le nombre de pixels en phi de chacune des bandes en theta */
    83 inline const int_4* getmNPhi() const { return(NPhi_); }
    84 void setmNPhi(int_4* array, int_4 m);
     83inline const int* getmNPhi() const { return(NPhi_); }
     84void setmNPhi(int* array, int m);
    8585
    8686/* retourne/remplit le tableau contenant le nombre/Deuxpi total des pixels contenus dans les bandes */
    87 inline const int_4* getmTNphi() const { return(TNphi_); }
    88 void setmTNphi(int_4* array, int_4 m);
     87inline const int* getmTNphi() const { return(TNphi_); }
     88void setmTNphi(int* array, int m);
    8989
    9090/* retourne/remplit le tableau contenant les valeurs limites de theta */
    91 inline const r_4* getmTheta() const { return(Theta_); }
    92 void setmTheta(r_4* array, int_4 m);
     91inline const double* getmTheta() const { return(Theta_); }
     92void setmTheta(double* array, int m);
    9393
    9494/* retourne le pointeur vers/remplit  le vecteur des contenus des pixels */
    9595inline const NDataBlock<T>* getDataBlock() const { return (&pixels_); }
    96 void setDataBlock(T* data, int_4 m);
     96void setDataBlock(T* data, int m);
    9797
    9898/* impression */
     
    106106
    107107// ------------- variables internes ---------------------
    108 int_4 NTheta_;
    109 int_4 NPix_;
    110 r_8 Omega_;
    111 int_4* NPhi_;
    112 int_4* TNphi_;
    113 r_4* Theta_;
     108int NTheta_;
     109int NPix_;
     110double Omega_;
     111int* NPhi_;
     112int* TNphi_;
     113double* Theta_;
    114114NDataBlock<T> pixels_;
    115115};
Note: See TracChangeset for help on using the changeset viewer.