Simple Module NetworkNodeOsgVisualizer

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

C++ definition

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.

See also: NetworkNodeCanvasVisualizer, NetworkNodeVisualizer, NetworkNodeVisualizerBase, INetworkNodeVisualizer

NetworkNodeOsgVisualizer

Usage diagram:

The following diagram shows usage relationships between types. Unresolved types are missing from the diagram.

Inheritance diagram:

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

Extends:

Name Type Description
NetworkNodeVisualizerBase simple module

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

Parameters:

Name Type Default value Description
visualizerTargetModule string ""

module path relative to the visualizer where the visualization should appear in the user interface, root 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
displacementPenalty double 10
displayModuleName bool true

display network node name, enabled by default

Properties:

Name Value Description
class NetworkNodeOsgVisualizer
display i=block/app_s

Source code:

//
// 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.
//
// @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
}