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

#include <TransportRouteCanvasVisualizer.h>

Inheritance diagram for inet::visualizer::TransportRouteCanvasVisualizer:
inet::visualizer::PathCanvasVisualizerBase inet::visualizer::PathVisualizerBase inet::visualizer::VisualizerBase

Protected Member Functions

virtual bool isPathStart (cModule *module) const override
 
virtual bool isPathEnd (cModule *module) const override
 
virtual bool isPathElement (cModule *module) const override
 
virtual const PathVisualizationcreatePathVisualization (const std::vector< int > &path, cPacket *packet) const override
 
- Protected Member Functions inherited from inet::visualizer::PathCanvasVisualizerBase
virtual void initialize (int stage) override
 
virtual void refreshDisplay () const override
 
virtual void addPathVisualization (const PathVisualization *pathVisualization) override
 
virtual void removePathVisualization (const PathVisualization *pathVisualization) override
 
virtual void setAlpha (const PathVisualization *pathVisualization, double alpha) const override
 
virtual void refreshPathVisualization (const PathVisualization *pathVisualization, cPacket *packet) override
 
- Protected Member Functions inherited from inet::visualizer::PathVisualizerBase
virtual void handleParameterChange (const char *name) override
 
virtual void subscribe ()
 
virtual void unsubscribe ()
 
virtual const PathVisualizationgetPathVisualization (const std::vector< int > &path)
 
virtual void removeAllPathVisualizations ()
 
virtual const std::vector< int > * getIncompletePath (int treeId)
 
virtual void addToIncompletePath (int treeId, cModule *module)
 
virtual void removeIncompletePath (int treeId)
 
virtual std::string getPathVisualizationText (cPacket *packet) const
 
virtual void updatePathVisualization (const std::vector< int > &path, cPacket *packet)
 
- 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

- Public Member Functions inherited from inet::visualizer::PathVisualizerBase
virtual ~PathVisualizerBase ()
 
virtual void receiveSignal (cComponent *source, simsignal_t signal, cObject *object, cObject *details) override
 
- Protected Attributes inherited from inet::visualizer::PathCanvasVisualizerBase
double zIndex = NaN
 
const CanvasProjectioncanvasProjection = nullptr
 
cGroupFigure * pathGroup = nullptr
 
- Protected Attributes inherited from inet::visualizer::PathVisualizerBase
LineManagerlineManager = nullptr
 
std::map< int, std::vector< int > > incompletePaths
 Maps packet to module vector. More...
 
std::map< int, int > numPaths
 Maps nodes to the number of paths that go through it. More...
 
std::multimap< std::pair< int, int >, const PathVisualization * > pathVisualizations
 Maps source/destination modules to multiple paths between them. More...
 
bool displayRoutes = false
 
NetworkNodeFilter nodeFilter
 
PacketFilter packetFilter
 
ColorSet lineColorSet
 
cFigure::LineStyle lineStyle
 
double lineWidth = NaN
 
bool lineSmooth = false
 
double lineShift = NaN
 
const char * lineShiftMode = nullptr
 
double lineContactSpacing = NaN
 
const char * lineContactMode = nullptr
 
StringFormat labelFormat
 
cFigure::Font labelFont
 
const char * labelColorAsString = nullptr
 
cFigure::Color labelColor
 
const char * fadeOutMode = nullptr
 
double fadeOutTime = NaN
 
double fadeOutAnimationSpeed = NaN
 
- Protected Attributes inherited from inet::visualizer::VisualizerBase
cModule * visualizerTargetModule = nullptr
 
const char * tags = nullptr
 

Member Function Documentation

const PathCanvasVisualizerBase::PathVisualization * inet::visualizer::TransportRouteCanvasVisualizer::createPathVisualization ( const std::vector< int > &  path,
cPacket *  packet 
) const
overrideprotectedvirtual

Reimplemented from inet::visualizer::PathCanvasVisualizerBase.

97 {
98  auto pathVisualization = static_cast<const PathCanvasVisualization *>(PathCanvasVisualizerBase::createPathVisualization(path, packet));
99  pathVisualization->figure->setTags((std::string("transport_route ") + tags).c_str());
100  pathVisualization->figure->setTooltip("This polyline arrow represents a recently active transport route between two network nodes");
101  pathVisualization->shiftPriority = 4;
102  return pathVisualization;
103 }
const char * tags
Definition: VisualizerBase.h:32
virtual const PathVisualization * createPathVisualization(const std::vector< int > &path, cPacket *packet) const override
Definition: PathCanvasVisualizerBase.cc:142
bool inet::visualizer::TransportRouteCanvasVisualizer::isPathElement ( cModule *  module) const
overrideprotectedvirtual

Implements inet::visualizer::PathVisualizerBase.

77 {
78 #ifdef WITH_ETHERNET
79  if (dynamic_cast<MACRelayUnit *>(module) != nullptr)
80  return true;
81 #endif
82 
83 #ifdef WITH_IEEE8021D
84  if (dynamic_cast<Ieee8021dRelay *>(module) != nullptr)
85  return true;
86 #endif
87 
88 #ifdef WITH_IPv4
89  if (dynamic_cast<IPv4 *>(module) != nullptr)
90  return true;
91 #endif
92 
93  return false;
94 }
bool inet::visualizer::TransportRouteCanvasVisualizer::isPathEnd ( cModule *  module) const
overrideprotectedvirtual

Implements inet::visualizer::PathVisualizerBase.

62 {
63 #ifdef WITH_UDP
64  if (dynamic_cast<UDP *>(module) != nullptr)
65  return true;
66 #endif
67 
68 #ifdef WITH_TCP_INET
69  if (dynamic_cast<tcp::TCP *>(module) != nullptr)
70  return true;
71 #endif
72 
73  return false;
74 }
bool inet::visualizer::TransportRouteCanvasVisualizer::isPathStart ( cModule *  module) const
overrideprotectedvirtual

Implements inet::visualizer::PathVisualizerBase.

47 {
48 #ifdef WITH_UDP
49  if (dynamic_cast<UDP *>(module) != nullptr)
50  return true;
51 #endif
52 
53 #ifdef WITH_TCP_INET
54  if (dynamic_cast<tcp::TCP *>(module) != nullptr)
55  return true;
56 #endif
57 
58  return false;
59 }

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