INET Framework for OMNeT++/OMNEST
|
#include <LinearGaugeFigure.h>
Public Member Functions | |
LinearGaugeFigure (const char *name=nullptr) | |
virtual | ~LinearGaugeFigure () |
virtual void | setValue (int series, simtime_t timestamp, double value) override |
const Rectangle & | getBounds () const |
void | setBounds (const Rectangle &rect) |
const Color & | getBackgroundColor () const |
void | setBackgroundColor (const Color &color) |
const Color & | getNeedleColor () const |
void | setNeedleColor (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) |
double | getCornerRadius () const |
void | setCornerRadius (double radius) |
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 | setTickGeometry (cLineFigure *tick, int index) |
void | setNumberGeometry (cTextFigure *number, int index) |
void | setNeedleGeometry () |
void | redrawTicks () |
void | layout () |
void | refresh () |
Private Attributes | |
cLineFigure * | needle |
cTextFigure * | labelFigure |
cRectangleFigure * | backgroundFigure |
cLineFigure * | axisFigure |
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 |
LinearGaugeFigure::LinearGaugeFigure | ( | const char * | name = nullptr | ) |
|
virtual |
|
protected |
Referenced by LinearGaugeFigure().
|
overrideprotectedvirtual |
const cFigure::Color & LinearGaugeFigure::getBackgroundColor | ( | ) | const |
const cFigure::Rectangle & LinearGaugeFigure::getBounds | ( | ) | const |
Referenced by layout(), parse(), setLabelOffset(), setNeedleGeometry(), setNumberGeometry(), and setTickGeometry().
double LinearGaugeFigure::getCornerRadius | ( | ) | const |
const char * LinearGaugeFigure::getLabel | ( | ) | const |
const cFigure::Color & LinearGaugeFigure::getLabelColor | ( | ) | const |
const cFigure::Font & LinearGaugeFigure::getLabelFont | ( | ) | const |
const int LinearGaugeFigure::getLabelOffset | ( | ) | const |
double LinearGaugeFigure::getMaxValue | ( | ) | const |
double LinearGaugeFigure::getMinValue | ( | ) | const |
const cFigure::Color & LinearGaugeFigure::getNeedleColor | ( | ) | const |
double LinearGaugeFigure::getTickSize | ( | ) | const |
|
protected |
Referenced by setBounds().
|
overrideprotectedvirtual |
|
protected |
Referenced by parse(), setMaxValue(), setMinValue(), and setTickSize().
|
protected |
Referenced by setMaxValue(), setMinValue(), setTickSize(), and setValue().
void LinearGaugeFigure::setBackgroundColor | ( | const Color & | color | ) |
Referenced by parse().
void LinearGaugeFigure::setBounds | ( | const Rectangle & | rect | ) |
Referenced by parse().
void LinearGaugeFigure::setCornerRadius | ( | double | radius | ) |
Referenced by parse().
void LinearGaugeFigure::setLabel | ( | const char * | text | ) |
Referenced by parse().
void LinearGaugeFigure::setLabelColor | ( | const Color & | color | ) |
Referenced by parse().
void LinearGaugeFigure::setLabelFont | ( | const Font & | font | ) |
Referenced by parse().
void LinearGaugeFigure::setLabelOffset | ( | int | offset | ) |
Referenced by parse().
void LinearGaugeFigure::setMaxValue | ( | double | value | ) |
Referenced by parse().
void LinearGaugeFigure::setMinValue | ( | double | value | ) |
Referenced by parse().
void LinearGaugeFigure::setNeedleColor | ( | const Color & | color | ) |
Referenced by parse().
|
protected |
Referenced by layout(), and refresh().
|
protected |
Referenced by layout(), and redrawTicks().
|
protected |
Referenced by layout(), and redrawTicks().
void LinearGaugeFigure::setTickSize | ( | double | value | ) |
Referenced by parse().
|
overridevirtual |
|
private |
Referenced by addChildren(), layout(), setNeedleGeometry(), setNumberGeometry(), and setTickGeometry().
|
private |
Referenced by addChildren(), getBackgroundColor(), getBounds(), getCornerRadius(), layout(), setBackgroundColor(), setBounds(), and setCornerRadius().
|
private |
Referenced by addChildren(), getLabel(), getLabelColor(), getLabelFont(), layout(), setLabel(), setLabelColor(), setLabelFont(), and setLabelOffset().
|
private |
Referenced by getLabelOffset(), layout(), and setLabelOffset().
|
private |
Referenced by getMaxValue(), redrawTicks(), setMaxValue(), setNeedleGeometry(), setNumberGeometry(), and setTickGeometry().
|
private |
Referenced by getMinValue(), redrawTicks(), setMinValue(), setNeedleGeometry(), setNumberGeometry(), and setTickGeometry().
|
private |
Referenced by addChildren(), getNeedleColor(), redrawTicks(), setNeedleColor(), and setNeedleGeometry().
|
private |
Referenced by layout(), redrawTicks(), and ~LinearGaugeFigure().
|
private |
Referenced by layout(), redrawTicks(), and ~LinearGaugeFigure().
|
private |
Referenced by redrawTicks(), setNumberGeometry(), and setTickGeometry().
|
private |
Referenced by layout(), redrawTicks(), and ~LinearGaugeFigure().
|
private |
Referenced by getTickSize(), redrawTicks(), setNumberGeometry(), setTickGeometry(), and setTickSize().
|
private |
Referenced by setMaxValue(), setMinValue(), setNeedleGeometry(), setTickSize(), and setValue().