#include <StatisticCanvasVisualizer.h>
|
virtual void | initialize (int stage) override |
|
virtual StatisticVisualization * | createStatisticVisualization (cComponent *source, simsignal_t signal) override |
|
virtual void | addStatisticVisualization (const StatisticVisualization *statisticVisualization) override |
|
virtual void | removeStatisticVisualization (const StatisticVisualization *statisticVisualization) override |
|
virtual void | refreshStatisticVisualization (const StatisticVisualization *statisticVisualization) override |
|
virtual void | handleParameterChange (const char *name) override |
|
virtual void | subscribe () |
|
virtual void | unsubscribe () |
|
virtual cResultFilter * | findResultFilter (cComponent *source, simsignal_t signal) |
|
virtual cResultFilter * | findResultFilter (cResultFilter *parentResultFilter, cResultListener *resultListener) |
|
virtual std::string | getText (const StatisticVisualization *statisticVisualization) |
|
virtual const char * | getUnit (cComponent *source) |
|
virtual const StatisticVisualization * | getStatisticVisualization (cComponent *source, simsignal_t signal) |
|
virtual void | removeAllStatisticVisualizations () |
|
virtual void | processSignal (cComponent *source, simsignal_t signal, double value) |
|
virtual int | numInitStages () const override |
|
virtual Coord | getPosition (const cModule *networkNode) const |
|
virtual Coord | getContactPosition (const cModule *networkNode, const Coord &fromPosition, const char *contactMode, double contactSpacing) const |
|
virtual InterfaceEntry * | getInterfaceEntry (cModule *networkNode, cModule *module) const |
|
|
virtual | ~StatisticVisualizerBase () |
|
virtual void | receiveSignal (cComponent *source, simsignal_t signal, bool b, cObject *details) override |
|
virtual void | receiveSignal (cComponent *source, simsignal_t signal, long l, cObject *details) override |
|
virtual void | receiveSignal (cComponent *source, simsignal_t signal, unsigned long l, cObject *details) override |
|
virtual void | receiveSignal (cComponent *source, simsignal_t signal, double d, cObject *details) override |
|
virtual void | receiveSignal (cComponent *source, simsignal_t signal, const SimTime &t, cObject *details) override |
|
virtual void | receiveSignal (cComponent *source, simsignal_t signal, const char *s, cObject *details) override |
|
virtual void | receiveSignal (cComponent *source, simsignal_t signal, cObject *obj, cObject *details) override |
|
void inet::visualizer::StatisticCanvasVisualizer::addStatisticVisualization |
( |
const StatisticVisualization * |
statisticVisualization | ) |
|
|
overrideprotectedvirtual |
Reimplemented from inet::visualizer::StatisticVisualizerBase.
64 auto statisticCanvasVisualization =
static_cast<const StatisticCanvasVisualization *
>(statisticVisualization);
65 statisticCanvasVisualization->networkNodeVisualization->addAnnotation(statisticCanvasVisualization->figure, statisticCanvasVisualization->figure->getBounds().getSize(),
displacementHint,
displacementPriority);
double displacementPriority
Definition: StatisticVisualizerBase.h:85
virtual void addStatisticVisualization(const StatisticVisualization *statisticVisualization)
Definition: StatisticVisualizerBase.cc:175
Displacement displacementHint
Definition: StatisticVisualizerBase.h:84
Implements inet::visualizer::StatisticVisualizerBase.
46 auto figure =
new BoxedLabelFigure(
"statistic");
47 figure->setTags((std::string(
"statistic ") +
tags).c_str());
48 figure->setTooltip(
"This label represents the current value of a statistic");
49 figure->setAssociatedObject(source);
51 figure->setFont(
font);
58 return new StatisticCanvasVisualization(networkNodeVisualization, figure, source->getId(), signal,
getUnit(source));
double opacity
Definition: StatisticVisualizerBase.h:83
const char * tags
Definition: VisualizerBase.h:32
double zIndex
Definition: StatisticCanvasVisualizer.h:43
virtual const char * getUnit(cComponent *source)
Definition: StatisticVisualizerBase.cc:154
cFigure::Color textColor
Definition: StatisticVisualizerBase.h:81
virtual NetworkNodeCanvasVisualization * getNetworkNodeVisualization(const cModule *networkNode) const
Definition: NetworkNodeCanvasVisualizer.cc:63
cModule * getContainingNode(const cModule *from)
Find the node containing the given module.
Definition: ModuleAccess.cc:65
NetworkNodeCanvasVisualizer * networkNodeVisualizer
Definition: StatisticCanvasVisualizer.h:44
cFigure::Font font
Definition: StatisticVisualizerBase.h:80
cFigure::Color backgroundColor
Definition: StatisticVisualizerBase.h:82
void inet::visualizer::StatisticCanvasVisualizer::initialize |
( |
int |
stage | ) |
|
|
overrideprotectedvirtual |
Reimplemented from inet::visualizer::StatisticVisualizerBase.
37 if (!hasGUI())
return;
40 networkNodeVisualizer = getModuleFromPar<NetworkNodeCanvasVisualizer>(par(
"networkNodeVisualizerModule"),
this);
double zIndex
Definition: StatisticCanvasVisualizer.h:43
virtual void initialize(int stage) override
Definition: StatisticVisualizerBase.cc:66
Local initializations.
Definition: InitStages.h:35
NetworkNodeCanvasVisualizer * networkNodeVisualizer
Definition: StatisticCanvasVisualizer.h:44
void inet::visualizer::StatisticCanvasVisualizer::refreshStatisticVisualization |
( |
const StatisticVisualization * |
statisticVisualization | ) |
|
|
overrideprotectedvirtual |
Reimplemented from inet::visualizer::StatisticVisualizerBase.
78 auto statisticCanvasVisualization =
static_cast<const StatisticCanvasVisualization *
>(statisticVisualization);
79 auto figure = statisticCanvasVisualization->figure;
80 figure->setText(
getText(statisticVisualization).c_str());
81 statisticCanvasVisualization->networkNodeVisualization->setAnnotationSize(figure, figure->getBounds().getSize());
virtual void refreshStatisticVisualization(const StatisticVisualization *statisticVisualization)
Definition: StatisticVisualizerBase.cc:218
virtual std::string getText(const StatisticVisualization *statisticVisualization)
Definition: StatisticVisualizerBase.cc:148
void inet::visualizer::StatisticCanvasVisualizer::removeStatisticVisualization |
( |
const StatisticVisualization * |
statisticVisualization | ) |
|
|
overrideprotectedvirtual |
Reimplemented from inet::visualizer::StatisticVisualizerBase.
71 auto statisticCanvasVisualization =
static_cast<const StatisticCanvasVisualization *
>(statisticVisualization);
72 statisticCanvasVisualization->networkNodeVisualization->removeAnnotation(statisticCanvasVisualization->figure);
virtual void removeStatisticVisualization(const StatisticVisualization *statisticVisualization)
Definition: StatisticVisualizerBase.cc:181
double inet::visualizer::StatisticCanvasVisualizer::zIndex = NaN |
|
protected |
The documentation for this class was generated from the following files: