INET Framework for OMNeT++/OMNEST
|
#include <GaugeFigure.h>
Public Member Functions | |
GaugeFigure (const char *name=nullptr) | |
virtual | ~GaugeFigure () |
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) |
const char * | getColorStrip () const |
void | setColorStrip (const char *colorStrip) |
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 | setColorCurve (const cFigure::Color &curveColor, double startAngle, double endAngle, cArcFigure *arc) |
void | setCurveGeometry (cArcFigure *curve) |
void | setTickGeometry (cLineFigure *tick, int index) |
void | setNumberGeometry (cTextFigure *number, int index) |
void | setNeedleGeometry () |
void | setNeedleTransform () |
void | redrawTicks () |
void | redrawCurves () |
void | layout () |
void | refresh () |
Private Attributes | |
cPathFigure * | needle |
cTextFigure * | valueFigure |
cTextFigure * | labelFigure |
cOvalFigure * | backgroundFigure |
std::vector< cArcFigure * > | curveFigures |
std::vector< cLineFigure * > | tickFigures |
std::vector< cTextFigure * > | numberFigures |
const char * | colorStrip = "" |
double | min = 0 |
double | max = 100 |
double | tickSize = 10 |
double | value = NaN |
int | numTicks = 0 |
double | shifting = 0 |
int | curvesOnCanvas = 0 |
int | labelOffset = 10 |
GaugeFigure::GaugeFigure | ( | const char * | name = nullptr | ) |
|
virtual |
|
protected |
Referenced by GaugeFigure().
|
overrideprotectedvirtual |
const cFigure::Color & GaugeFigure::getBackgroundColor | ( | ) | const |
const cFigure::Rectangle & GaugeFigure::getBounds | ( | ) | const |
Referenced by layout(), parse(), setCurveGeometry(), setLabelOffset(), setNeedleGeometry(), setNeedleTransform(), setNumberGeometry(), and setTickGeometry().
const char * GaugeFigure::getColorStrip | ( | ) | const |
const char * GaugeFigure::getLabel | ( | ) | const |
const cFigure::Color & GaugeFigure::getLabelColor | ( | ) | const |
const cFigure::Font & GaugeFigure::getLabelFont | ( | ) | const |
const int GaugeFigure::getLabelOffset | ( | ) | const |
double GaugeFigure::getMaxValue | ( | ) | const |
double GaugeFigure::getMinValue | ( | ) | const |
const cFigure::Color & GaugeFigure::getNeedleColor | ( | ) | const |
double GaugeFigure::getTickSize | ( | ) | const |
|
protected |
Referenced by setBounds().
|
overrideprotectedvirtual |
|
protected |
Referenced by setColorStrip().
|
protected |
Referenced by parse(), setMaxValue(), setMinValue(), and setTickSize().
|
protected |
Referenced by setMaxValue(), setMinValue(), setTickSize(), and setValue().
void GaugeFigure::setBounds | ( | const Rectangle & | rect | ) |
Referenced by parse().
|
protected |
Referenced by redrawCurves().
void GaugeFigure::setColorStrip | ( | const char * | colorStrip | ) |
Referenced by parse().
|
protected |
Referenced by layout(), and setColorCurve().
void GaugeFigure::setLabel | ( | const char * | text | ) |
Referenced by parse().
void GaugeFigure::setLabelFont | ( | const Font & | font | ) |
Referenced by parse().
void GaugeFigure::setLabelOffset | ( | int | offset | ) |
Referenced by parse().
void GaugeFigure::setMaxValue | ( | double | value | ) |
Referenced by parse().
void GaugeFigure::setMinValue | ( | double | value | ) |
Referenced by parse().
|
protected |
Referenced by layout().
|
protected |
Referenced by refresh(), and setNeedleGeometry().
|
protected |
|
protected |
void GaugeFigure::setTickSize | ( | double | value | ) |
Referenced by parse().
|
overridevirtual |
|
private |
Referenced by addChildren(), getBackgroundColor(), getBounds(), layout(), setBackgroundColor(), setBounds(), and setCurveGeometry().
|
private |
Referenced by getColorStrip(), redrawCurves(), and setColorStrip().
|
private |
Referenced by layout(), redrawCurves(), and ~GaugeFigure().
|
private |
Referenced by redrawCurves(), and ~GaugeFigure().
|
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(), setNeedleTransform(), setNumberGeometry(), and setTickGeometry().
|
private |
Referenced by getMinValue(), redrawTicks(), setMinValue(), setNeedleTransform(), setNumberGeometry(), and setTickGeometry().
|
private |
Referenced by addChildren(), getNeedleColor(), redrawCurves(), redrawTicks(), setNeedleColor(), setNeedleGeometry(), and setNeedleTransform().
|
private |
Referenced by layout(), redrawTicks(), and ~GaugeFigure().
|
private |
Referenced by layout(), redrawTicks(), and ~GaugeFigure().
|
private |
Referenced by redrawTicks(), setNumberGeometry(), and setTickGeometry().
|
private |
Referenced by layout(), redrawTicks(), setNumberGeometry(), and ~GaugeFigure().
|
private |
Referenced by getTickSize(), redrawTicks(), setNumberGeometry(), setTickGeometry(), and setTickSize().
|
private |
Referenced by refresh(), setMaxValue(), setMinValue(), setNeedleTransform(), setTickSize(), and setValue().
|
private |
Referenced by addChildren(), layout(), and refresh().