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

#include <NetworkRouteCanvasVisualizer.h>

Inheritance diagram for inet::visualizer::NetworkRouteCanvasVisualizer:
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::NetworkRouteCanvasVisualizer::createPathVisualization ( const std::vector< int > &  path,
cPacket *  packet 
) const
overrideprotectedvirtual

Reimplemented from inet::visualizer::PathCanvasVisualizerBase.

79 {
80  auto pathVisualization = static_cast<const PathCanvasVisualization *>(PathCanvasVisualizerBase::createPathVisualization(path, packet));
81  pathVisualization->figure->setTags((std::string("network_route ") + tags).c_str());
82  pathVisualization->figure->setTooltip("This polyline arrow represents a recently active network route between two network nodes");
83  pathVisualization->shiftPriority = 3;
84  return pathVisualization;
85 }
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::NetworkRouteCanvasVisualizer::isPathElement ( cModule *  module) const
overrideprotectedvirtual

Implements inet::visualizer::PathVisualizerBase.

59 {
60 #ifdef WITH_ETHERNET
61  if (dynamic_cast<MACRelayUnit *>(module) != nullptr)
62  return true;
63 #endif
64 
65 #ifdef WITH_IEEE8021D
66  if (dynamic_cast<Ieee8021dRelay *>(module) != nullptr)
67  return true;
68 #endif
69 
70 #ifdef WITH_IPv4
71  if (dynamic_cast<IPv4 *>(module) != nullptr)
72  return true;
73 #endif
74 
75  return false;
76 }
bool inet::visualizer::NetworkRouteCanvasVisualizer::isPathEnd ( cModule *  module) const
overrideprotectedvirtual

Implements inet::visualizer::PathVisualizerBase.

49 {
50 #ifdef WITH_IPv4
51  if (dynamic_cast<IPv4 *>(module) != nullptr)
52  return true;
53 #endif
54 
55  return false;
56 }
bool inet::visualizer::NetworkRouteCanvasVisualizer::isPathStart ( cModule *  module) const
overrideprotectedvirtual

Implements inet::visualizer::PathVisualizerBase.

39 {
40 #ifdef WITH_IPv4
41  if (dynamic_cast<IPv4 *>(module) != nullptr)
42  return true;
43 #endif
44 
45  return false;
46 }

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