UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
cdft2d.hpp
1 /* ffcd2d.hpp */
2 /* $Id: cdft2d.hpp 21330 2011-12-08 11:17:32Z urij $ Kolosov 07_02_2009*/
3 #ifndef __ffcd2d_hpp
4 #define __ffcd2d_hpp
5 
6 #ifdef GE_BUILD
7 #include <s2_corr.hpp>
8 #include <trace.hpp>
9 #else
10 #include <s2proc/s2_corr.hpp>
11 #include <s2proc/trace.hpp>
12 #endif
13 
15 class CDFT2D
16 {
17 public:
18 
20  enum NormType
21  {
22  DINORM = 0,
25  };
26 
29  CDFT2D(int direction = 1);
30 
31  virtual ~CDFT2D();
32 
34  bool operator ()(WaveField &tReal, WaveField &tIm) const
35  {return calc(tReal, tIm);}
36 
38  virtual bool calc( WaveField &tReal, WaveField &tIm ) const = 0;
39 
41  void setDirection(int direction) {m_direction = direction;}
42 
44  int getDirection() const {return m_direction;}
45 
46  void setNormType(NormType norm_type) {m_norm_type = norm_type;}
47 
48  NormType getNormType() const {return m_norm_type;}
49 
50 protected:
51 
54 
55  NormType m_norm_type;
56 };
57 
58 #endif /* ffcd2d.hpp */
virtual bool calc(WaveField &tReal, WaveField &tIm) const =0
Definition: cdft2d.hpp:23
int m_direction
Definition: cdft2d.hpp:53
Definition: cdft2d.hpp:22
Definition: wave_field.hpp:13
NormType
Definition: cdft2d.hpp:20
Definition: cdft2d.hpp:24
int getDirection() const
Definition: cdft2d.hpp:44
bool operator()(WaveField &tReal, WaveField &tIm) const
Definition: cdft2d.hpp:34
CDFT2D(int direction=1)
void setDirection(int direction)
Definition: cdft2d.hpp:41
Definition: cdft2d.hpp:15