NetworkNodeVisualizerBase

Package: inet.visualizer.base

NetworkNodeVisualizerBase

simple module

This is a base module for node visualizer simple modules. The actual visualization of network nodes is done in derived modules.

See also: NetworkNodeCanvasVisualizer, NetworkNodeOsgVisualizer, INetworkNodeVisualizer, VisualizerBase

Inheritance diagram

The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.

Known subclasses

Name Type Description
NetworkNodeCanvasVisualizer simple module

This module visualizes multiple network nodes on a 2D canvas. It maintains a NetworkNodeCanvasVisualization figure for each node in the network which can be annotated by other visualizers.

NetworkNodeOsgVisualizer simple module

This module visualizes multiple network nodes on a 3D osg scene. The visual representation is either a 3D external model or a 2D icon that is rotated automatically towards the camera. The 3D external model is specified in the osgModel module parameter of the network node. The 2D icon is the image specified in the display string of the network node. The visualizer maintains a NetworkNodeOsgVisualization instance for each network node which can be annotated by other visualizers.

Extends

Name Type Description
VisualizerBase simple module

This is a base module for visualizer simple modules. It simply provides the visualization target module for derived modules.

Parameters

Name Type Default value Description
visualizationTargetModule string "^"

module path relative to the visualizer which determines where the visualization should appear in the user interface, parent module by default

visualizationSubjectModule string "^"

module path relative to the visualizer which determines what part of the simulation model the visualizer displays in the user interface, parent module by default

tags string ""

tag added to each visualization for disambiguation in the runtime environment

nodeFilter string "*"

determines which network nodes are displayed, all nodes by default

annotationSpacing double 4
placementPenalty double 10

Properties

Name Value Description
class NetworkNodeVisualizerBase
display i=block/app

Source code

//
// This is a base module for node visualizer simple modules. The actual
// visualization of network nodes is done in derived modules.
//
// @see ~NetworkNodeCanvasVisualizer, ~NetworkNodeOsgVisualizer, ~INetworkNodeVisualizer, ~VisualizerBase
//
simple NetworkNodeVisualizerBase extends VisualizerBase
{
    parameters:
        string nodeFilter @mutable = default("*"); // determines which network nodes are displayed, all nodes by default

        double annotationSpacing = default(4);
        double placementPenalty = default(10);

        @class(NetworkNodeVisualizerBase);
}

File: src/inet/visualizer/base/NetworkNodeVisualizerBase.ned