INET Framework for OMNeT++/OMNEST
|
#include <ThermometerFigure.h>
Public Member Functions | |
ThermometerFigure (const char *name=nullptr) | |
virtual | ~ThermometerFigure () |
virtual void | setValue (int series, simtime_t timestamp, double value) override |
const Rectangle & | getBounds () const |
void | setBounds (const Rectangle &rect) |
const Color & | getMercuryColor () const |
void | setMercuryColor (const Color &color) |
const char * | getLabel () const |
void | setLabel (const char *text) |
const int | getLabelOffset () const |
void | setLabelOffset (int offset) |
const Font & | getLabelFont () const |
void | setLabelFont (const Font &font) |
const Color & | getLabelColor () const |
void | setLabelColor (const Color &color) |
double | getMinValue () const |
void | setMinValue (double value) |
double | getMaxValue () const |
void | setMaxValue (double value) |
double | getTickSize () const |
void | setTickSize (double value) |
Public Member Functions inherited from inet::IIndicatorFigure | |
virtual | ~IIndicatorFigure () |
virtual int | getNumSeries () const |
virtual void | refreshDisplay () |
Protected Member Functions | |
virtual void | parse (cProperty *property) override |
virtual const char ** | getAllowedPropertyKeys () const override |
void | addChildren () |
void | getContainerGeometry (double &x, double &y, double &width, double &height, double &offset) |
void | setTickGeometry (cLineFigure *tick, int index) |
void | setNumberGeometry (cTextFigure *number, int index) |
void | setMercuryAndContainerGeometry () |
void | redrawTicks () |
void | layout () |
void | refresh () |
Protected Attributes | |
cFigure::Rectangle | bounds |
cPathFigure * | mercuryFigure |
cPathFigure * | containerFigure |
cTextFigure * | labelFigure |
std::vector< cLineFigure * > | tickFigures |
std::vector< cTextFigure * > | numberFigures |
double | min = 0 |
double | max = 100 |
double | tickSize = 10 |
double | value = NaN |
int | numTicks = 0 |
double | shifting = 0 |
int | labelOffset = 10 |
ThermometerFigure::ThermometerFigure | ( | const char * | name = nullptr | ) |
|
virtual |
|
protected |
Referenced by ThermometerFigure().
|
overrideprotectedvirtual |
const cFigure::Rectangle & ThermometerFigure::getBounds | ( | ) | const |
Referenced by getContainerGeometry(), layout(), parse(), setLabelOffset(), setMercuryAndContainerGeometry(), setNumberGeometry(), and setTickGeometry().
|
protected |
Referenced by setMercuryAndContainerGeometry(), setNumberGeometry(), and setTickGeometry().
const char * ThermometerFigure::getLabel | ( | ) | const |
const cFigure::Color & ThermometerFigure::getLabelColor | ( | ) | const |
const cFigure::Font & ThermometerFigure::getLabelFont | ( | ) | const |
const int ThermometerFigure::getLabelOffset | ( | ) | const |
double ThermometerFigure::getMaxValue | ( | ) | const |
const cFigure::Color & ThermometerFigure::getMercuryColor | ( | ) | const |
double ThermometerFigure::getMinValue | ( | ) | const |
double ThermometerFigure::getTickSize | ( | ) | const |
|
protected |
Referenced by setBounds().
|
overrideprotectedvirtual |
|
protected |
Referenced by parse(), setMaxValue(), setMinValue(), and setTickSize().
|
protected |
Referenced by setMaxValue(), setMinValue(), setTickSize(), and setValue().
void ThermometerFigure::setBounds | ( | const Rectangle & | rect | ) |
Referenced by parse().
void ThermometerFigure::setLabel | ( | const char * | text | ) |
Referenced by parse().
void ThermometerFigure::setLabelFont | ( | const Font & | font | ) |
Referenced by parse().
void ThermometerFigure::setLabelOffset | ( | int | offset | ) |
Referenced by parse().
void ThermometerFigure::setMaxValue | ( | double | value | ) |
Referenced by parse().
|
protected |
void ThermometerFigure::setMinValue | ( | double | value | ) |
Referenced by parse().
|
protected |
Referenced by layout(), and redrawTicks().
|
protected |
Referenced by layout(), and redrawTicks().
void ThermometerFigure::setTickSize | ( | double | value | ) |
Referenced by parse().
|
overridevirtual |
|
protected |
Referenced by getBounds(), and setBounds().
|
protected |
Referenced by addChildren(), and setMercuryAndContainerGeometry().
|
protected |
Referenced by addChildren(), getLabel(), getLabelColor(), getLabelFont(), layout(), setLabel(), setLabelColor(), setLabelFont(), and setLabelOffset().
|
protected |
Referenced by getLabelOffset(), layout(), and setLabelOffset().
|
protected |
Referenced by getMaxValue(), redrawTicks(), setMaxValue(), setMercuryAndContainerGeometry(), setNumberGeometry(), and setTickGeometry().
|
protected |
Referenced by addChildren(), getMercuryColor(), setMercuryAndContainerGeometry(), and setMercuryColor().
|
protected |
Referenced by getMinValue(), redrawTicks(), setMercuryAndContainerGeometry(), setMinValue(), setNumberGeometry(), and setTickGeometry().
|
protected |
Referenced by layout(), redrawTicks(), and ~ThermometerFigure().
|
protected |
Referenced by layout(), redrawTicks(), setNumberGeometry(), setTickGeometry(), and ~ThermometerFigure().
|
protected |
Referenced by redrawTicks(), setNumberGeometry(), and setTickGeometry().
|
protected |
Referenced by layout(), redrawTicks(), and ~ThermometerFigure().
|
protected |
Referenced by getTickSize(), redrawTicks(), setNumberGeometry(), setTickGeometry(), and setTickSize().
|
protected |
Referenced by setMaxValue(), setMercuryAndContainerGeometry(), setMinValue(), setTickSize(), and setValue().