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)
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

enum FFTFilter::FilterType

Enumerator:
LowPass 
HighPass 
BandPass 
BandBlock 


Constructor & Destructor Documentation

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.

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

Enables/Disables the DC offset when applying a Band Pass/Band block 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.

void FFTFilter::setCutoff ( double  f  ) 

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

void FFTFilter::setFilterType ( int  type  ) 


Member Data Documentation

FilterType FFTFilter::d_filter_type [private]

The filter type.

double FFTFilter::d_high_freq [private]

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

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.

bool FFTFilter::d_offset [private]

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


The documentation for this class was generated from the following files:
Generated on Thu Feb 7 13:59:28 2008 for QtiPlot by  doxygen 1.5.4