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


Ignore:
Timestamp:
Dec 10, 1999, 5:56:03 PM (26 years ago)
Author:
ansari
Message:

Compilation Mac pour CodeWarrior PRO 5

File:
1 edited

Legend:

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

    r592 r682  
    3636
    3737/*! Number of pixels */
    38 virtual int NbPixels() const=0;
     38virtual int_4 NbPixels() const=0;
    3939   
    4040/*! Value of pixel number k */
    41 virtual T& PixVal(int k)=0;
    42 virtual T const& PixVal(int k) const=0;
     41virtual T& PixVal(int_4 k)=0;
     42virtual T const& PixVal(int_4 k) const=0;
    4343
    4444// Map s coverage
     
    4747
    4848/*! Index of pixel at (theta,phi) */
    49 virtual int PixIndexSph(double theta, double phi) const=0;
     49virtual int_4 PixIndexSph(double theta, double phi) const=0;
    5050// Index of pixel at a sky-position
    51 virtual int PixIndex(const SpherePosition& spos);
     51virtual int_4 PixIndex(const SpherePosition& spos);
    5252
    5353/*! Value of pixel number at (theta,phi) */
     
    5858
    5959/*! Spherical coordinates of center of pixel number k */
    60 virtual void PixThetaPhi(int k, double& theta, double& phi) const=0;
     60virtual void PixThetaPhi(int_4 k, double& theta, double& phi) const=0;
    6161
    6262/*! provides a integer characterizing the pixelization refinement
    6363 (depending of the type of the map)
    6464*/             
    65 virtual int SizeIndex() const=0;
     65virtual int_4 SizeIndex() const=0;
    6666virtual char* TypeOfMap() const =0;
    6767
    6868/*! Pixel  (steradians) */
    69 virtual double PixSolAngle(int k) const =0;
     69virtual double PixSolAngle(int_4 k) const =0;
    7070
    7171/*! Overloading of () to access pixel number k. */
    72 inline T& operator()(int k) {return(PixVal(k));}
    73 inline T const& operator()(int k) const {return(PixVal(k));}
     72inline T& operator()(int_4 k) {return(PixVal(k));}
     73inline T const& operator()(int_4 k) const {return(PixVal(k));}
    7474
    7575// Overloading of () to access pixel at a sky position .
     
    110110
    111111template <class T>
    112 int PixelMap<T>::PixIndex(const SpherePosition& spos)
     112int_4 PixelMap<T>::PixIndex(const SpherePosition& spos)
    113113{
    114114UnitVector v = spos.Transform(*cs_);
Note: See TracChangeset for help on using the changeset viewer.