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

#include <TransportRouteOsgVisualizer.h>

Inheritance diagram for inet::visualizer::TransportRouteOsgVisualizer:
inet::visualizer::PathOsgVisualizerBase 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
 
- Protected Member Functions inherited from inet::visualizer::PathOsgVisualizerBase
virtual void initialize (int stage) override
 
virtual const PathVisualizationcreatePathVisualization (const std::vector< int > &path, cPacket *packet) const override
 
virtual void setAlpha (const PathVisualization *pathVisualization, double alpha) const override
 
- Protected Member Functions inherited from inet::visualizer::PathVisualizerBase
virtual void handleParameterChange (const char *name) override
 
virtual void refreshDisplay () const override
 
virtual void subscribe ()
 
virtual void unsubscribe ()
 
virtual const PathVisualizationgetPathVisualization (const std::vector< int > &path)
 
virtual void addPathVisualization (const PathVisualization *pathVisualization)
 
virtual void removePathVisualization (const PathVisualization *pathVisualization)
 
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 refreshPathVisualization (const PathVisualization *pathVisualization, cPacket *packet)
 
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::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

bool inet::visualizer::TransportRouteOsgVisualizer::isPathElement ( cModule *  module) const
overrideprotectedvirtual

Implements inet::visualizer::PathVisualizerBase.

73 {
74 #ifdef WITH_ETHERNET
75  if (dynamic_cast<MACRelayUnit *>(module) != nullptr)
76  return true;
77 #endif
78 
79 #ifdef WITH_IEEE8021D
80  if (dynamic_cast<Ieee8021dRelay *>(module) != nullptr)
81  return true;
82 #endif
83 
84  return false;
85 }
bool inet::visualizer::TransportRouteOsgVisualizer::isPathEnd ( cModule *  module) const
overrideprotectedvirtual

Implements inet::visualizer::PathVisualizerBase.

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

Implements inet::visualizer::PathVisualizerBase.

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

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