Changeset 2052 in Sophya for trunk/SophyaLib/SkyMap/localmap.h


Ignore:
Timestamp:
Jun 11, 2002, 7:13:42 PM (23 years ago)
Author:
ansari
Message:

corrections mineures ds localmap - Reza 11/6/2002

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/SkyMap/localmap.h

    r2013 r2052  
    5757inline T& operator()(int_4 ix, int_4 iy) {return PixVal(iy*nSzX_+ix);};
    5858inline T const& operator()(int_4 ix, int_4 iy) const {return PixVal(iy*nSzX_+ix);};
     59
     60// Acces a un pixel
     61inline T& operator()(double theta,double phi) {return(PixValSph(theta,phi));};
     62inline T  const& operator()(double theta,double phi) const {return(PixValSph(theta,phi));};
    5963   
    6064// ---------- Definition of PixelMap abstract methods -------
     
    6468virtual T& PixVal(int_4 k);
    6569virtual T const& PixVal(int_4 k) const;
     70
     71inline  void SetThrowExceptionWhenOutofMapFlag(bool fg = false) { exc_outofmap_ = fg; }
     72// true --> Genere des exceptions si theta-phi out of range , sinon, index a -1
     73inline  void GetThrowExceptionWhenOutofMapFlag() { return exc_outofmap_; }
    6674
    6775virtual bool ContainsSph(double theta, double phi) const;
     
    231239  double deltaTheta_;
    232240
     241  bool exc_outofmap_;
    233242
    234243
Note: See TracChangeset for help on using the changeset viewer.