46 std::hash<std::string> hasher;
48 auto labeledIconFigure =
new LabeledIconFigure(
"ieee80211Association");
49 labeledIconFigure->setTags((std::string(
"ieee80211_association ") +
tags).c_str());
50 labeledIconFigure->setAssociatedObject(interfaceEntry);
51 labeledIconFigure->setZIndex(
zIndex);
52 auto iconFigure = labeledIconFigure->getIconFigure();
53 iconFigure->setTooltip(
"This icon represents an IEEE 802.11 association");
54 iconFigure->setImageName(
icon.substr(0,
icon.find_first_of(
".")).c_str());
56 iconFigure->setTintAmount(1);
57 auto labelFigure = labeledIconFigure->getLabelFigure();
58 labelFigure->setTooltip(
"This label represents the SSID of an IEEE 802.11 association");
61 labelFigure->setText(ssid.c_str());
62 labelFigure->setPosition(iconFigure->getBounds().getSize() / 2);
64 return new Ieee80211CanvasVisualization(networkNodeVisualization, labeledIconFigure, networkNode->getId(), interfaceEntry->getInterfaceId());
const char * tags
Definition: VisualizerBase.h:32
double zIndex
Definition: Ieee80211CanvasVisualizer.h:42
ColorSet iconColorSet
Definition: Ieee80211VisualizerBase.h:52
virtual NetworkNodeCanvasVisualization * getNetworkNodeVisualization(const cModule *networkNode) const
Definition: NetworkNodeCanvasVisualizer.cc:63
NetworkNodeCanvasVisualizer * networkNodeVisualizer
Definition: Ieee80211CanvasVisualizer.h:43
cFigure::Font labelFont
Definition: Ieee80211VisualizerBase.h:53
const char * icon
Definition: Ieee80211VisualizerBase.h:51
cFigure::Color getColor(int index) const
Definition: ColorSet.cc:43
cFigure::Color labelColor
Definition: Ieee80211VisualizerBase.h:54