Changeset 2290 in Sophya for trunk/SophyaLib/SkyMap/localmap.h
- Timestamp:
- Dec 5, 2002, 4:43:18 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/SkyMap/localmap.h
r2198 r2290 69 69 virtual T& PixVal(int_4 k); 70 70 virtual T const& PixVal(int_4 k) const; 71 71 //! if fg = true, will generate exceptions , when theta-phi out of range 72 72 inline 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 74 75 inline bool GetThrowExceptionWhenOutofMapFlag() { return exc_outofmap_; } 75 76 76 77 virtual bool ContainsSph(double theta, double phi) const; 78 //! return pixel number correspoinding to (theta,phi) 77 79 virtual int_4 PixIndexSph(double theta,double phi) const; 78 80 81 //! return (theta,phi) correspoinding to pixel number k 79 82 virtual void PixThetaPhi(int_4 k,double& theta,double& phi) const; 80 83 84 //! set all pixel values equal to v 81 85 virtual T SetPixels(T v); 82 86 87 // return the solid angle covered by pixel k (steradians) 83 88 virtual double PixSolAngle(int_4 k) const; 84 89 … … 91 96 void SetSize(double angleX,double angleY); 92 97 93 94 inline virtual char* TypeOfMap() const {return "LOCAL";}; 98 /*! \fn TypeOfMap() 99 return the string "LOCAL" 100 */ 101 inline virtual string TypeOfMap() const {return string("LOCAL");}; 95 102 96 103 … … 152 159 inline LocalMap<T>& operator = (T a) {return SetT(a);} 153 160 154 // !Add \b x to all elements161 // Add \b x to all elements 155 162 virtual LocalMap<T>& Add(T a); 156 163 inline LocalMap<T>& operator += (T x) { return Add(x); } 157 // !Substract \b x to all elements164 // Substract \b x to all elements 158 165 virtual LocalMap<T>& Sub(T a,bool fginv=false); 159 166 inline LocalMap<T>& operator -= (T x) { return Sub(x); } 160 // !Multiply all elements by \b x167 // Multiply all elements by \b x 161 168 virtual LocalMap<T>& Mul(T a); 162 169 inline LocalMap<T>& operator *= (T x) { return Mul(x); } 163 // !Divide all elements by \b x170 // Divide all elements by \b x 164 171 virtual LocalMap<T>& Div(T a); 165 172 inline LocalMap<T>& operator /= (T x) { return Div(x); }
Note:
See TracChangeset
for help on using the changeset viewer.