UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
zqdlg_spectrum.hpp
1 /* zqdlg_spectrum.hpp */
2 /* $Id: zqdlg_spectrum.hpp,v 1.2 2006/06/08 11:32:02 guser4 Exp $ */
3 
4 /*
5  * $Log: zqdlg_spectrum.hpp,v $
6  * Revision 1.2 2006/06/08 11:32:02 guser4
7  * + actual spectrum implementation.
8  *
9  * Revision 1.1 2006/06/07 06:44:35 guser4
10  * + Draft versions of ZqDlgPlot2D and ZqDlgSpectrum.
11  *
12  */
13 
14 #ifndef __zqdlg_spectrum_hpp
15 #define __zqdlg_spectrum_hpp
16 
17 #include <zq_curve.hpp>
18 #include <zd_f_vector.hpp>
19 #include <zqb_real_trace.hpp>
20 
21 #include "zqdlg_plot2d.hpp"
22 
23 
30 class ZqDlgSpectrum : public ZqDlgPlot2D
31 {
32  Q_OBJECT
33 
34 public:
35 
38  ZqDlgSpectrum (QWidget* parent, ZqbNatGroup& NatF,
39  int n, float dt, const float vt[]);
40 
43  ZqDlgSpectrum (QWidget* parent, ZqbNatGroup& NatF,
44  const ZqbRealTrace& rtr);
45 
47  virtual ~ZqDlgSpectrum ();
48 
49 
51  ZqCurve* curve ();
52 
54  void newData (int n, float dt, const float vt[]);
55 
57  void newData (const ZqbRealTrace& rtr);
58 
59 protected:
60 
63  float* fft (int n, float dt, const float vt[],
64  int& m, float& df, float& maxf);
65 
68  void zqInit (ZqbNatGroup& NatF);
69 
75  void zqLoad (int m, float* vf, float df, float maxf);
76 
78  float *m_pfSpectrum;
79 
81  ZdFVectorFloat *m_zdSpectrum;
82 
85 
86 };
87 
88 
89 #endif /* zqdlg_spectrum.hpp */
virtual ~ZqDlgSpectrum()
void newData(int n, float dt, const float vt[])
ZqDlgSpectrum(QWidget *parent, ZqbNatGroup &NatF, int n, float dt, const float vt[])
Definition: zqb_natgroup.hpp:35
ZqCurve * curve()
void zqLoad(int m, float *vf, float df, float maxf)
Definition: zq_curve.hpp:29
ZdFVectorFloat * m_zdSpectrum
Definition: zqdlg_spectrum.hpp:81
Definition: zqb_real_trace.hpp:19
ZqCurve * m_zqSpectrum
Definition: zqdlg_spectrum.hpp:84
Definition: zqdlg_spectrum.hpp:30
void zqInit(ZqbNatGroup &NatF)
float * fft(int n, float dt, const float vt[], int &m, float &df, float &maxf)
Definition: zqdlg_plot2d.hpp:33
float * m_pfSpectrum
Definition: zqdlg_spectrum.hpp:78