SINWAV Class Reference

#include <SINWAV.h>

Inheritance diagram for SINWAV:

Inheritance graph
[legend]
Collaboration diagram for SINWAV:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 SINWAV ()
virtual ~SINWAV ()
Indicatorcalculate ()
int indicatorPrefDialog (QWidget *)
void setDefaults ()
PlotLinecalculateCustom (QString &, QPtrList< PlotLine > &)
void getIndicatorSettings (Setting &)
void setIndicatorSettings (Setting &)
void formatDialog (QStringList &vl, QString &rv, QString &rs)
void getSINWAV (QPtrList< PlotLine > &)

Private Member Functions

PlotLinegetOffset (PlotLine *inSig, int offset)
PlotLinegetDetrend (PlotLine *inSig)
PlotLinegetSmooth (PlotLine *inSig)

Private Attributes

QColor colorSin
QColor colorLead
PlotLine::LineType lineTypeSin
PlotLine::LineType lineTypeLead
QString labelSin
QString labelLead
QString colorSinLabel
QString colorLeadLabel
QString labelSinLabel
QString labelLeadLabel
QString lineTypeSinLabel
QString lineTypeLeadLabel
QString pluginLabel


Detailed Description

Definition at line 25 of file SINWAV.h.


Constructor & Destructor Documentation

SINWAV::SINWAV (  ) 

Definition at line 31 of file SINWAV.cpp.

References colorLeadLabel, colorSinLabel, IndicatorPlugin::helpFile, labelLeadLabel, labelSinLabel, lineTypeLeadLabel, lineTypeSinLabel, pluginLabel, IndicatorPlugin::pluginName, and setDefaults().

SINWAV::~SINWAV (  )  [virtual]

Definition at line 47 of file SINWAV.cpp.


Member Function Documentation

Indicator * SINWAV::calculate (  )  [virtual]

Reimplemented from IndicatorPlugin.

Definition at line 61 of file SINWAV.cpp.

References Indicator::addLine(), IndicatorPlugin::dateFlag, getSINWAV(), IndicatorPlugin::logScale, Indicator::setDateFlag(), and Indicator::setLogScale().

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

Reimplemented from IndicatorPlugin.

Definition at line 245 of file SINWAV.cpp.

References PrefDialog::addColorItem(), PrefDialog::addComboItem(), PrefDialog::addTextItem(), colorLead, colorSin, PrefDialog::createPage(), PrefDialog::getColor(), PrefDialog::getComboIndex(), PrefDialog::getText(), IndicatorPlugin::helpFile, labelSin, lineTypeLead, IndicatorPlugin::lineTypes, lineTypeSin, and PrefDialog::setHelpFile().

void SINWAV::setDefaults (  ) 

Definition at line 51 of file SINWAV.cpp.

References colorLead, colorSin, labelLead, labelSin, PlotLine::Line, lineTypeLead, lineTypeSin, and IndicatorPlugin::pluginName.

Referenced by setIndicatorSettings(), and SINWAV().

PlotLine * SINWAV::calculateCustom ( QString &  ,
QPtrList< PlotLine > &   
) [virtual]

Reimplemented from IndicatorPlugin.

Definition at line 283 of file SINWAV.cpp.

References getSINWAV().

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

Reimplemented from IndicatorPlugin.

Definition at line 292 of file SINWAV.cpp.

References colorLead, colorLeadLabel, colorSin, colorSinLabel, labelLead, labelLeadLabel, labelSin, labelSinLabel, lineTypeLead, lineTypeLeadLabel, lineTypeSin, lineTypeSinLabel, pluginLabel, IndicatorPlugin::pluginName, and Setting::setData().

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

Reimplemented from IndicatorPlugin.

Definition at line 307 of file SINWAV.cpp.

References colorLead, colorLeadLabel, colorSin, colorSinLabel, Setting::count(), Setting::getData(), labelLead, labelLeadLabel, labelSin, labelSinLabel, lineTypeLead, lineTypeLeadLabel, lineTypeSin, lineTypeSinLabel, and setDefaults().

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

Reimplemented from IndicatorPlugin.

Definition at line 340 of file SINWAV.cpp.

References PrefDialog::addTextItem(), PrefDialog::createPage(), PrefDialog::getText(), IndicatorPlugin::helpFile, and PrefDialog::setHelpFile().

void SINWAV::getSINWAV ( QPtrList< PlotLine > &  pll  ) 

VERSION 2

Definition at line 78 of file SINWAV.cpp.

References PlotLine::append(), colorLead, colorSin, BarData::count(), IndicatorPlugin::data, PlotLine::getData(), BarData::getHigh(), BarData::getLow(), PlotLine::getSize(), labelLead, labelSin, lineTypeLead, lineTypeSin, PI, PlotLine::setColor(), PlotLine::setLabel(), and PlotLine::setType().

Referenced by calculate(), and calculateCustom().

PlotLine* SINWAV::getOffset ( PlotLine inSig,
int  offset 
) [private]

PlotLine* SINWAV::getDetrend ( PlotLine inSig  )  [private]

PlotLine* SINWAV::getSmooth ( PlotLine inSig  )  [private]


Member Data Documentation

QColor SINWAV::colorSin [private]

Definition at line 40 of file SINWAV.h.

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

QColor SINWAV::colorLead [private]

Definition at line 41 of file SINWAV.h.

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

PlotLine::LineType SINWAV::lineTypeSin [private]

Definition at line 42 of file SINWAV.h.

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

PlotLine::LineType SINWAV::lineTypeLead [private]

Definition at line 43 of file SINWAV.h.

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

QString SINWAV::labelSin [private]

Definition at line 44 of file SINWAV.h.

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

QString SINWAV::labelLead [private]

Definition at line 45 of file SINWAV.h.

Referenced by getIndicatorSettings(), getSINWAV(), setDefaults(), and setIndicatorSettings().

QString SINWAV::colorSinLabel [private]

Definition at line 51 of file SINWAV.h.

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

QString SINWAV::colorLeadLabel [private]

Definition at line 52 of file SINWAV.h.

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

QString SINWAV::labelSinLabel [private]

Definition at line 53 of file SINWAV.h.

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

QString SINWAV::labelLeadLabel [private]

Definition at line 54 of file SINWAV.h.

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

QString SINWAV::lineTypeSinLabel [private]

Definition at line 55 of file SINWAV.h.

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

QString SINWAV::lineTypeLeadLabel [private]

Definition at line 56 of file SINWAV.h.

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

QString SINWAV::pluginLabel [private]

Definition at line 57 of file SINWAV.h.

Referenced by getIndicatorSettings(), and SINWAV().


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