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


Ignore:
Timestamp:
Dec 5, 2002, 4:43:18 PM (23 years ago)
Author:
lemeur
Message:

documentation

File:
1 edited

Legend:

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

    r2198 r2290  
    6969virtual T& PixVal(int_4 k);
    7070virtual T const& PixVal(int_4 k) const;
    71 
     71  //! if fg = true, will generate  exceptions , when theta-phi out of range
    7272inline  void SetThrowExceptionWhenOutofMapFlag(bool fg = false) { exc_outofmap_ = fg; }
    73 // true --> Genere des exceptions si theta-phi out of range , sinon, index a -1
     73
     74//! true --> exceptions wil be active when theta-phi out of range
    7475inline  bool GetThrowExceptionWhenOutofMapFlag() { return exc_outofmap_; }
    7576
    7677virtual bool ContainsSph(double theta, double phi) const;
     78//! return pixel number correspoinding to (theta,phi)
    7779virtual int_4 PixIndexSph(double theta,double phi) const;
    7880   
     81//! return (theta,phi) correspoinding to pixel number k
    7982virtual void PixThetaPhi(int_4 k,double& theta,double& phi) const;
    8083
     84//! set all pixel values equal to v
    8185virtual T SetPixels(T v);
    8286
     87// return the solid angle covered by pixel k (steradians)
    8388virtual double PixSolAngle(int_4 k) const;
    8489
     
    9196void SetSize(double angleX,double angleY);
    9297
    93 
    94 inline virtual char* TypeOfMap() const {return "LOCAL";};
     98  /*! \fn TypeOfMap()
     99 return the string "LOCAL"
     100  */
     101inline virtual string TypeOfMap() const {return string("LOCAL");};
    95102 
    96103
     
    152159inline  LocalMap<T>& operator = (T a) {return SetT(a);}
    153160
    154 //! Add \b x to all elements
     161// Add \b x to all elements
    155162virtual LocalMap<T>& Add(T a);
    156163inline  LocalMap<T>&  operator += (T x)  { return Add(x); }
    157 //! Substract \b x to all elements
     164// Substract \b x to all elements
    158165virtual LocalMap<T>& Sub(T a,bool fginv=false);
    159166inline   LocalMap<T>&  operator -= (T x)  { return Sub(x); }
    160 //! Multiply all elements by \b x
     167// Multiply all elements by \b x
    161168virtual LocalMap<T>& Mul(T a);
    162169inline  LocalMap<T>&  operator *= (T x)  { return Mul(x); }
    163 //! Divide all elements by \b x
     170// Divide all elements by \b x
    164171virtual LocalMap<T>& Div(T a);
    165172inline  LocalMap<T>&  operator /= (T x)  { return Div(x); }
Note: See TracChangeset for help on using the changeset viewer.