PlotLine Class Reference

#include <PlotLine.h>

List of all members.

Public Types

enum  LineType {
  Dot, Dash, Histogram, HistogramBar,
  Line, Invisible, Horizontal, Bar,
  Candle, PF
}

Public Member Functions

 PlotLine ()
 ~PlotLine ()
void copy (PlotLine *)
void setColor (QString &)
void setColor (QColor &)
void getColor (QColor &)
void setType (PlotLine::LineType)
void setType (QString &)
PlotLine::LineType getType ()
void setLabel (QString &)
void getLabel (QString &)
void append (double)
void append (QColor &, double, double, double, double, bool)
void append2 (QColor &, double, double, double, double, bool)
void append (QDateTime &)
void prepend (QDateTime &)
void prepend (double)
void prepend (QColor &, double, double, double, double, bool)
double getData (int)
void getData (int, QColor &, double &, double &, double &, double &, bool &)
void getData (int, QDateTime &)
void setData (int, double)
int getSize ()
double getHigh ()
void setHigh (double)
double getLow ()
void setLow (double)
void checkHighLow (double)
void setScaleFlag (bool)
bool getScaleFlag ()
void setColorFlag (bool)
bool getColorFlag ()
void getLineTypes (QStringList &)
void setColorBar (int, QColor &)
void getColorBar (int, QColor &)
void getHighLowRange (int, int, double &, double &)
void getInfo (int, Setting &)
void strip (double, int, QString &)
void getDateList (QValueList< QDateTime > &)
void setDateList (QValueList< QDateTime > &)
void getData (QValueList< Val > &)

Private Attributes

QValueList< Valdata
QValueList< QDateTime > dateList
QColor color
PlotLine::LineType lineType
QString label
double high
double low
bool scaleFlag
bool colorFlag


Detailed Description

Definition at line 44 of file PlotLine.h.


Member Enumeration Documentation

enum PlotLine::LineType

Enumerator:
Dot 
Dash 
Histogram 
HistogramBar 
Line 
Invisible 
Horizontal 
Bar 
Candle 
PF 

Definition at line 48 of file PlotLine.h.


Constructor & Destructor Documentation

PlotLine::PlotLine (  ) 

Definition at line 27 of file PlotLine.cpp.

References color, colorFlag, high, Line, lineType, low, and scaleFlag.

PlotLine::~PlotLine (  ) 

Definition at line 37 of file PlotLine.cpp.


Member Function Documentation

void PlotLine::copy ( PlotLine d  ) 

Definition at line 41 of file PlotLine.cpp.

References color, data, dateList, getColor(), getColorFlag(), getData(), getDateList(), getHigh(), getLabel(), getLow(), getScaleFlag(), getType(), label, setColorFlag(), setHigh(), setLow(), setScaleFlag(), and setType().

Referenced by PP::calculateCustom(), Indicator::copy(), CUS::createPlot(), TesterStopPage::loadCustomLongStop(), and TesterStopPage::loadCustomShortStop().

void PlotLine::setColor ( QString &  d  ) 

Definition at line 61 of file PlotLine.cpp.

References color.

Referenced by VOL::calculate(), VIDYA::calculate(), TALIB::calculate(), LOWPASS::calculate(), FI::calculate(), BARS::calculateMA(), VOL::calculateNVI(), VOL::calculatePVI(), VOL::calculatePVT(), CUS::createPlot(), ExScript::doScript(), LMS::getLMS(), PP::getPP(), SINWAV::getSINWAV(), SZ::getSZ(), THERM::getTHERM(), VFI::getVFI(), and TesterChartPage::updateChart().

void PlotLine::setColor ( QColor &  d  ) 

Definition at line 66 of file PlotLine.cpp.

References color.

void PlotLine::getColor ( QColor &  d  ) 

Definition at line 71 of file PlotLine.cpp.

References color.

Referenced by copy(), IndicatorPlot::drawDot(), IndicatorPlot::drawHistogram(), IndicatorPlot::drawHistogramBar(), IndicatorPlot::drawHorizontalLine(), IndicatorPlot::drawInfo(), and IndicatorPlot::drawLine().

void PlotLine::setType ( PlotLine::LineType  d  ) 

Definition at line 86 of file PlotLine.cpp.

References lineType.

Referenced by VOL::calculate(), VIDYA::calculate(), TALIB::calculate(), LOWPASS::calculate(), FI::calculate(), BARS::calculateBar(), BARS::calculateCandle(), BARS::calculateMA(), VOL::calculateNVI(), BARS::calculatePF(), VOL::calculatePVI(), VOL::calculatePVT(), VOL::calculateVOL(), copy(), CUS::createPlot(), ExScript::doScript(), LMS::getLMS(), PP::getPP(), SINWAV::getSINWAV(), SZ::getSZ(), THERM::getTHERM(), VFI::getVFI(), and TesterChartPage::updateChart().

void PlotLine::setType ( QString &  d  ) 

Definition at line 91 of file PlotLine.cpp.

References Candle, Dash, Dot, Histogram, HistogramBar, Horizontal, Invisible, Line, lineType, and PF.

PlotLine::LineType PlotLine::getType (  ) 

Definition at line 160 of file PlotLine.cpp.

References lineType.

Referenced by TALIB::calculate(), copy(), IndicatorPlot::drawInfo(), IndicatorPlot::drawLine(), IndicatorPlot::drawLines(), IndicatorSummary::run(), and IndicatorPlot::setScale().

void PlotLine::setLabel ( QString &  d  ) 

Definition at line 165 of file PlotLine.cpp.

References label.

Referenced by VOL::calculate(), VIDYA::calculate(), TALIB::calculate(), LOWPASS::calculate(), FI::calculate(), BARS::calculateBar(), BARS::calculateCandle(), BARS::calculateMA(), VOL::calculateNVI(), BARS::calculatePF(), VOL::calculatePVI(), VOL::calculatePVT(), VOL::calculateVOL(), CUS::createPlot(), ExScript::doScript(), LMS::getLMS(), PP::getPP(), SINWAV::getSINWAV(), SZ::getSZ(), THERM::getTHERM(), and VFI::getVFI().

void PlotLine::getLabel ( QString &  d  ) 

Definition at line 170 of file PlotLine.cpp.

References label.

Referenced by copy(), IndicatorPlot::drawHorizontalLine(), IndicatorPlot::drawInfo(), IndicatorSummary::run(), and DataWindow::setPlot().

void PlotLine::append ( double  d  ) 

Definition at line 175 of file PlotLine.cpp.

References checkHighLow(), color, Val::color, data, Val::high, Val::low, Val::open, and Val::v.

Referenced by VIDYA::calcAdaptCMO(), VIDYA::calcCMO(), TALIB::calculate(), UTIL::calculateAccum(), BARS::calculateBar(), BARS::calculateCandle(), UTIL::calculateCOUNTER(), TALIB::calculateCustom(), UTIL::calculateNormal(), VOL::calculateNVI(), UTIL::calculatePER(), BARS::calculatePF(), VOL::calculatePVI(), VOL::calculatePVT(), UTIL::calculateREF(), VIDYA::calcVidya(), LOWPASS::detrend(), qtsFFT::do_FFTqts(), qtsFFT::do_iFFTqts(), ExScript::doScript(), FI::getFI(), BarData::getInput(), LMS::getLMS(), LOWPASS::getLowpass(), TALIB::getMA(), PP::getPP(), SINWAV::getSINWAV(), VIDYA::getStdDev(), SYMBOL::getSYMBOL(), SZ::getSZ(), THERM::getTHERM(), VFI::getVFI(), IndicatorPlugin::getWilderMA(), LOWPASS::raise2Power(), LMS::slowK(), and TesterChartPage::updateChart().

void PlotLine::append ( QColor &  c,
double  o,
double  h,
double  l,
double  cl,
bool  cf 
)

Definition at line 284 of file PlotLine.cpp.

References Val::candleFill, checkHighLow(), Val::color, data, Val::high, Val::low, Val::open, and Val::v.

void PlotLine::append2 ( QColor &  c,
double  o,
double  h,
double  l,
double  cl,
bool  cf 
)

Definition at line 301 of file PlotLine.cpp.

References Val::candleFill, checkHighLow(), Val::color, data, Val::high, Val::low, Val::open, and Val::v.

void PlotLine::append ( QDateTime &  dt  ) 

Definition at line 474 of file PlotLine.cpp.

References dateList.

void PlotLine::prepend ( QDateTime &  dt  ) 

Definition at line 479 of file PlotLine.cpp.

References dateList.

Referenced by UTIL::calculateADMS(), UTIL::calculateCOMP(), UTIL::calculateHL(), UTIL::calculateINRANGE(), and LMS::getLMS().

void PlotLine::prepend ( double  d  ) 

Definition at line 188 of file PlotLine.cpp.

References checkHighLow(), color, Val::color, data, Val::high, Val::low, Val::open, and Val::v.

void PlotLine::prepend ( QColor &  c,
double  o,
double  h,
double  l,
double  cl,
bool  cf 
)

Definition at line 316 of file PlotLine.cpp.

References Val::candleFill, checkHighLow(), Val::color, data, Val::high, Val::low, Val::open, and Val::v.

double PlotLine::getData ( int  d  ) 

Definition at line 201 of file PlotLine.cpp.

References data.

Referenced by VIDYA::calcAdaptCMO(), VIDYA::calcCMO(), UTIL::calculateAccum(), UTIL::calculateADMS(), UTIL::calculateCOLOR(), UTIL::calculateCOMP(), UTIL::calculateCOUNTER(), TALIB::calculateCustom(), UTIL::calculateHL(), UTIL::calculateINRANGE(), UTIL::calculateNormal(), UTIL::calculatePER(), UTIL::calculateREF(), VIDYA::calcVidya(), copy(), TesterStopPage::customStop(), LOWPASS::detrend(), qtsFFT::do_FFTqts(), qtsFFT::do_iFFTqts(), IndicatorPlot::drawBar(), IndicatorPlot::drawCandle(), IndicatorPlot::drawDot(), IndicatorPlot::drawHistogram(), IndicatorPlot::drawHistogramBar(), IndicatorPlot::drawHorizontalLine(), IndicatorPlot::drawInfo(), IndicatorPlot::drawLine(), IndicatorPlot::drawPF(), getInfo(), LMS::getLMS(), LOWPASS::getLowpass(), TALIB::getMA(), VIDYA::getNorm(), SINWAV::getSINWAV(), VIDYA::getStdDev(), THERM::getTHERM(), IndicatorPlugin::getWilderMA(), Tester::loadSignals(), LOWPASS::raise2Power(), IndicatorSummary::run(), Scanner::scan(), DataWindow::setPlot(), and LMS::slowK().

void PlotLine::getData ( int  i,
QColor &  c,
double &  o,
double &  h,
double &  l,
double &  cl,
bool &  cf 
)

Definition at line 333 of file PlotLine.cpp.

References Val::candleFill, Val::color, data, Val::high, Val::low, Val::open, and Val::v.

void PlotLine::getData ( int  i,
QDateTime &  dt 
)

Definition at line 466 of file PlotLine.cpp.

References dateList.

void PlotLine::setData ( int  i,
double  d 
)

Definition at line 206 of file PlotLine.cpp.

References checkHighLow(), data, Val::high, Val::low, Val::open, and Val::v.

Referenced by VIDYA::calcAdaptCMO(), LMS::getLMS(), LOWPASS::getLowpass(), and VIDYA::getNorm().

int PlotLine::getSize (  ) 

Definition at line 216 of file PlotLine.cpp.

References data.

Referenced by VIDYA::calcAdaptCMO(), VIDYA::calcCMO(), VIDYA::calculate(), UTIL::calculateAccum(), UTIL::calculateADMS(), UTIL::calculateCOLOR(), UTIL::calculateCOMP(), UTIL::calculateCOUNTER(), TALIB::calculateCustom(), UTIL::calculateHL(), UTIL::calculateINRANGE(), UTIL::calculateNormal(), UTIL::calculatePER(), UTIL::calculateREF(), VIDYA::calcVidya(), TesterStopPage::customStop(), LOWPASS::detrend(), IndicatorPlot::drawBar(), IndicatorPlot::drawCandle(), IndicatorPlot::drawDot(), IndicatorPlot::drawHistogram(), IndicatorPlot::drawHistogramBar(), IndicatorPlot::drawHorizontalLine(), IndicatorPlot::drawInfo(), IndicatorPlot::drawLine(), IndicatorPlot::drawLines(), IndicatorPlot::drawPF(), IndicatorPlot::getInfo(), LMS::getLMS(), LOWPASS::getLowpass(), TALIB::getMA(), VIDYA::getNorm(), SINWAV::getSINWAV(), VIDYA::getStdDev(), THERM::getTHERM(), IndicatorPlugin::getWilderMA(), Tester::loadSignals(), LOWPASS::raise2Power(), IndicatorSummary::run(), Scanner::scan(), DataWindow::setPlot(), IndicatorPlot::setScale(), and LMS::slowK().

double PlotLine::getHigh (  ) 

Definition at line 221 of file PlotLine.cpp.

References high.

Referenced by copy(), IndicatorPlot::drawDot(), IndicatorPlot::drawHistogram(), IndicatorPlot::drawHistogramBar(), IndicatorPlot::drawLine(), and IndicatorPlot::setScale().

void PlotLine::setHigh ( double  d  ) 

Definition at line 226 of file PlotLine.cpp.

References high.

Referenced by copy().

double PlotLine::getLow (  ) 

Definition at line 231 of file PlotLine.cpp.

References low.

Referenced by copy(), IndicatorPlot::drawDot(), IndicatorPlot::drawHistogram(), IndicatorPlot::drawHistogramBar(), IndicatorPlot::drawLine(), and IndicatorPlot::setScale().

void PlotLine::setLow ( double  d  ) 

Definition at line 236 of file PlotLine.cpp.

References low.

Referenced by copy().

void PlotLine::checkHighLow ( double  d  ) 

Definition at line 241 of file PlotLine.cpp.

References high, and low.

Referenced by append(), append2(), prepend(), and setData().

void PlotLine::setScaleFlag ( bool  d  ) 

Definition at line 249 of file PlotLine.cpp.

References scaleFlag.

Referenced by copy(), and SYMBOL::getSYMBOL().

bool PlotLine::getScaleFlag (  ) 

Definition at line 254 of file PlotLine.cpp.

References scaleFlag.

Referenced by copy(), IndicatorPlot::drawDot(), IndicatorPlot::drawHistogram(), IndicatorPlot::drawHistogramBar(), IndicatorPlot::drawLine(), and IndicatorPlot::setScale().

void PlotLine::setColorFlag ( bool  d  ) 

Definition at line 259 of file PlotLine.cpp.

References colorFlag.

Referenced by UTIL::calculateCOLOR(), VOL::calculateVOL(), copy(), and THERM::getTHERM().

bool PlotLine::getColorFlag (  ) 

Definition at line 264 of file PlotLine.cpp.

References colorFlag.

Referenced by copy(), and IndicatorPlot::drawHistogramBar().

void PlotLine::getLineTypes ( QStringList &  l  ) 

Definition at line 269 of file PlotLine.cpp.

Referenced by FormulaEdit::FormulaEdit(), and IndicatorPlugin::IndicatorPlugin().

void PlotLine::setColorBar ( int  i,
QColor &  d 
)

Definition at line 76 of file PlotLine.cpp.

References data.

Referenced by UTIL::calculateCOLOR(), VOL::calculateVOL(), THERM::getTHERM(), and TesterChartPage::updateChart().

void PlotLine::getColorBar ( int  i,
QColor &  d 
)

Definition at line 81 of file PlotLine.cpp.

References data.

Referenced by IndicatorPlot::drawHistogramBar().

void PlotLine::getHighLowRange ( int  start,
int  end,
double &  h,
double &  l 
)

Definition at line 344 of file PlotLine.cpp.

References Candle, data, Val::high, lineType, Val::low, Val::open, PF, and Val::v.

Referenced by IndicatorPlot::setScale().

void PlotLine::getInfo ( int  i,
Setting r 
)

Definition at line 398 of file PlotLine.cpp.

References Candle, color, getData(), high, label, lineType, low, PF, Setting::setData(), and strip().

Referenced by IndicatorPlot::getInfo().

void PlotLine::strip ( double  d,
int  p,
QString &  s 
)

Definition at line 445 of file PlotLine.cpp.

Referenced by getInfo(), and IndicatorSummary::run().

void PlotLine::getDateList ( QValueList< QDateTime > &  dl  ) 

Definition at line 484 of file PlotLine.cpp.

References dateList.

Referenced by copy().

void PlotLine::setDateList ( QValueList< QDateTime > &  dl  ) 

Definition at line 489 of file PlotLine.cpp.

References dateList.

void PlotLine::getData ( QValueList< Val > &  d  ) 

Definition at line 494 of file PlotLine.cpp.

References data.


Member Data Documentation

QValueList<Val> PlotLine::data [private]

Definition at line 105 of file PlotLine.h.

Referenced by append(), append2(), copy(), getColorBar(), getData(), getHighLowRange(), getSize(), prepend(), setColorBar(), and setData().

QValueList<QDateTime> PlotLine::dateList [private]

Definition at line 106 of file PlotLine.h.

Referenced by append(), copy(), getData(), getDateList(), prepend(), and setDateList().

QColor PlotLine::color [private]

Definition at line 107 of file PlotLine.h.

Referenced by append(), copy(), getColor(), getInfo(), PlotLine(), prepend(), and setColor().

PlotLine::LineType PlotLine::lineType [private]

Definition at line 108 of file PlotLine.h.

Referenced by getHighLowRange(), getInfo(), getType(), PlotLine(), and setType().

QString PlotLine::label [private]

Definition at line 109 of file PlotLine.h.

Referenced by copy(), getInfo(), getLabel(), and setLabel().

double PlotLine::high [private]

Definition at line 110 of file PlotLine.h.

Referenced by checkHighLow(), getHigh(), getInfo(), PlotLine(), and setHigh().

double PlotLine::low [private]

Definition at line 111 of file PlotLine.h.

Referenced by checkHighLow(), getInfo(), getLow(), PlotLine(), and setLow().

bool PlotLine::scaleFlag [private]

Definition at line 112 of file PlotLine.h.

Referenced by getScaleFlag(), PlotLine(), and setScaleFlag().

bool PlotLine::colorFlag [private]

Definition at line 113 of file PlotLine.h.

Referenced by getColorFlag(), PlotLine(), and setColorFlag().


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