NetworkNodeVisualizerBase

Package: inet.visualizer.base

simple module NetworkNodeVisualizerBase

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

See also: NetworkNodeCanvasVisualizer, NetworkNodeOsgVisualizer, INetworkNodeVisualizer, VisualizerBase

inet.visualizer.base.NetworkNodeVisualizerBaseNetworkNodeVisualizerBasesimple

Inheritance diagram

Known subclasses

Name

Type

Description

NetworkNodeCanvasVisualizer

simple 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

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

Base module for visualizer simple modules. It simply provides the visualization target module for derived modules.

Parameters

Name

Type

Default value

Description

displayStringTextFormat

string

“”

Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information

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 are displayed by default.

annotationSpacing

double

4

placementPenalty

double

10

Properties

Name

Value

Description

class

NetworkNodeVisualizerBase

display

i=block/app

Source code

//
// 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 are displayed by default.

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

        @class(NetworkNodeVisualizerBase);
}

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