QtiPlot 0.9.7.3
Public Member Functions | Private Member Functions | Private Attributes

FFT Class Reference

#include <FFT.h>

Inheritance diagram for FFT:
Filter

List of all members.

Public Member Functions

 FFT (ApplicationWindow *parent, Table *t, const QString &realColName, const QString &imagColName=QString(), int from=1, int to=-1)
 FFT (ApplicationWindow *parent, QwtPlotCurve *c)
 FFT (ApplicationWindow *parent, Graph *g, const QString &curveTitle)
 FFT (ApplicationWindow *parent, Graph *g, const QString &curveTitle, double start, double end)
 FFT (ApplicationWindow *parent, QwtPlotCurve *c, double start, double end)
void normalizeAmplitudes (bool norm=true)
void setInverseFFT (bool inverse=true)
void setSampling (double sampling)
void shiftFrequencies (bool shift=true)

Private Member Functions

QString fftCurve ()
QString fftTable ()
void init ()
void output ()
 Performs the data analysis and takes care of the output.
void output (const QString &text)
bool setDataFromTable (Table *t, const QString &realColName, const QString &imagColName=QString(), int from=0, int to=-1)

Private Attributes

int d_imag_col
bool d_inverse
 Flag telling if an inverse FFT must be performed.
bool d_normalize
 Flag telling if the amplitudes in the output spectrum must be normalized.
int d_real_col
double d_sampling
bool d_shift_order
 Flag telling if the output frequencies must be shifted in order to have a zero-centered spectrum.

Constructor & Destructor Documentation

FFT::FFT ( ApplicationWindow parent,
Table t,
const QString &  realColName,
const QString &  imagColName = QString(),
int  from = 1,
int  to = -1 
)

References init(), and setDataFromTable().

FFT::FFT ( ApplicationWindow parent,
QwtPlotCurve *  c 
)
FFT::FFT ( ApplicationWindow parent,
QwtPlotCurve *  c,
double  start,
double  end 
)
FFT::FFT ( ApplicationWindow parent,
Graph g,
const QString &  curveTitle 
)
FFT::FFT ( ApplicationWindow parent,
Graph g,
const QString &  curveTitle,
double  start,
double  end 
)

Member Function Documentation

QString FFT::fftCurve ( ) [private]
QString FFT::fftTable ( ) [private]
void FFT::init ( ) [private]

Reimplemented from Filter.

References d_imag_col, d_inverse, d_normalize, Filter::d_output_graph, d_real_col, d_sampling, and d_shift_order.

Referenced by FFT().

void FFT::normalizeAmplitudes ( bool  norm = true) [inline]

References d_normalize.

Referenced by FFTDialog::accept().

void FFT::output ( const QString &  text) [private]
void FFT::output ( ) [private, virtual]

Performs the data analysis and takes care of the output.

Reimplemented from Filter.

References Filter::d_curve, Filter::d_graph, Filter::d_table, fftCurve(), and fftTable().

bool FFT::setDataFromTable ( Table t,
const QString &  realColName,
const QString &  imagColName = QString(),
int  from = 0,
int  to = -1 
) [private, virtual]
void FFT::setInverseFFT ( bool  inverse = true) [inline]

References d_inverse.

Referenced by FFTDialog::accept().

void FFT::setSampling ( double  sampling) [inline]

References d_sampling.

Referenced by FFTDialog::accept().

void FFT::shiftFrequencies ( bool  shift = true) [inline]

References d_shift_order.

Referenced by FFTDialog::accept().


Member Data Documentation

int FFT::d_imag_col [private]

Referenced by init(), and setDataFromTable().

bool FFT::d_inverse [private]

Flag telling if an inverse FFT must be performed.

Referenced by fftCurve(), fftTable(), init(), output(), and setInverseFFT().

bool FFT::d_normalize [private]

Flag telling if the amplitudes in the output spectrum must be normalized.

Referenced by fftCurve(), fftTable(), init(), and normalizeAmplitudes().

int FFT::d_real_col [private]

Referenced by fftTable(), init(), and setDataFromTable().

double FFT::d_sampling [private]

Referenced by fftCurve(), fftTable(), init(), and setSampling().

bool FFT::d_shift_order [private]

Flag telling if the output frequencies must be shifted in order to have a zero-centered spectrum.

Referenced by fftCurve(), fftTable(), init(), and shiftFrequencies().


The documentation for this class was generated from the following files: