#include <ScalePlot.h>
Public Slots | |
void | draw () |
void | drawRefresh () |
void | setBackgroundColor (QColor &) |
void | setBorderColor (QColor &) |
void | setPlotFont (QFont &) |
void | slotScaleToScreenChanged (bool) |
void | slotLogScaleChanged (bool) |
void | drawScale () |
void | setMainFlag (bool) |
Public Member Functions | |
ScalePlot (QWidget *) | |
~ScalePlot () | |
void | clear () |
void | setData (double) |
void | setScaleWidth (int) |
void | setLogScale (bool) |
void | setScaleToScreen (bool) |
void | strip (double, int, QString &) |
void | setScaler (Scaler &) |
Protected Member Functions | |
virtual void | paintEvent (QPaintEvent *) |
virtual void | resizeEvent (QResizeEvent *) |
Private Attributes | |
QFont | plotFont |
QPixmap | buffer |
QColor | backgroundColor |
QColor | borderColor |
bool | scaleToScreen |
bool | logScale |
int | scaleWidth |
double | close |
Scaler | scaler |
bool | mainFlag |
bool | activeFlag |
Definition at line 31 of file ScalePlot.h.
ScalePlot::ScalePlot | ( | QWidget * | w | ) |
Definition at line 34 of file ScalePlot.cpp.
References activeFlag, backgroundColor, borderColor, close, logScale, mainFlag, plotFont, SCALE_WIDTH, scaleToScreen, and scaleWidth.
ScalePlot::~ScalePlot | ( | ) |
Definition at line 54 of file ScalePlot.cpp.
void ScalePlot::clear | ( | ) |
void ScalePlot::setData | ( | double | c | ) |
Definition at line 63 of file ScalePlot.cpp.
References activeFlag, and close.
Referenced by Plot::setData().
void ScalePlot::setScaleWidth | ( | int | d | ) |
void ScalePlot::setLogScale | ( | bool | d | ) |
Definition at line 79 of file ScalePlot.cpp.
References logScale.
Referenced by Plot::setLogScale(), and slotLogScaleChanged().
void ScalePlot::setScaleToScreen | ( | bool | d | ) |
Definition at line 74 of file ScalePlot.cpp.
References scaleToScreen.
Referenced by Plot::setScaleToScreen(), and slotScaleToScreenChanged().
void ScalePlot::strip | ( | double | d, | |
int | p, | |||
QString & | s | |||
) |
void ScalePlot::setScaler | ( | Scaler & | d | ) |
Definition at line 254 of file ScalePlot.cpp.
References scaler.
Referenced by Plot::draw(), and Plot::slotUpdateScalePlot().
void ScalePlot::draw | ( | ) | [slot] |
Definition at line 84 of file ScalePlot.cpp.
References activeFlag, backgroundColor, buffer, drawScale(), and paintEvent().
Referenced by Plot::draw(), resizeEvent(), slotLogScaleChanged(), slotScaleToScreenChanged(), and Plot::slotUpdateScalePlot().
void ScalePlot::drawRefresh | ( | ) | [slot] |
Definition at line 102 of file ScalePlot.cpp.
References paintEvent().
Referenced by Plot::drawRefresh().
void ScalePlot::setBackgroundColor | ( | QColor & | d | ) | [slot] |
Definition at line 126 of file ScalePlot.cpp.
References backgroundColor.
Referenced by Plot::setBackgroundColor().
void ScalePlot::setBorderColor | ( | QColor & | d | ) | [slot] |
Definition at line 131 of file ScalePlot.cpp.
References borderColor.
Referenced by Plot::setBorderColor().
void ScalePlot::setPlotFont | ( | QFont & | d | ) | [slot] |
Definition at line 136 of file ScalePlot.cpp.
References plotFont.
Referenced by Plot::setPlotFont().
void ScalePlot::slotScaleToScreenChanged | ( | bool | d | ) | [slot] |
void ScalePlot::slotLogScaleChanged | ( | bool | d | ) | [slot] |
void ScalePlot::drawScale | ( | ) | [slot] |
Definition at line 141 of file ScalePlot.cpp.
References backgroundColor, borderColor, buffer, close, Scaler::convertToY(), Scaler::getScaleArray(), mainFlag, plotFont, scaler, and strip().
Referenced by draw().
void ScalePlot::setMainFlag | ( | bool | d | ) | [slot] |
void ScalePlot::paintEvent | ( | QPaintEvent * | ) | [protected, virtual] |
Definition at line 107 of file ScalePlot.cpp.
References buffer.
Referenced by draw(), and drawRefresh().
void ScalePlot::resizeEvent | ( | QResizeEvent * | event | ) | [protected, virtual] |
QFont ScalePlot::plotFont [private] |
Definition at line 62 of file ScalePlot.h.
Referenced by drawScale(), ScalePlot(), and setPlotFont().
QPixmap ScalePlot::buffer [private] |
Definition at line 63 of file ScalePlot.h.
Referenced by draw(), drawScale(), paintEvent(), and resizeEvent().
QColor ScalePlot::backgroundColor [private] |
Definition at line 64 of file ScalePlot.h.
Referenced by draw(), drawScale(), ScalePlot(), and setBackgroundColor().
QColor ScalePlot::borderColor [private] |
Definition at line 65 of file ScalePlot.h.
Referenced by drawScale(), ScalePlot(), and setBorderColor().
bool ScalePlot::scaleToScreen [private] |
bool ScalePlot::logScale [private] |
int ScalePlot::scaleWidth [private] |
double ScalePlot::close [private] |
Definition at line 69 of file ScalePlot.h.
Referenced by clear(), drawScale(), ScalePlot(), and setData().
Scaler ScalePlot::scaler [private] |
bool ScalePlot::mainFlag [private] |
Definition at line 71 of file ScalePlot.h.
Referenced by drawScale(), ScalePlot(), and setMainFlag().
bool ScalePlot::activeFlag [private] |