|
QtiPlot
0.9.8.2
|
#include <FFTFilter.h>
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, QwtPlotCurve *c, int m=1) | |
| FFTFilter (ApplicationWindow *parent, QwtPlotCurve *c, double start, double end, int m=1) | |
| FFTFilter (ApplicationWindow *parent, Graph *g, const QString &curveTitle, int m=1) | |
| FFTFilter (ApplicationWindow *parent, Graph *g, const QString &curveTitle, double start, double end, int m=1) | |
| FFTFilter (ApplicationWindow *parent, Table *t, const QString &xCol, const QString &yCol, int start=0, int end=-1, 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. | |
| FFTFilter::FFTFilter | ( | ApplicationWindow * | parent, |
| QwtPlotCurve * | c, | ||
| int | m = 1 |
||
| ) |
References Filter::init(), and Filter::setDataFromCurve().
| FFTFilter::FFTFilter | ( | ApplicationWindow * | parent, |
| QwtPlotCurve * | c, | ||
| double | start, | ||
| double | end, | ||
| int | m = 1 |
||
| ) |
References Filter::init(), and Filter::setDataFromCurve().
| FFTFilter::FFTFilter | ( | ApplicationWindow * | parent, |
| Graph * | g, | ||
| const QString & | curveTitle, | ||
| int | m = 1 |
||
| ) |
References Filter::init(), and Filter::setDataFromCurve().
| FFTFilter::FFTFilter | ( | ApplicationWindow * | parent, |
| Graph * | g, | ||
| const QString & | curveTitle, | ||
| double | start, | ||
| double | end, | ||
| int | m = 1 |
||
| ) |
References Filter::init(), and Filter::setDataFromCurve().
| FFTFilter::FFTFilter | ( | ApplicationWindow * | parent, |
| Table * | t, | ||
| const QString & | xCol, | ||
| const QString & | yCol, | ||
| int | start = 0, |
||
| int | end = -1, |
||
| int | m = 1 |
||
| ) |
References Filter::init(), and Filter::setDataFromTable().
| 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] |
References d_high_freq, d_low_freq, Filter::d_n, d_offset, Filter::d_points, and setFilterType().
| 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().
FilterType FFTFilter::d_filter_type [private] |
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().
1.7.6.1