Ignore:
Timestamp:
Aug 8, 2008, 3:11:45 PM (17 years ago)
Author:
ansari
Message:

Nettoyage alm.h .cc , utilisation RandomGenerator par Alm<T> et SphericalTransformServer , Reza 08/08/2008

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/Samba/sphericaltransformserver.h

    r3003 r3510  
    55#include "fftservintf.h"
    66#include "fftpserver.h"
     7#include "stsrand.h"
    78#include "alm.h"
    89#include "lambdaBuilder.h"
     
    1819 public:
    1920
    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);
    2625 
    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 arrays
    30 */
    31   void SetFFTServer(FFTServerInterface* srv=NULL)
    32     {
    33       if (fftIntfPtr_!=NULL) delete fftIntfPtr_;
    34       fftIntfPtr_=srv;
    35       fftIntfPtr_->setNormalize(false);
    36     }
    3726
    3827  void GenerateFromAlm( SphericalMap<T>& map, int_4 pixelSizeIndex, const Alm<T>& alm) const;
     
    4433                     int_4 pixelSizeIndex,
    4534                     const TVector<T>& Cle, const TVector<T>& Clb,
    46                     const r_8 fwhm) const;
     35                     const r_8 fwhm) const;
    4736
    4837
     
    118107
    119108 FFTServerInterface* fftIntfPtr_;
     109 mutable RandomGenerator rg_;
    120110
    121111};
Note: See TracChangeset for help on using the changeset viewer.