53 auto module = check_and_cast<
const cModule *>(radio);
56 radioModeFigure->setTags((std::string(
"radioMode ") +
tags).c_str());
57 radioModeFigure->setTooltip(
"This figure represents the radio mode of a radio");
58 radioModeFigure->setAssociatedObject(const_cast<cModule *>(module));
60 radioModeFigure->setSize(cFigure::Point(
width,
height));
62 receptionStateFigure->setTags((std::string(
"receptionState ") +
tags).c_str());
63 receptionStateFigure->setTooltip(
"This figure represents the reception state of a radio");
65 receptionStateFigure->setSize(cFigure::Point(
width,
height));
67 transmissionStateFigure->setTags((std::string(
"transmissionState ") +
tags).c_str());
68 transmissionStateFigure->setTooltip(
"This figure represents the transmission state of a radio");
70 transmissionStateFigure->setSize(cFigure::Point(
width,
height));
73 return new RadioCanvasVisualization(networkNodeVisualization, radioModeFigure, receptionStateFigure, transmissionStateFigure, module->getId());
const char * tags
Definition: VisualizerBase.h:32
std::vector< std::string > transmissionStateImages
Definition: RadioVisualizerBase.h:54
std::vector< std::string > receptionStateImages
Definition: RadioVisualizerBase.h:53
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
double width
Definition: RadioVisualizerBase.h:56
std::vector< std::string > radioModeImages
Definition: RadioVisualizerBase.h:52
double height
Definition: RadioVisualizerBase.h:57
NetworkNodeCanvasVisualizer * networkNodeVisualizer
Definition: RadioCanvasVisualizer.h:47