Changeset 682 in Sophya for trunk/SophyaLib/Samba/spherethetaphi.h
- Timestamp:
- Dec 10, 1999, 5:56:03 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/Samba/spherethetaphi.h
r604 r682 31 31 pet is a dummy parameter at the moment. 32 32 */ 33 SphereThetaPhi(int m);33 SphereThetaPhi(int_4 m); 34 34 SphereThetaPhi(const SphereThetaPhi<T>& s, bool share=false); 35 35 virtual ~SphereThetaPhi(); … … 39 39 /* retourne/fixe le nombre de pixels */ 40 40 /*! Return total number of pixels */ 41 virtual int NbPixels() const;42 inline void setNbPixels(int nbpix) { NPix_= nbpix; }41 virtual int_4 NbPixels() const; 42 inline void setNbPixels(int_4 nbpix) { NPix_= nbpix; } 43 43 44 44 /* retourne la valeur du pixel d'indice k */ 45 45 /*! Return value of pixel with index k */ 46 virtual T& PixVal(int k);47 virtual T const& PixVal(int k) const;46 virtual T& PixVal(int_4 k); 47 virtual T const& PixVal(int_4 k) const; 48 48 49 49 /* Return true if teta,phi in map */ … … 51 51 /* retourne l'indice du pixel a (theta,phi) */ 52 52 /* Return index of the pixel corresponding to direction (theta, phi). */ 53 virtual int PixIndexSph(double theta, double phi) const;53 virtual int_4 PixIndexSph(double theta, double phi) const; 54 54 55 55 /* retourne les coordonnees Spheriques du centre du pixel d'indice k */ 56 56 /*! Return (theta,phi) coordinates of middle of pixel with index k */ 57 virtual void PixThetaPhi(int k, double& theta, double& phi) const;57 virtual void PixThetaPhi(int_4 k, double& theta, double& phi) const; 58 58 59 59 /*! Setting pixel values to a constant */ … … 67 67 fulfil this requirement. 68 68 */ 69 virtual double PixSolAngle(int dummy) const;69 virtual double PixSolAngle(int_4 dummy) const; 70 70 inline void setPixSolAngle(double omega) { Omega_= omega; } 71 71 72 72 /* 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; }73 inline virtual int_4 SizeIndex() const { return( NTheta_); } 74 inline void setSizeIndex(int_4 nbindex) { NTheta_= nbindex; } 75 75 76 76 // ------------- Specific methods ---------------------- 77 77 78 78 /*! re-pixelize the sphere */ 79 virtual void Resize(int m);79 virtual void Resize(int_4 m); 80 80 81 81 inline virtual char* TypeOfMap() const {return "TETAFI";}; … … 83 83 /* Valeurs de theta des paralleles et phi des meridiens limitant le pixel d'indice k */ 84 84 /* 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);85 virtual void Limits(int_4 k,double& th1,double& th2,double& phi1,double& phi2); 86 86 87 87 /* Nombre de tranches en theta */ 88 88 /*! Return number of theta-slices on the sphere */ 89 int NbThetaSlices() const;89 int_4 NbThetaSlices() const; 90 90 91 91 /* Nombre de pixels en phi de la tranche d'indice kt */ 92 int NPhi(intkt) const;92 int_4 NPhi(int_4 kt) const; 93 93 94 94 /* Renvoie dans t1,t2 les valeurs respectives de theta min et theta max */ 95 95 /* de la tranche d'indice kt */ 96 96 /*! Return theta values which limit the slice kt */ 97 void Theta(int kt, double& t1, double& t2);97 void Theta(int_4 kt, double& t1, double& t2); 98 98 99 99 /* Renvoie dans p1,p2 les valeurs phimin et phimax du pixel d'indice jp */ 100 100 /* dans la tranche d'indice kt */ 101 101 /*! Return values of phi which limit the jp-th pixel of the kt-th slice */ 102 void Phi(int kt, intjp, double& p1, double& p2);102 void Phi(int_4 kt, int_4 jp, double& p1, double& p2); 103 103 104 104 /* Renvoie l'indice k du pixel d'indice jp dans la tranche d'indice kt */ 105 105 /*! Return pixel index with sequence index jp in the slice kt */ 106 int Index(int kt, intjp) const;106 int_4 Index(int_4 kt, int_4 jp) const; 107 107 108 108 /* Indice kt de la tranche et indice jp du pixel d'indice k */ 109 109 /*! Return indices kt (theta) and jp (phi) of pixel with index k */ 110 void ThetaPhiIndex(int k,int& kt,int& jp);110 void ThetaPhiIndex(int_4 k,int_4& kt,int_4& jp); 111 111 112 112 /*! achieve the splitting into pixels (m has the same signification … … 121 121 phi of the slice closest of the equator with z<0). 122 122 */ 123 void Pixelize(int );123 void Pixelize(int_4); 124 124 125 125 /*! For a theta-slice with index 'index', return : … … 131 131 a vector containing the corresponding values of pixels 132 132 */ 133 void GetThetaSlice(int index,double& theta,TVector<double>& phi,TVector<T>& value) const;133 void GetThetaSlice(int_4 index,double& theta,TVector<double>& phi,TVector<T>& value) const; 134 134 135 135 /*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, intm);136 inline const int_4* getmNPhi() const { return(NPhi_); } 137 void setmNPhi(int_4* array, int_4 m); 138 138 139 139 /* 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, intm);140 inline const int_4* getmTNphi() const { return(TNphi_); } 141 void setmTNphi(int_4* array, int_4 m); 142 142 143 143 /* retourne/remplit le tableau contenant les valeurs limites de theta */ 144 144 inline const double* getmTheta() const { return(Theta_); } 145 void setmTheta(double* array, int m);145 void setmTheta(double* array, int_4 m); 146 146 147 147 /* retourne le pointeur vers/remplit le vecteur des contenus des pixels */ 148 148 inline const NDataBlock<T>* getDataBlock() const { return (&pixels_); } 149 void setDataBlock(T* data, int m);149 void setDataBlock(T* data, int_4 m); 150 150 151 151 /* Acces to the DataBlock */ … … 163 163 164 164 // ------------- variables internes --------------------- 165 int NTheta_;166 int NPix_;165 int_4 NTheta_; 166 int_4 NPix_; 167 167 double Omega_; 168 int * NPhi_;169 int * TNphi_;168 int_4* NPhi_; 169 int_4* TNphi_; 170 170 double* Theta_; 171 171 NDataBlock<T> pixels_;
Note:
See TracChangeset
for help on using the changeset viewer.