#include <InfoCanvasVisualizer.h>
void inet::visualizer::InfoCanvasVisualizer::addInfoVisualization |
( |
const InfoVisualization * |
infoVisualization | ) |
|
|
overrideprotectedvirtual |
Reimplemented from inet::visualizer::InfoVisualizerBase.
69 auto infoCanvasVisualization =
static_cast<const InfoCanvasVisualization *
>(infoVisualization);
70 auto figure = infoCanvasVisualization->figure;
double displacementPriority
Definition: InfoVisualizerBase.h:65
Displacement displacementHint
Definition: InfoVisualizerBase.h:64
virtual void addInfoVisualization(const InfoVisualization *infoVisualization)
Definition: InfoVisualizerBase.cc:97
Implements inet::visualizer::InfoVisualizerBase.
51 auto figure =
new BoxedLabelFigure(
"info");
52 figure->setTags((std::string(
"info ") +
tags).c_str());
53 figure->setTooltip(
"This label represents some module information");
54 figure->setAssociatedObject(module);
56 figure->setFont(
font);
63 return new InfoCanvasVisualization(networkNodeVisualization, figure, module->getId());
virtual const char * getInfoVisualizationText(cModule *module) const
Definition: InfoVisualizerBase.cc:127
const char * tags
Definition: VisualizerBase.h:32
double zIndex
Definition: InfoCanvasVisualizer.h:44
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
cFigure::Color textColor
Definition: InfoVisualizerBase.h:61
cFigure::Color backgroundColor
Definition: InfoVisualizerBase.h:62
double opacity
Definition: InfoVisualizerBase.h:63
NetworkNodeCanvasVisualizer * networkNodeVisualizer
Definition: InfoCanvasVisualizer.h:45
cFigure::Font font
Definition: InfoVisualizerBase.h:60
void inet::visualizer::InfoCanvasVisualizer::initialize |
( |
int |
stage | ) |
|
|
overrideprotectedvirtual |
Reimplemented from inet::visualizer::InfoVisualizerBase.
42 if (!hasGUI())
return;
45 networkNodeVisualizer = getModuleFromPar<NetworkNodeCanvasVisualizer>(par(
"networkNodeVisualizerModule"),
this);
double zIndex
Definition: InfoCanvasVisualizer.h:44
virtual void initialize(int stage) override
Definition: InfoVisualizerBase.cc:54
Local initializations.
Definition: InitStages.h:35
NetworkNodeCanvasVisualizer * networkNodeVisualizer
Definition: InfoCanvasVisualizer.h:45
void inet::visualizer::InfoCanvasVisualizer::refreshInfoVisualization |
( |
const InfoVisualization * |
infoVisualization, |
|
|
const char * |
info |
|
) |
| const |
|
overrideprotectedvirtual |
Implements inet::visualizer::InfoVisualizerBase.
84 auto infoCanvasVisualization =
static_cast<const InfoCanvasVisualization *
>(infoVisualization);
85 auto figure = infoCanvasVisualization->figure;
86 figure->setText(info);
87 infoCanvasVisualization->networkNodeVisualization->setAnnotationSize(figure, figure->getBounds().getSize());
void inet::visualizer::InfoCanvasVisualizer::removeInfoVisualization |
( |
const InfoVisualization * |
infoVisualization | ) |
|
|
overrideprotectedvirtual |
Reimplemented from inet::visualizer::InfoVisualizerBase.
77 auto infoCanvasVisualization =
static_cast<const InfoCanvasVisualization *
>(infoVisualization);
78 auto figure = infoCanvasVisualization->figure;
79 infoCanvasVisualization->networkNodeVisualization->removeAnnotation(figure);
virtual void removeInfoVisualization(const InfoVisualization *infoVisualization)
Definition: InfoVisualizerBase.cc:102
double inet::visualizer::InfoCanvasVisualizer::zIndex = NaN |
|
protected |
The documentation for this class was generated from the following files: