Changeset 701 in Sophya for trunk/SophyaLib/Samba/spherethetaphi.h
- Timestamp:
- Jan 4, 2000, 3:27:29 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/Samba/spherethetaphi.h
r682 r701 8 8 #include "anydataobj.h" 9 9 #include "ppersist.h" 10 11 template <class T> 12 class FIO_SphereThetaPhi; 13 10 14 11 15 // ***************** Class SphereThetaPhi ***************************** … … 24 28 { 25 29 30 friend class FIO_SphereThetaPhi<T>; 31 26 32 public : 27 33 … … 37 43 // ------------ Definition of PixelMap abstract methods - 38 44 39 /* retourne /fixele nombre de pixels */45 /* retourne le nombre de pixels */ 40 46 /*! Return total number of pixels */ 41 47 virtual int_4 NbPixels() const; 42 inline void setNbPixels(int_4 nbpix) { NPix_= nbpix; }43 48 44 49 /* retourne la valeur du pixel d'indice k */ … … 67 72 fulfil this requirement. 68 73 */ 69 virtual double PixSolAngle(int_4 dummy) const; 70 inline void setPixSolAngle(double omega) { Omega_= omega; } 74 virtual double PixSolAngle(int_4 dummy=0) const; 71 75 72 76 /* retourne/fixe la valeur du parametre de decoupage m */ 73 77 inline virtual int_4 SizeIndex() const { return( NTheta_); } 74 inline void setSizeIndex(int_4 nbindex) { NTheta_= nbindex; }75 78 76 79 // ------------- Specific methods ---------------------- … … 133 136 void GetThetaSlice(int_4 index,double& theta,TVector<double>& phi,TVector<T>& value) const; 134 137 135 /*retourne le tableau contenant le nombre de pixels en phi de chacune des bandes en theta */ 136 inline const int_4* getmNPhi() const { return(NPhi_); } 137 void setmNPhi(int_4* array, int_4 m); 138 139 /* retourne/remplit le tableau contenant le nombre/Deuxpi total des pixels contenus dans les bandes */ 140 inline const int_4* getmTNphi() const { return(TNphi_); } 141 void setmTNphi(int_4* array, int_4 m); 142 143 /* retourne/remplit le tableau contenant les valeurs limites de theta */ 144 inline const double* getmTheta() const { return(Theta_); } 145 void setmTheta(double* array, int_4 m); 146 147 /* retourne le pointeur vers/remplit le vecteur des contenus des pixels */ 148 inline const NDataBlock<T>* getDataBlock() const { return (&pixels_); } 149 void setDataBlock(T* data, int_4 m); 150 151 /* Acces to the DataBlock */ 152 inline NDataBlock<T>& DataBlock() {return pixels_;} 153 inline const NDataBlock<T>& DataBlock() const {return pixels_;} 138 139 154 140 155 141 /* impression */ … … 161 147 void InitNul(); 162 148 void Clear(); 149 inline void setParameters(int nbpix, double omega, int nbThetaIndex) 150 { 151 NPix_= nbpix; 152 Omega_= omega; 153 NTheta_= nbThetaIndex; 154 } 155 void setmNPhi(int* array, int m); 156 void setmTNphi(int* array, int m); 157 void setmTheta(double* array, int m); 158 /*retourne l'adresse du tableau contenant le nombre de pixels en phi de chacune des bandes en theta */ 159 inline const int* getmNPhi() const { return(NPhi_); } 160 161 /* retourne le tableau contenant le nombre/Deuxpi total des pixels contenus dans les bandes */ 162 inline const int* getmTNphi() const { return(TNphi_); } 163 164 /* retourne le tableau contenant les valeurs limites de theta */ 165 inline const double* getmTheta() const { return(Theta_); } 166 167 /* Acces to the DataBlock */ 168 //inline NDataBlock<T>& DataBlock() {return pixels_;} 169 //inline const NDataBlock<T>& DataBlock() const {return pixels_;} 163 170 164 171 // ------------- variables internes --------------------- 165 int_4 NTheta_; 166 int_4 NPix_; 167 double Omega_; 168 int_4* NPhi_; 172 int_4 NTheta_; // nombre de tranches en theta, pour une demi-sphere 173 int_4 NPix_; // nombre total de pixels 174 double Omega_; // angle solide constant pour chaque pixel 175 int_4* NPhi_; // tableau donnant, pour chaque bande en theta, le nombre de 176 // pixels selon phi 169 177 int_4* TNphi_; 170 178 double* Theta_; … … 185 193 virtual AnyDataObj* DataObj(); 186 194 inline operator SphereThetaPhi<T>() { return(*dobj); } 187 //inline SphereThetaPhi<T> getObj() { return(*dobj); }188 195 189 196 protected :
Note:
See TracChangeset
for help on using the changeset viewer.