Changeset 473 in Sophya for trunk/SophyaLib/Samba/pixelmap.h


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/pixelmap.h

    r470 r473  
    2525 
    2626// Number of pixels
    27 virtual int_4 NbPixels() const=0;
     27virtual int NbPixels() const=0;
    2828   
    2929// Value of pixel number k
    30 virtual T& PixVal(int_4 k)=0;
    31 virtual T const& PixVal(int_4 k) const=0;
     30virtual T& PixVal(int k)=0;
     31virtual T const& PixVal(int k) const=0;
    3232   
    3333// Index of pixel at (theta,phi)
    34 virtual int_4 PixIndexSph(float theta, float phi) const=0;
     34virtual int PixIndexSph(double theta, double phi) const=0;
    3535
    3636// Value of pixel number at (theta,phi)
    37 virtual T& PixValSph(float theta, float phi)
     37virtual T& PixValSph(double theta, double phi)
    3838                           {return PixVal(PixIndexSph(theta,phi));}
    39 virtual T const& PixValSph(float theta, float phi) const
     39virtual T const& PixValSph(double theta, double phi) const
    4040                           {return PixVal(PixIndexSph(theta,phi));}
    4141
    4242// Spherical coordinates of center of pixel number k
    43 virtual void PixThetaPhi(int_4 k, float& theta, float& phi) const=0;
     43virtual void PixThetaPhi(int k, double& theta, double& phi) const=0;
    4444
    4545// provides a integer characterizing the pixelization refinement
    4646// (depending of the type of the map)             
    47 virtual int_4 SizeIndex() const=0;
     47virtual int SizeIndex() const=0;
    4848virtual char* TypeOfMap() const =0;
    4949
    5050// Pixel  (steradians)
    51 virtual r_8 PixSolAngle(int_4 k) const =0;
     51virtual double PixSolAngle(int k) const =0;
    5252
    5353// Overloading of () to access pixel number k.
    54 inline T& operator()(int_4 k) {return(PixVal(k));}
    55 inline T const& operator()(int_4 k) const {return(PixVal(k));}
     54inline T& operator()(int k) {return(PixVal(k));}
     55inline T const& operator()(int k) const {return(PixVal(k));}
    5656
    57 // Note : no overloading of (float,float) to access pixel (theta,phi).
    58 // overloading of (float,float) in SphericalMap
     57// Note : no overloading of (double,double) to access pixel (theta,phi).
     58// overloading of (double,double) in SphericalMap
    5959// overloading of (int,int)     in CartesianMap
    6060
Note: See TracChangeset for help on using the changeset viewer.