Ignore:
Timestamp:
Feb 21, 2000, 5:38:11 PM (26 years ago)
Author:
ansari
Message:

nouvelle gestion des thetaslices

File:
1 edited

Legend:

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

    r708 r726  
    4141virtual ~SphereThetaPhi();
    4242
     43/*! Setting blockdata to temporary (see ndatablock documentation) */
     44inline virtual void SetTemp(bool temp=false) const {pixels_.SetTemp(temp);};
     45
    4346// ------------ Definition of PixelMap abstract methods -
    4447
     
    9497/* Nombre de tranches en theta */
    9598/*!    Return number of theta-slices on the sphere */
    96 int_4 NbThetaSlices() const;
     99uint_4 NbThetaSlices() const;
    97100
    98101/* Nombre de pixels en phi de la tranche d'indice kt */
     
    140143void GetThetaSlice(int_4 index,double& theta,TVector<double>& phi,TVector<T>& value) const;
    141144
    142 
     145/*!   For a theta-slice with index 'index', return :
     146
     147   the corresponding "theta"
     148
     149   the corresponding "phi" for first pixel of the slice
     150
     151    a vector containing indices of the pixels of the slice
     152
     153   (equally distributed in phi)
     154
     155    a vector containing the corresponding values of pixels
     156*/
     157 void GetThetaSlice(int_4 index,double& theta, double& phi0,TVector<int>& pixelIndices, TVector<T>& value) const ;
    143158
    144159
     
    150165// ------------- méthodes internes ----------------------         
    151166void InitNul();
    152 void Clear();
    153167inline void setParameters(int nbpix, double omega, int nbThetaIndex)
    154168  {
     
    157171    NTheta_= nbThetaIndex;
    158172  }
    159 void setmNPhi(int* array, int m);
    160 void setmTNphi(int* array, int m);
    161 void setmTheta(double* array, int m);
    162  /*retourne l'adresse du tableau contenant le nombre de pixels en phi de chacune des bandes en theta */
    163 inline const int* getmNPhi() const { return(NPhi_); }
    164 
    165 /* retourne le tableau contenant le nombre/Deuxpi total des pixels contenus dans les bandes */
    166 inline const int* getmTNphi() const { return(TNphi_); }
    167 
    168 /* retourne le tableau contenant les valeurs limites de theta */
    169 inline const double* getmTheta() const { return(Theta_); }
    170173
    171174// ------------- variables internes ---------------------
     
    173176 int_4 NPix_;     // nombre total de pixels
    174177 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
    177 int_4* TNphi_;
    178 double* Theta_;
    179 NDataBlock<T> pixels_;
     178 NDataBlock<int_4>  NPhi_;  // tableau donnant, pour chaque bande en theta,
     179                         //le nombre de pixels selon phi
     180 NDataBlock<int_4> TNphi_;
     181 NDataBlock<r_8> Theta_;
     182 NDataBlock<T> pixels_;
    180183};
    181184
Note: See TracChangeset for help on using the changeset viewer.