Changeset 3510 in Sophya for trunk/SophyaLib/Samba/sphericaltransformserver.h
- Timestamp:
- Aug 8, 2008, 3:11:45 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/Samba/sphericaltransformserver.h
r3003 r3510 5 5 #include "fftservintf.h" 6 6 #include "fftpserver.h" 7 #include "stsrand.h" 7 8 #include "alm.h" 8 9 #include "lambdaBuilder.h" … … 18 19 public: 19 20 20 SphericalTransformServer() 21 { 22 fftIntfPtr_=new FFTPackServer(true); // preserveinput = true 23 fftIntfPtr_->setNormalize(false); 24 }; 25 ~SphericalTransformServer(){ if (fftIntfPtr_!=NULL) delete fftIntfPtr_;}; 21 SphericalTransformServer(); 22 SphericalTransformServer(RandomGenerator const & rg); 23 virtual ~SphericalTransformServer(); 24 void SetFFTServer(FFTServerInterface* srv=NULL); 26 25 27 /*!28 Set a fft server. The constructor sets a default fft server (fft-pack). So it is not necessary to call this method for a standard use.29 \warning The FFTServerInterface object should NOT overwrite the input arrays30 */31 void SetFFTServer(FFTServerInterface* srv=NULL)32 {33 if (fftIntfPtr_!=NULL) delete fftIntfPtr_;34 fftIntfPtr_=srv;35 fftIntfPtr_->setNormalize(false);36 }37 26 38 27 void GenerateFromAlm( SphericalMap<T>& map, int_4 pixelSizeIndex, const Alm<T>& alm) const; … … 44 33 int_4 pixelSizeIndex, 45 34 const TVector<T>& Cle, const TVector<T>& Clb, 46 const r_8 fwhm) const;35 const r_8 fwhm) const; 47 36 48 37 … … 118 107 119 108 FFTServerInterface* fftIntfPtr_; 109 mutable RandomGenerator rg_; 120 110 121 111 };
Note:
See TracChangeset
for help on using the changeset viewer.