INET Framework for OMNeT++/OMNEST
inet::visualizer::PhysicalLinkCanvasVisualizer Class Reference

#include <PhysicalLinkCanvasVisualizer.h>

Inheritance diagram for inet::visualizer::PhysicalLinkCanvasVisualizer:
inet::visualizer::LinkCanvasVisualizerBase inet::visualizer::LinkVisualizerBase inet::visualizer::VisualizerBase

Protected Member Functions

virtual bool isLinkStart (cModule *module) const override
 
virtual bool isLinkEnd (cModule *module) const override
 
virtual const LinkVisualizationcreateLinkVisualization (cModule *source, cModule *destination, cPacket *packet) const override
 
- Protected Member Functions inherited from inet::visualizer::VisualizerBase
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 InterfaceEntrygetInterfaceEntry (cModule *networkNode, cModule *module) const
 

Additional Inherited Members

- Protected Attributes inherited from inet::visualizer::VisualizerBase
cModule * visualizerTargetModule = nullptr
 
const char * tags = nullptr
 

Member Function Documentation

const LinkVisualizerBase::LinkVisualization * inet::visualizer::PhysicalLinkCanvasVisualizer::createLinkVisualization ( cModule *  source,
cModule *  destination,
cPacket *  packet 
) const
overrideprotectedvirtual

Reimplemented from inet::visualizer::LinkCanvasVisualizerBase.

38 {
39  auto linkVisualization = static_cast<const LinkCanvasVisualization *>(LinkCanvasVisualizerBase::createLinkVisualization(source, destination, packet));
40  linkVisualization->figure->setTags((std::string("physical_link ") + tags).c_str());
41  linkVisualization->figure->setTooltip("This arrow represents a physical link between two network nodes");
42  linkVisualization->shiftPriority = 1;
43  return linkVisualization;
44 }
const char * tags
Definition: VisualizerBase.h:32
bool inet::visualizer::PhysicalLinkCanvasVisualizer::isLinkEnd ( cModule *  module) const
overrideprotectedvirtual

Implements inet::visualizer::LinkVisualizerBase.

33 {
34  return dynamic_cast<inet::physicallayer::IRadio *>(module) != nullptr;
35 }
This interface represents a physical device that is capable of transmitting and receiving radio signa...
Definition: IRadio.h:44
bool inet::visualizer::PhysicalLinkCanvasVisualizer::isLinkStart ( cModule *  module) const
overrideprotectedvirtual

Implements inet::visualizer::LinkVisualizerBase.

28 {
29  return dynamic_cast<inet::physicallayer::IRadio *>(module) != nullptr;
30 }
This interface represents a physical device that is capable of transmitting and receiving radio signa...
Definition: IRadio.h:44

The documentation for this class was generated from the following files: