INET Framework for OMNeT++/OMNEST
inet::visualizer Namespace Reference

Classes

class  AnimationPosition
 
class  AnimationSpeedInterpolator
 
class  ColorSet
 
class  DataLinkCanvasVisualizer
 
class  DataLinkOsgVisualizer
 
class  EnergyStorageCanvasVisualizer
 
class  EnergyStorageOsgVisualizer
 
class  EnergyStorageVisualizerBase
 
class  Ieee80211CanvasVisualizer
 
class  Ieee80211OsgVisualizer
 
class  Ieee80211VisualizerBase
 
class  InfoCanvasVisualizer
 
class  InfoOsgVisualizer
 
class  InfoVisualizerBase
 
class  InterfaceFilter
 This class provides a generic filter for interfaces. More...
 
class  InterfaceTableCanvasVisualizer
 
class  InterfaceTableOsgVisualizer
 
class  InterfaceTableVisualizerBase
 
class  LineManager
 
class  LinkBreakCanvasVisualizer
 
class  LinkBreakOsgVisualizer
 
class  LinkBreakVisualizerBase
 
class  LinkCanvasVisualizerBase
 
class  LinkOsgVisualizerBase
 
class  LinkVisualizerBase
 
class  MediumCanvasVisualizer
 
class  MediumOsgVisualizer
 
class  MediumVisualizerBase
 
class  MobilityCanvasVisualizer
 
class  MobilityOsgVisualizer
 
class  MobilityVisualizerBase
 
class  ModuleFilter
 This class provides a generic filter for modules. More...
 
class  NetworkConnectionCanvasVisualizer
 
class  NetworkConnectionOsgVisualizer
 
class  NetworkConnectionVisualizerBase
 
class  NetworkNodeCanvasVisualization
 
class  NetworkNodeCanvasVisualizer
 
class  NetworkNodeFilter
 This class provides a generic filter for network nodes. More...
 
class  NetworkNodeOsgVisualizer
 
class  NetworkNodeVisualizerBase
 
class  NetworkRouteCanvasVisualizer
 
class  NetworkRouteOsgVisualizer
 
class  PacketDropCanvasVisualizer
 
class  PacketDropOsgVisualizer
 
class  PacketDropVisualizerBase
 
class  PacketFilter
 This class provides a generic filter for packets. More...
 
class  PathCanvasVisualizerBase
 
class  PathOsgVisualizerBase
 
class  PathVisualizerBase
 
class  PhysicalEnvironmentCanvasVisualizer
 
class  PhysicalEnvironmentOsgVisualizer
 
class  PhysicalEnvironmentVisualizerBase
 
class  PhysicalLinkCanvasVisualizer
 
class  PhysicalLinkOsgVisualizer
 
class  PortFilter
 This class provides a generic filter for ports. More...
 
class  QueueCanvasVisualizer
 
class  QueueFilter
 This class provides a generic filter for queues. More...
 
class  QueueOsgVisualizer
 
class  QueueVisualizerBase
 
class  RadioCanvasVisualizer
 
class  RadioOsgVisualizer
 
class  RadioVisualizerBase
 
class  RoutingTableCanvasVisualizer
 
class  RoutingTableOsgVisualizer
 
class  RoutingTableVisualizerBase
 
class  SceneCanvasVisualizer
 
class  SceneOsgEarthVisualizer
 
class  SceneOsgVisualizer
 
class  SceneOsgVisualizerBase
 
class  SceneVisualizerBase
 
class  StatisticCanvasVisualizer
 
class  StatisticOsgVisualizer
 
class  StatisticVisualizerBase
 
class  StringFormat
 
class  TracingObstacleLossCanvasVisualizer
 
class  TracingObstacleLossOsgVisualizer
 
class  TracingObstacleLossVisualizerBase
 
class  TransportConnectionCanvasVisualizer
 
class  TransportConnectionOsgVisualizer
 
class  TransportConnectionVisualizerBase
 
class  TransportRouteCanvasVisualizer
 
class  TransportRouteOsgVisualizer
 
class  VisualizerBase
 

Functions

bool isPointOnSegment (const LineSegment &segment, const Coord &point)
 
bool isEmpty (const char *s)
 
bool isNotEmpty (const char *s)
 
 Define_Module (InfoCanvasVisualizer)
 
 Define_Module (InfoOsgVisualizer)
 
 Define_Module (PacketDropCanvasVisualizer)
 
 Define_Module (PacketDropOsgVisualizer)
 
 Define_Module (QueueCanvasVisualizer)
 
 Define_Module (QueueOsgVisualizer)
 
 Define_Module (StatisticCanvasVisualizer)
 
 Define_Module (StatisticOsgVisualizer)
 
 Define_Module (PhysicalEnvironmentCanvasVisualizer)
 
 Define_Module (PhysicalEnvironmentOsgVisualizer)
 
 Define_Module (DataLinkCanvasVisualizer)
 
 Define_Module (DataLinkOsgVisualizer)
 
 Define_Module (Ieee80211CanvasVisualizer)
 
 Define_Module (Ieee80211OsgVisualizer)
 
 Define_Module (InterfaceTableCanvasVisualizer)
 
 Define_Module (InterfaceTableOsgVisualizer)
 
 Define_Module (LinkBreakCanvasVisualizer)
 
 Define_Module (LinkBreakOsgVisualizer)
 
 Define_Module (MobilityCanvasVisualizer)
 
 Define_Module (MobilityOsgVisualizer)
 
 Define_Module (NetworkRouteCanvasVisualizer)
 
 Define_Module (NetworkRouteOsgVisualizer)
 
 Define_Module (RoutingTableCanvasVisualizer)
 
 Define_Module (RoutingTableOsgVisualizer)
 
 Define_Module (MediumCanvasVisualizer)
 
 Define_Module (MediumOsgVisualizer)
 
 Define_Module (PhysicalLinkCanvasVisualizer)
 
 Define_Module (PhysicalLinkOsgVisualizer)
 
 Define_Module (RadioCanvasVisualizer)
 
 Define_Module (RadioOsgVisualizer)
 
 Define_Module (TracingObstacleLossCanvasVisualizer)
 
 Define_Module (TracingObstacleLossOsgVisualizer)
 
 Define_Module (EnergyStorageCanvasVisualizer)
 
 Define_Module (EnergyStorageOsgVisualizer)
 
 Define_Module (NetworkConnectionCanvasVisualizer)
 
 Define_Module (NetworkConnectionOsgVisualizer)
 
 Define_Module (NetworkNodeCanvasVisualizer)
 
 Define_Module (NetworkNodeOsgVisualizer)
 
 Define_Module (SceneCanvasVisualizer)
 
 Define_Module (SceneOsgEarthVisualizer)
 
 Define_Module (SceneOsgVisualizer)
 
 Define_Module (TransportConnectionCanvasVisualizer)
 
 Define_Module (TransportConnectionOsgVisualizer)
 
 Define_Module (TransportRouteCanvasVisualizer)
 
 Define_Module (TransportRouteOsgVisualizer)
 
Displacement parseDisplacement (const char *s)
 

Function Documentation

inet::visualizer::Define_Module ( RoutingTableCanvasVisualizer  )
inet::visualizer::Define_Module ( Ieee80211CanvasVisualizer  )
inet::visualizer::Define_Module ( PhysicalLinkCanvasVisualizer  )
inet::visualizer::Define_Module ( PhysicalLinkOsgVisualizer  )
inet::visualizer::Define_Module ( RadioCanvasVisualizer  )
inet::visualizer::Define_Module ( RadioOsgVisualizer  )
inet::visualizer::Define_Module ( TracingObstacleLossCanvasVisualizer  )
inet::visualizer::Define_Module ( EnergyStorageCanvasVisualizer  )
inet::visualizer::Define_Module ( EnergyStorageOsgVisualizer  )
inet::visualizer::Define_Module ( PacketDropCanvasVisualizer  )
inet::visualizer::Define_Module ( QueueCanvasVisualizer  )
inet::visualizer::Define_Module ( NetworkConnectionCanvasVisualizer  )
inet::visualizer::Define_Module ( QueueOsgVisualizer  )
inet::visualizer::Define_Module ( LinkBreakCanvasVisualizer  )
inet::visualizer::Define_Module ( MobilityCanvasVisualizer  )
inet::visualizer::Define_Module ( InfoCanvasVisualizer  )
inet::visualizer::Define_Module ( StatisticCanvasVisualizer  )
inet::visualizer::Define_Module ( InfoOsgVisualizer  )
inet::visualizer::Define_Module ( NetworkNodeCanvasVisualizer  )
inet::visualizer::Define_Module ( SceneCanvasVisualizer  )
inet::visualizer::Define_Module ( TransportConnectionCanvasVisualizer  )
inet::visualizer::Define_Module ( TransportConnectionOsgVisualizer  )
inet::visualizer::Define_Module ( DataLinkOsgVisualizer  )
inet::visualizer::Define_Module ( DataLinkCanvasVisualizer  )
inet::visualizer::Define_Module ( InterfaceTableCanvasVisualizer  )
inet::visualizer::Define_Module ( InterfaceTableOsgVisualizer  )
inet::visualizer::Define_Module ( StatisticOsgVisualizer  )
inet::visualizer::Define_Module ( PacketDropOsgVisualizer  )
inet::visualizer::Define_Module ( NetworkNodeOsgVisualizer  )
inet::visualizer::Define_Module ( PhysicalEnvironmentCanvasVisualizer  )
inet::visualizer::Define_Module ( Ieee80211OsgVisualizer  )
inet::visualizer::Define_Module ( RoutingTableOsgVisualizer  )
inet::visualizer::Define_Module ( LinkBreakOsgVisualizer  )
inet::visualizer::Define_Module ( MediumCanvasVisualizer  )
inet::visualizer::Define_Module ( SceneOsgVisualizer  )
inet::visualizer::Define_Module ( NetworkConnectionOsgVisualizer  )
inet::visualizer::Define_Module ( TracingObstacleLossOsgVisualizer  )
inet::visualizer::Define_Module ( MobilityOsgVisualizer  )
inet::visualizer::Define_Module ( NetworkRouteCanvasVisualizer  )
inet::visualizer::Define_Module ( NetworkRouteOsgVisualizer  )
inet::visualizer::Define_Module ( SceneOsgEarthVisualizer  )
inet::visualizer::Define_Module ( PhysicalEnvironmentOsgVisualizer  )
inet::visualizer::Define_Module ( MediumOsgVisualizer  )
inet::visualizer::Define_Module ( TransportRouteOsgVisualizer  )
inet::visualizer::Define_Module ( TransportRouteCanvasVisualizer  )
bool inet::visualizer::isEmpty ( const char *  s)
inline

Referenced by inet::visualizer::PathCanvasVisualizerBase::createPathVisualization(), and inet::visualizer::PathVisualizerBase::initialize().

35 { return !s || !s[0]; }
value< double, units::s > s
Definition: Units.h:1049
bool inet::visualizer::isNotEmpty ( const char *  s)
inline
36 { return s && s[0]; }
value< double, units::s > s
Definition: Units.h:1049
bool inet::visualizer::isPointOnSegment ( const LineSegment segment,
const Coord point 
)

Referenced by inet::visualizer::PathCanvasVisualizerBase::refreshDisplay().

55 {
56  auto& p1 = segment.getPoint1();
57  auto& p2 = segment.getPoint2();
58  return (std::min(p1.x, p2.x) <= point.x && point.x <= std::max(p1.x, p2.x) &&
59  std::min(p1.y, p2.y) <= point.y && point.y <= std::max(p1.y, p2.y));
60 }
double min(const double a, const double b)
Returns the minimum of a and b.
Definition: SCTPAssociation.h:270
double max(double a, double b)
Returns the greater of the given parameters.
Definition: INETMath.h:161
Displacement inet::visualizer::parseDisplacement ( const char *  s)

Referenced by inet::visualizer::EnergyStorageVisualizerBase::initialize(), inet::visualizer::Ieee80211VisualizerBase::initialize(), inet::visualizer::RadioVisualizerBase::initialize(), inet::visualizer::QueueVisualizerBase::initialize(), inet::visualizer::TransportConnectionVisualizerBase::initialize(), inet::visualizer::InfoVisualizerBase::initialize(), inet::visualizer::InterfaceTableVisualizerBase::initialize(), inet::visualizer::MediumVisualizerBase::initialize(), and inet::visualizer::StatisticVisualizerBase::initialize().

25 {
26  int displacement = DISPLACEMENT_NONE;
27  cStringTokenizer tokenizer(s);
28  while (tokenizer.hasMoreTokens()) {
29  auto token = tokenizer.nextToken();
30  if (!strcmp("left", token))
32  else if (!strcmp("right", token))
34  else if (!strcmp("top", token))
36  else if (!strcmp("bottom", token))
38  else if (!strcmp("topLeft", token))
39  displacement |= DISPLACEMENT_TOP_LEFT;
40  else if (!strcmp("topCenter", token))
41  displacement |= DISPLACEMENT_TOP_CENTER;
42  else if (!strcmp("topRight", token))
43  displacement |= DISPLACEMENT_TOP_RIGHT;
44  else if (!strcmp("centerLeft", token))
45  displacement |= DISPLACEMENT_CENTER_LEFT;
46  else if (!strcmp("centerRight", token))
47  displacement |= DISPLACEMENT_CENTER_RIGHT;
48  else if (!strcmp("bottomLeft", token))
49  displacement |= DISPLACEMENT_BOTTOM_LEFT;
50  else if (!strcmp("bottomCenter", token))
51  displacement |= DISPLACEMENT_BOTTOM_CENTER;
52  else if (!strcmp("bottomRight", token))
53  displacement |= DISPLACEMENT_BOTTOM_RIGHT;
54  else if (!strcmp("any", token))
55  displacement |= DISPLACEMENT_ANY;
56  else
57  throw cRuntimeError("Unknown displacement: %s", displacement);
58  }
59  return (Displacement)displacement;
60 }
DISPLACEMENT_BOTTOM_LEFT
Definition: Displacement.h:35
DISPLACEMENT_NONE
Definition: Displacement.h:29
DISPLACEMENT_BOTTOM_RIGHT
Definition: Displacement.h:37
DISPLACEMENT_TOP_CENTER
Definition: Displacement.h:31
DISPLACEMENT_TOP_LEFT
Definition: Displacement.h:30
DISPLACEMENT_CENTER_LEFT
Definition: Displacement.h:33
value< double, units::s > s
Definition: Units.h:1049
DISPLACEMENT_CENTER_RIGHT
Definition: Displacement.h:34
DISPLACEMENT_TOP_RIGHT
Definition: Displacement.h:32
DISPLACEMENT_BOTTOM_CENTER
Definition: Displacement.h:36