Changeset 473 in Sophya for trunk/SophyaLib/Samba/spherethetaphi.h
- Timestamp:
- Oct 18, 1999, 4:37:44 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/Samba/spherethetaphi.h
r470 r473 18 18 19 19 SphereThetaPhi(); 20 SphereThetaPhi(int _4m);20 SphereThetaPhi(int m); 21 21 SphereThetaPhi(char* flnm); 22 22 SphereThetaPhi(const SphereThetaPhi<T>& s); … … 26 26 27 27 /* retourne/fixe le nombre de pixels */ 28 virtual int _4NbPixels() const;29 inline void setNbPixels(int _4nbpix) { NPix_= nbpix; }28 virtual int NbPixels() const; 29 inline void setNbPixels(int nbpix) { NPix_= nbpix; } 30 30 31 31 /* retourne la valeur du pixel d'indice k */ 32 virtual T& PixVal(int _4k);33 virtual T const& PixVal(int _4k) const;32 virtual T& PixVal(int k); 33 virtual T const& PixVal(int k) const; 34 34 35 35 /* retourne l'indice du pixel a (theta,phi) */ 36 virtual int _4 PixIndexSph(float theta, floatphi) const;36 virtual int PixIndexSph(double theta, double phi) const; 37 37 38 38 /* retourne les coordonnees Spheriques du centre du pixel d'indice k */ 39 virtual void PixThetaPhi(int _4 k, float& theta, float& phi) const;39 virtual void PixThetaPhi(int k, double& theta, double& phi) const; 40 40 41 41 /* retourne/fixe l'angle Solide de Pixel (steradians) */ 42 virtual r_8 PixSolAngle(int_4dummy) const;43 inline void setPixSolAngle( r_8omega) { Omega_= omega; }42 virtual double PixSolAngle(int dummy) const; 43 inline void setPixSolAngle(double omega) { Omega_= omega; } 44 44 45 45 /* retourne/fixe la valeur du parametre de decoupage m */ 46 inline virtual int _4SizeIndex() const { return( NTheta_); }47 inline void setSizeIndex(int _4nbindex) { NTheta_= nbindex; }46 inline virtual int SizeIndex() const { return( NTheta_); } 47 inline void setSizeIndex(int nbindex) { NTheta_= nbindex; } 48 48 49 49 // ------------- Specific methods ---------------------- 50 50 51 virtual void Resize(int _4m);51 virtual void Resize(int m); 52 52 53 53 inline virtual char* TypeOfMap() const {return "TETAFI";}; 54 54 55 /* Valeurs de theta des paralleles et phi des meridiens limitant 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 */ 56 virtual void Limits(int k,double& th1,double& th2,double& phi1,double& phi2); 57 57 58 58 /* Nombre de tranches en theta */ 59 int _4NbThetaSlices() const;59 int NbThetaSlices() const; 60 60 61 61 /* Nombre de pixels en phi de la tranche d'indice kt */ 62 int _4 NPhi(int_4kt) const;62 int NPhi(int kt) const; 63 63 64 64 /* Renvoie dans t1,t2 les valeurs respectives de theta min et theta max */ 65 65 /* de la tranche d'indice kt */ 66 void Theta(int _4 kt, float& t1, float& t2);66 void Theta(int kt, double& t1, double& t2); 67 67 68 68 /* Renvoie dans p1,p2 les valeurs phimin et phimax du pixel d'indice jp */ 69 69 /* dans la tranche d'indice kt */ 70 void Phi(int _4 kt, int_4 jp, float& p1, float& p2);70 void Phi(int kt, int jp, double& p1, double& p2); 71 71 72 72 /* Renvoie l'indice k du pixel d'indice jp dans la tranche d'indice kt */ 73 int _4 Index(int_4 kt, int_4jp) const;73 int Index(int kt, int jp) const; 74 74 75 75 /* 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);76 void ThetaPhiIndex(int k,int& kt,int& jp); 77 77 78 void Pixelize(int _4);78 void Pixelize(int); 79 79 80 void GetThetaSlice(int _4 index,r_4& theta,TVector<float>& phi,TVector<T>& value) const;80 void GetThetaSlice(int index,double& theta,TVector<double>& phi,TVector<T>& value) const; 81 81 82 82 /*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_4m);83 inline const int* getmNPhi() const { return(NPhi_); } 84 void setmNPhi(int* array, int m); 85 85 86 86 /* 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_4m);87 inline const int* getmTNphi() const { return(TNphi_); } 88 void setmTNphi(int* array, int m); 89 89 90 90 /* 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_4m);91 inline const double* getmTheta() const { return(Theta_); } 92 void setmTheta(double* array, int m); 93 93 94 94 /* retourne le pointeur vers/remplit le vecteur des contenus des pixels */ 95 95 inline const NDataBlock<T>* getDataBlock() const { return (&pixels_); } 96 void setDataBlock(T* data, int _4m);96 void setDataBlock(T* data, int m); 97 97 98 98 /* impression */ … … 106 106 107 107 // ------------- variables internes --------------------- 108 int _4NTheta_;109 int _4NPix_;110 r_8Omega_;111 int _4* NPhi_;112 int _4* TNphi_;113 r_4* Theta_;108 int NTheta_; 109 int NPix_; 110 double Omega_; 111 int* NPhi_; 112 int* TNphi_; 113 double* Theta_; 114 114 NDataBlock<T> pixels_; 115 115 };
Note:
See TracChangeset
for help on using the changeset viewer.