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

#include <DataLinkCanvasVisualizer.h>

Inheritance diagram for inet::visualizer::DataLinkCanvasVisualizer:
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::DataLinkCanvasVisualizer::createLinkVisualization ( cModule *  source,
cModule *  destination,
cPacket *  packet 
) const
overrideprotectedvirtual

Reimplemented from inet::visualizer::LinkCanvasVisualizerBase.

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

Implements inet::visualizer::LinkVisualizerBase.

34 {
35  return dynamic_cast<MACProtocolBase *>(module) != nullptr || dynamic_cast<MACBase *>(module) != nullptr;
36 }
bool inet::visualizer::DataLinkCanvasVisualizer::isLinkStart ( cModule *  module) const
overrideprotectedvirtual

Implements inet::visualizer::LinkVisualizerBase.

29 {
30  return dynamic_cast<MACProtocolBase *>(module) != nullptr || dynamic_cast<MACBase *>(module) != nullptr;
31 }

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