LOWPASS Class Reference

#include <LOWPASS.h>

Inheritance diagram for LOWPASS:

Inheritance graph
[legend]
Collaboration diagram for LOWPASS:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LOWPASS ()
virtual ~LOWPASS ()
Indicatorcalculate ()
PlotLinegetLowpass (PlotLine *in, double fre, double wid)
int indicatorPrefDialog (QWidget *)
void setDefaults ()
PlotLinecalculateCustom (QString &, QPtrList< PlotLine > &)
void getIndicatorSettings (Setting &)
void setIndicatorSettings (Setting &)
void formatDialog (QStringList &vl, QString &rv, QString &rs)

Private Member Functions

void detrend (PlotLine *inLine, double *slope, double *intercept)
PlotLinedetrend (PlotLine *x, double &slope, double &intercept, bool detrend=true)
PlotLineraise2Power (PlotLine *x, double pad=0.0)

Private Attributes

QColor color
PlotLine::LineType lineType
QString label
double freq
double width
BarData::InputType input
qtsFFTfft
QString colorLabel
QString lineTypeLabel
QString labelLabel
QString inputLabel
QString pluginLabel
QString freqLabel
QString widthLabel


Detailed Description

Definition at line 25 of file LOWPASS.h.


Constructor & Destructor Documentation

LOWPASS::LOWPASS (  ) 

Definition at line 34 of file LOWPASS.cpp.

References colorLabel, IndicatorPlugin::FormatDouble, IndicatorPlugin::FormatInputArray, IndicatorPlugin::formatList, freqLabel, IndicatorPlugin::helpFile, inputLabel, labelLabel, lineTypeLabel, pluginLabel, IndicatorPlugin::pluginName, setDefaults(), and widthLabel.

LOWPASS::~LOWPASS (  )  [virtual]

Definition at line 54 of file LOWPASS.cpp.


Member Function Documentation

Indicator * LOWPASS::calculate (  )  [virtual]

Reimplemented from IndicatorPlugin.

Definition at line 68 of file LOWPASS.cpp.

References Indicator::addLine(), color, IndicatorPlugin::data, IndicatorPlugin::dateFlag, freq, BarData::getInput(), getLowpass(), input, label, lineType, IndicatorPlugin::logScale, PlotLine::setColor(), Indicator::setDateFlag(), PlotLine::setLabel(), Indicator::setLogScale(), PlotLine::setType(), and width.

PlotLine * LOWPASS::getLowpass ( PlotLine in,
double  fre,
double  wid 
)

Definition at line 90 of file LOWPASS.cpp.

References PlotLine::append(), detrend(), qtsFFT::do_FFTqts(), qtsFFT::do_iFFTqts(), fft, PlotLine::getData(), PlotLine::getSize(), raise2Power(), and PlotLine::setData().

Referenced by calculate(), and calculateCustom().

int LOWPASS::indicatorPrefDialog ( QWidget *  w  )  [virtual]

Reimplemented from IndicatorPlugin.

Definition at line 222 of file LOWPASS.cpp.

References PrefDialog::addColorItem(), PrefDialog::addComboItem(), PrefDialog::addDoubleItem(), PrefDialog::addTextItem(), color, PrefDialog::createPage(), freq, PrefDialog::getColor(), PrefDialog::getComboIndex(), PrefDialog::getDouble(), PrefDialog::getText(), IndicatorPlugin::helpFile, input, IndicatorPlugin::inputTypeList, label, lineType, IndicatorPlugin::lineTypes, PrefDialog::setHelpFile(), and width.

void LOWPASS::setDefaults (  ) 

Definition at line 58 of file LOWPASS.cpp.

References BarData::Close, color, freq, input, label, PlotLine::Line, lineType, IndicatorPlugin::pluginName, and width.

Referenced by LOWPASS(), and setIndicatorSettings().

PlotLine * LOWPASS::calculateCustom ( QString &  p,
QPtrList< PlotLine > &  d 
) [virtual]

Reimplemented from IndicatorPlugin.

Definition at line 274 of file LOWPASS.cpp.

References IndicatorPlugin::checkFormat(), IndicatorPlugin::formatStringList, freq, getLowpass(), and width.

void LOWPASS::getIndicatorSettings ( Setting dict  )  [virtual]

Reimplemented from IndicatorPlugin.

Definition at line 299 of file LOWPASS.cpp.

References color, colorLabel, freq, freqLabel, input, inputLabel, label, labelLabel, lineType, lineTypeLabel, pluginLabel, IndicatorPlugin::pluginName, Setting::setData(), width, and widthLabel.

void LOWPASS::setIndicatorSettings ( Setting dict  )  [virtual]

Reimplemented from IndicatorPlugin.

Definition at line 315 of file LOWPASS.cpp.

References color, colorLabel, Setting::count(), freq, freqLabel, Setting::getData(), input, inputLabel, label, labelLabel, lineType, lineTypeLabel, setDefaults(), width, and widthLabel.

void LOWPASS::formatDialog ( QStringList &  vl,
QString &  rv,
QString &  rs 
) [virtual]

Reimplemented from IndicatorPlugin.

Definition at line 348 of file LOWPASS.cpp.

References PrefDialog::addComboItem(), PrefDialog::addDoubleItem(), PrefDialog::addTextItem(), PrefDialog::createPage(), freq, PrefDialog::getCombo(), PrefDialog::getDouble(), PrefDialog::getText(), IndicatorPlugin::helpFile, input, PrefDialog::setHelpFile(), and width.

void LOWPASS::detrend ( PlotLine inLine,
double *  slope,
double *  intercept 
) [private]

Referenced by getLowpass().

PlotLine * LOWPASS::detrend ( PlotLine x,
double &  slope,
double &  intercept,
bool  detrend = true 
) [private]

Definition at line 167 of file LOWPASS.cpp.

References PlotLine::append(), PlotLine::getData(), and PlotLine::getSize().

PlotLine * LOWPASS::raise2Power ( PlotLine x,
double  pad = 0.0 
) [private]

Definition at line 194 of file LOWPASS.cpp.

References PlotLine::append(), PlotLine::getData(), PlotLine::getSize(), and MAXNUM.

Referenced by getLowpass().


Member Data Documentation

QColor LOWPASS::color [private]

Definition at line 40 of file LOWPASS.h.

Referenced by calculate(), getIndicatorSettings(), indicatorPrefDialog(), setDefaults(), and setIndicatorSettings().

PlotLine::LineType LOWPASS::lineType [private]

Definition at line 41 of file LOWPASS.h.

Referenced by calculate(), getIndicatorSettings(), indicatorPrefDialog(), setDefaults(), and setIndicatorSettings().

QString LOWPASS::label [private]

Definition at line 42 of file LOWPASS.h.

Referenced by calculate(), getIndicatorSettings(), indicatorPrefDialog(), setDefaults(), and setIndicatorSettings().

double LOWPASS::freq [private]

Definition at line 43 of file LOWPASS.h.

Referenced by calculate(), calculateCustom(), formatDialog(), getIndicatorSettings(), indicatorPrefDialog(), setDefaults(), and setIndicatorSettings().

double LOWPASS::width [private]

Definition at line 44 of file LOWPASS.h.

Referenced by calculate(), calculateCustom(), formatDialog(), getIndicatorSettings(), indicatorPrefDialog(), setDefaults(), and setIndicatorSettings().

BarData::InputType LOWPASS::input [private]

Definition at line 45 of file LOWPASS.h.

Referenced by calculate(), formatDialog(), getIndicatorSettings(), indicatorPrefDialog(), setDefaults(), and setIndicatorSettings().

qtsFFT* LOWPASS::fft [private]

Definition at line 46 of file LOWPASS.h.

Referenced by getLowpass().

QString LOWPASS::colorLabel [private]

Definition at line 51 of file LOWPASS.h.

Referenced by getIndicatorSettings(), LOWPASS(), and setIndicatorSettings().

QString LOWPASS::lineTypeLabel [private]

Definition at line 52 of file LOWPASS.h.

Referenced by getIndicatorSettings(), LOWPASS(), and setIndicatorSettings().

QString LOWPASS::labelLabel [private]

Definition at line 53 of file LOWPASS.h.

Referenced by getIndicatorSettings(), LOWPASS(), and setIndicatorSettings().

QString LOWPASS::inputLabel [private]

Definition at line 54 of file LOWPASS.h.

Referenced by getIndicatorSettings(), LOWPASS(), and setIndicatorSettings().

QString LOWPASS::pluginLabel [private]

Definition at line 55 of file LOWPASS.h.

Referenced by getIndicatorSettings(), and LOWPASS().

QString LOWPASS::freqLabel [private]

Definition at line 56 of file LOWPASS.h.

Referenced by getIndicatorSettings(), LOWPASS(), and setIndicatorSettings().

QString LOWPASS::widthLabel [private]

Definition at line 57 of file LOWPASS.h.

Referenced by getIndicatorSettings(), LOWPASS(), and setIndicatorSettings().


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