INET Framework for OMNeT++/OMNEST
|
#include <IndexedImageFigure.h>
Public Member Functions | |
IndexedImageFigure (const char *name=nullptr) | |
virtual | ~IndexedImageFigure () |
virtual void | setValue (int series, simtime_t timestamp, double value) override |
const std::vector< std::string > & | getImages () const |
void | setImages (const std::vector< std::string > &images) |
double | getTintAmount () const |
void | setTintAmount (double tintAmount) |
const Color & | getTintColor () const |
void | setTintColor (const Color &color) |
double | getOpacity () const |
void | setOpacity (double opacity) |
Interpolation | getInterpolation () const |
void | setInterpolation (Interpolation interpolation) |
const char * | getLabel () const |
void | setLabel (const char *text) |
const Font & | getLabelFont () const |
void | setLabelFont (const Font &font) |
const Color & | getLabelColor () const |
void | setLabelColor (const Color &color) |
const Point | getLabelOffset () const |
void | setLabelOffset (const Point &offset) |
const Point | getSize () const |
void | setSize (const Point &bounds) |
const Point & | getPos () const |
void | setPos (const Point &point) |
Anchor | getAnchor () const |
void | setAnchor (Anchor anchor) |
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 | refresh () |
Private Attributes | |
std::vector< std::string > | images |
cImageFigure * | image |
cTextFigure * | labelFigure |
double | value = NaN |
IndexedImageFigure::IndexedImageFigure | ( | const char * | name = nullptr | ) |
|
protected |
Referenced by IndexedImageFigure().
|
overrideprotectedvirtual |
cFigure::Anchor IndexedImageFigure::getAnchor | ( | ) | const |
const std::vector< std::string > & IndexedImageFigure::getImages | ( | ) | const |
Referenced by inet::visualizer::RadioCanvasVisualizer::setImageIndex().
cFigure::Interpolation IndexedImageFigure::getInterpolation | ( | ) | const |
const char * IndexedImageFigure::getLabel | ( | ) | const |
const cFigure::Color & IndexedImageFigure::getLabelColor | ( | ) | const |
const cFigure::Font & IndexedImageFigure::getLabelFont | ( | ) | const |
const cFigure::Point IndexedImageFigure::getLabelOffset | ( | ) | const |
Referenced by setPos().
double IndexedImageFigure::getOpacity | ( | ) | const |
const cFigure::Point & IndexedImageFigure::getPos | ( | ) | const |
const cFigure::Point IndexedImageFigure::getSize | ( | ) | const |
double IndexedImageFigure::getTintAmount | ( | ) | const |
const cFigure::Color & IndexedImageFigure::getTintColor | ( | ) | const |
|
overrideprotectedvirtual |
|
protected |
Referenced by setImages(), and setValue().
void IndexedImageFigure::setImages | ( | const std::vector< std::string > & | images | ) |
Referenced by inet::visualizer::RadioCanvasVisualizer::createRadioVisualization(), and parse().
void IndexedImageFigure::setInterpolation | ( | Interpolation | interpolation | ) |
Referenced by parse().
void IndexedImageFigure::setLabel | ( | const char * | text | ) |
Referenced by parse().
void IndexedImageFigure::setLabelFont | ( | const Font & | font | ) |
Referenced by parse().
void IndexedImageFigure::setLabelOffset | ( | const Point & | offset | ) |
void IndexedImageFigure::setOpacity | ( | double | opacity | ) |
Referenced by parse().
void IndexedImageFigure::setPos | ( | const Point & | point | ) |
Referenced by parse().
void IndexedImageFigure::setSize | ( | const Point & | bounds | ) |
Referenced by inet::visualizer::RadioCanvasVisualizer::createRadioVisualization(), and parse().
void IndexedImageFigure::setTintAmount | ( | double | tintAmount | ) |
Referenced by parse().
|
overridevirtual |
Implements inet::IIndicatorFigure.
Referenced by parse(), and inet::visualizer::RadioCanvasVisualizer::setImageIndex().
|
private |
|
private |
Referenced by getImages(), refresh(), and setImages().
|
private |
Referenced by addChildren(), getLabel(), getLabelColor(), getLabelFont(), getLabelOffset(), setLabel(), setLabelColor(), setLabelFont(), and setLabelOffset().
|
private |
Referenced by refresh(), and setValue().