Changeset 840 in Sophya for trunk/SophyaLib/SkyMap/spherethetaphi.h
- Timestamp:
- Apr 7, 2000, 5:49:47 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/SkyMap/spherethetaphi.h
r764 r840 8 8 #include "anydataobj.h" 9 9 #include "ppersist.h" 10 11 namespace SOPHYA { 12 13 10 14 11 15 template <class T> … … 141 145 a vector containing the corresponding values of pixels 142 146 */ 143 v oid GetThetaSlice(int_4 index,r_8& theta,TVector<r_8>& phi,TVector<T>& value) const;147 virtual void GetThetaSlice(int_4 index,r_8& theta,TVector<r_8>& phi,TVector<T>& value) const; 144 148 145 149 /*! For a theta-slice with index 'index', return : … … 155 159 a vector containing the corresponding values of pixels 156 160 */ 157 void GetThetaSlice(int_4 index, r_8& theta, r_8& phi0,TVector<int_4>& pixelIndices, TVector<T>& value) const ;161 virtual void GetThetaSlice(int_4 index, r_8& theta, r_8& phi0,TVector<int_4>& pixelIndices, TVector<T>& value) const ; 158 162 159 163 … … 165 169 // ------------- méthodes internes ---------------------- 166 170 void InitNul(); 167 inline void setParameters( int nbpix, double omega, int nbThetaIndex)171 inline void setParameters( int nbThetaIndex, int nbpix, double omega) 168 172 { 169 173 NPix_= nbpix; … … 183 187 }; 184 188 185 // ------------- Classe pour la gestion de persistance --186 template <class T>187 class FIO_SphereThetaPhi : public PPersist188 {189 public:190 189 191 FIO_SphereThetaPhi();192 FIO_SphereThetaPhi(string const & filename);193 FIO_SphereThetaPhi(const SphereThetaPhi<T>& obj);194 FIO_SphereThetaPhi(SphereThetaPhi<T>* obj);195 virtual ~FIO_SphereThetaPhi();196 virtual AnyDataObj* DataObj();197 virtual void SetDataObj(AnyDataObj & o);198 inline operator SphereThetaPhi<T>() { return(*dobj); }199 190 200 protected : 201 202 virtual void ReadSelf(PInPersist&); 203 virtual void WriteSelf(POutPersist&) const; 204 SphereThetaPhi<T>* dobj; 205 bool ownobj; 206 }; 191 } // Fin du namespace 207 192 208 193 #endif
Note:
See TracChangeset
for help on using the changeset viewer.