#include <Scaler.h>
Public Member Functions | |
Scaler () | |
~Scaler () | |
void | set (int ht, double h, double l, double lh, double lr, bool lf) |
int | convertToY (double) |
double | convertToVal (int) |
void | getScaleArray (QMemArray< double > &) |
double | getLogScaleHigh () |
double | getLogRange () |
int | getHeight () |
bool | getDateFlag () |
bool | getLogFlag () |
double | getLow () |
Protected Attributes | |
int | height |
bool | logScale |
double | scaleHigh |
double | scaleLow |
double | logScaleHigh |
double | logRange |
double | range |
double | scaler |
QStringList | scaleList |
Definition at line 28 of file Scaler.h.
Scaler::Scaler | ( | ) |
Scaler::~Scaler | ( | ) |
Definition at line 89 of file Scaler.cpp.
void Scaler::set | ( | int | ht, | |
double | h, | |||
double | l, | |||
double | lh, | |||
double | lr, | |||
bool | lf | |||
) |
Definition at line 93 of file Scaler.cpp.
References height, logRange, logScale, logScaleHigh, range, scaleHigh, scaleLow, and scaler.
Referenced by IndicatorPlot::drawDot(), IndicatorPlot::drawHistogram(), IndicatorPlot::drawHistogramBar(), IndicatorPlot::drawLine(), and IndicatorPlot::setScale().
int Scaler::convertToY | ( | double | val | ) |
Definition at line 118 of file Scaler.cpp.
References height, logRange, logScale, logScaleHigh, scaleLow, and scaler.
Referenced by TrendLine::draw(), Text::draw(), SellArrow::draw(), HorizontalLine::draw(), FiboLine::draw(), BuyArrow::draw(), IndicatorPlot::drawBar(), IndicatorPlot::drawCandle(), IndicatorPlot::drawCrossHair(), IndicatorPlot::drawDot(), IndicatorPlot::drawHistogram(), IndicatorPlot::drawHistogramBar(), IndicatorPlot::drawHorizontalLine(), IndicatorPlot::drawLine(), IndicatorPlot::drawPF(), ScalePlot::drawScale(), and IndicatorPlot::drawYGrid().
double Scaler::convertToVal | ( | int | y | ) |
Definition at line 136 of file Scaler.cpp.
References height, logRange, logScale, logScaleHigh, scaleLow, and scaler.
Referenced by IndicatorPlot::getXY(), and IndicatorPlot::updateStatusBar().
void Scaler::getScaleArray | ( | QMemArray< double > & | scaleArray | ) |
Definition at line 154 of file Scaler.cpp.
References height, range, scaleHigh, scaleList, and scaleLow.
Referenced by ScalePlot::drawScale(), and IndicatorPlot::drawYGrid().
double Scaler::getLogScaleHigh | ( | ) |
Definition at line 202 of file Scaler.cpp.
References logScaleHigh.
Referenced by IndicatorPlot::drawDot(), IndicatorPlot::drawHistogram(), IndicatorPlot::drawHistogramBar(), and IndicatorPlot::drawLine().
double Scaler::getLogRange | ( | ) |
Definition at line 207 of file Scaler.cpp.
References logRange.
Referenced by IndicatorPlot::drawDot(), IndicatorPlot::drawHistogram(), IndicatorPlot::drawHistogramBar(), and IndicatorPlot::drawLine().
int Scaler::getHeight | ( | ) |
Definition at line 212 of file Scaler.cpp.
References height.
Referenced by IndicatorPlot::drawDot(), IndicatorPlot::drawHistogram(), IndicatorPlot::drawHistogramBar(), and IndicatorPlot::drawLine().
bool Scaler::getDateFlag | ( | ) |
bool Scaler::getLogFlag | ( | ) |
Definition at line 217 of file Scaler.cpp.
References logScale.
Referenced by IndicatorPlot::drawDot(), IndicatorPlot::drawHistogram(), IndicatorPlot::drawHistogramBar(), and IndicatorPlot::drawLine().
double Scaler::getLow | ( | ) |
Definition at line 222 of file Scaler.cpp.
References scaleLow.
Referenced by HorizontalLine::draw().
int Scaler::height [protected] |
Definition at line 45 of file Scaler.h.
Referenced by convertToVal(), convertToY(), getHeight(), getScaleArray(), Scaler(), and set().
bool Scaler::logScale [protected] |
Definition at line 46 of file Scaler.h.
Referenced by convertToVal(), convertToY(), getLogFlag(), Scaler(), and set().
double Scaler::scaleHigh [protected] |
double Scaler::scaleLow [protected] |
Definition at line 48 of file Scaler.h.
Referenced by convertToVal(), convertToY(), getLow(), getScaleArray(), Scaler(), and set().
double Scaler::logScaleHigh [protected] |
Definition at line 49 of file Scaler.h.
Referenced by convertToVal(), convertToY(), getLogScaleHigh(), Scaler(), and set().
double Scaler::logRange [protected] |
Definition at line 50 of file Scaler.h.
Referenced by convertToVal(), convertToY(), getLogRange(), Scaler(), and set().
double Scaler::range [protected] |
double Scaler::scaler [protected] |
Definition at line 52 of file Scaler.h.
Referenced by convertToVal(), convertToY(), Scaler(), and set().
QStringList Scaler::scaleList [protected] |