NetworkNodeOsgVisualizer

Package: inet.visualizer.osg.scene

simple module NetworkNodeOsgVisualizer

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.

See also: NetworkNodeCanvasVisualizer, NetworkNodeVisualizer, NetworkNodeVisualizerBase, INetworkNodeVisualizer

inet.visualizer.osg.scene.NetworkNodeOsgVisualizerNetworkNodeOsgVisualizersimple

Usage diagram

Inheritance diagram

Used in compound modules

Name

Type

Description

NetworkNodeVisualizer

compound module

Integrates canvas and osg node visualizers into a single module.

IntegratedMultiOsgVisualizer

compound module

Integrates all osg visualizers into a single module. It supports disabling any submodule visualizer by providing an empty string as its type.

IntegratedOsgVisualizer

compound module

Integrates all osg visualizers into a single module. It supports disabling any submodule visualizer by providing an empty string as its type.

Extends

Name

Type

Description

NetworkNodeVisualizerBase

simple module

Base module for node visualizer simple modules. The actual visualization of network nodes is done in 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

displayModuleName

bool

true

Display network node name, enabled by default

Properties

Name

Value

Description

class

NetworkNodeOsgVisualizer

display

i=block/app

Source code

//
// 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.
//
// @see ~NetworkNodeCanvasVisualizer, ~NetworkNodeVisualizer, ~NetworkNodeVisualizerBase, ~INetworkNodeVisualizer
//
simple NetworkNodeOsgVisualizer extends NetworkNodeVisualizerBase like INetworkNodeVisualizer
{
    parameters:
        @class(NetworkNodeOsgVisualizer);
        bool displayModuleName = default(true); // Display network node name, enabled by default
}

File: src/inet/visualizer/osg/scene/NetworkNodeOsgVisualizer.ned