FFTFilter Class Reference

#include <FFTFilter.h>

Inheritance diagram for FFTFilter:
Filter

List of all members.

Public Types

enum  FilterType { LowPass = 1, HighPass = 2, BandPass = 3, BandBlock = 4 }

Public Member Functions

void enableOffset (bool offset=true)
 Enables/Disables the DC offset when applying a Band Pass/Band block filter.
 FFTFilter (ApplicationWindow *parent, Table *t, const QString &xCol, const QString &yCol, int start=0, int end=-1, int m=1)
 FFTFilter (ApplicationWindow *parent, Graph *g, const QString &curveTitle, double start, double end, int m=1)
 FFTFilter (ApplicationWindow *parent, Graph *g, const QString &curveTitle, int m=1)
 FFTFilter (ApplicationWindow *parent, QwtPlotCurve *c, double start, double end, int m=1)
 FFTFilter (ApplicationWindow *parent, QwtPlotCurve *c, int m=1)
void setBand (double lowFreq, double highFreq)
 Sets the cutoff frequencies. To be used only for the Band Pass and Band block filters.
void setCutoff (double f)
 Sets the cutoff frequency. To be used only for Low Pass and High Pass filters.
void setFilterType (int type)

Private Member Functions

void calculateOutputData (double *x, double *y)
 Calculates the data for the output curve and store it in the X an Y vectors.
void init (int m)

Private Attributes

FilterType d_filter_type
 The filter type.
double d_high_freq
 Upper edge of the band for Band Pass and Band block filters.
double d_low_freq
 Cutoff frequency for Low Pass and High Pass filters. Lower edge of the band for Band Pass and Band block filters.
bool d_offset
 Flag telling if the DC offset must be added/substracted when applying a Band Pass/Band block filter respectively.

Member Enumeration Documentation

Enumerator:
LowPass 
HighPass 
BandPass 
BandBlock 

Constructor & Destructor Documentation

FFTFilter::FFTFilter ( ApplicationWindow parent,
QwtPlotCurve *  c,
int  m = 1 
)
FFTFilter::FFTFilter ( ApplicationWindow parent,
QwtPlotCurve *  c,
double  start,
double  end,
int  m = 1 
)
FFTFilter::FFTFilter ( ApplicationWindow parent,
Graph g,
const QString &  curveTitle,
int  m = 1 
)
FFTFilter::FFTFilter ( ApplicationWindow parent,
Graph g,
const QString &  curveTitle,
double  start,
double  end,
int  m = 1 
)
FFTFilter::FFTFilter ( ApplicationWindow parent,
Table t,
const QString &  xCol,
const QString &  yCol,
int  start = 0,
int  end = -1,
int  m = 1 
)

Member Function Documentation

void FFTFilter::calculateOutputData ( double *  X,
double *  Y 
) [private, virtual]

Calculates the data for the output curve and store it in the X an Y vectors.

Reimplemented from Filter.

References Filter::d_explanation, d_filter_type, d_high_freq, d_low_freq, Filter::d_n, d_offset, Filter::d_points, Filter::d_x, and Filter::d_y.

void FFTFilter::enableOffset ( bool  offset = true  )  [inline]

Enables/Disables the DC offset when applying a Band Pass/Band block filter.

References d_offset.

Referenced by FilterDialog::filter().

void FFTFilter::init ( int  m  )  [private]
void FFTFilter::setBand ( double  lowFreq,
double  highFreq 
)

Sets the cutoff frequencies. To be used only for the Band Pass and Band block filters.

References d_filter_type, d_high_freq, Filter::d_init_err, and d_low_freq.

Referenced by FilterDialog::filter().

void FFTFilter::setCutoff ( double  f  ) 

Sets the cutoff frequency. To be used only for Low Pass and High Pass filters.

References d_filter_type, and d_low_freq.

Referenced by FilterDialog::filter().

void FFTFilter::setFilterType ( int  type  ) 

References d_filter_type, and Filter::d_init_err.

Referenced by init().


Member Data Documentation

The filter type.

Referenced by calculateOutputData(), setBand(), setCutoff(), and setFilterType().

double FFTFilter::d_high_freq [private]

Upper edge of the band for Band Pass and Band block filters.

Referenced by calculateOutputData(), init(), and setBand().

double FFTFilter::d_low_freq [private]

Cutoff frequency for Low Pass and High Pass filters. Lower edge of the band for Band Pass and Band block filters.

Referenced by calculateOutputData(), init(), setBand(), and setCutoff().

bool FFTFilter::d_offset [private]

Flag telling if the DC offset must be added/substracted when applying a Band Pass/Band block filter respectively.

Referenced by calculateOutputData(), enableOffset(), and init().


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

Generated by  doxygen 1.6.2