TracingObstacleLossVisualizer

Package: inet.visualizer.common

compound module TracingObstacleLossVisualizer

Integrates canvas and osg obstacle loss visualizers into a single module.

See also: TracingObstacleLossCanvasVisualizer, TracingObstacleLossOsgVisualizer, TracingObstacleLossVisualizerBase, ITracingObstacleLossVisualizer

Usage diagram

Inheritance diagram

Parameters

Name

Type

Default value

Description

visualizationTargetModule

string

“^”

visualizationSubjectModule

string

“^”

Properties

Name

Value

Description

display

i=block/app

Unassigned submodule parameters

Name

Type

Default value

Description

canvasVisualizer.displayStringTextFormat

string

“”

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

canvasVisualizer.visualizationTargetModule

string

“^”

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

canvasVisualizer.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

canvasVisualizer.tags

string

“”

Tag added to each visualization for disambiguation in the runtime environment

canvasVisualizer.displayIntersections

bool

false

Display intersections of transmissions and physical objects, disabled by default

canvasVisualizer.intersectionLineColor

string

“red”

canvasVisualizer.intersectionLineStyle

string

“solid”

canvasVisualizer.intersectionLineWidth

double

1

canvasVisualizer.displayFaceNormalVectors

bool

false

Display face normal vectors of intersections, disabled by default

canvasVisualizer.faceNormalLineColor

string

“grey”

canvasVisualizer.faceNormalLineStyle

string

“solid”

canvasVisualizer.faceNormalLineWidth

double

1

canvasVisualizer.fadeOutMode

string

“realTime”

Specifies how inactive obstacle losses fade out

canvasVisualizer.fadeOutTime

double

1s

How quickly link breaks fade away, 1 second by default

canvasVisualizer.fadeOutAnimationSpeed

double

0

Animation speed while there are obstacle losses, value must be in the range (0, +inf)

canvasVisualizer.zIndex

double

0

Determines the drawing order of figures relative to other visualizers

osgVisualizer.displayStringTextFormat

string

“”

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

osgVisualizer.visualizationTargetModule

string

“^”

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

osgVisualizer.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

osgVisualizer.tags

string

“”

Tag added to each visualization for disambiguation in the runtime environment

osgVisualizer.displayIntersections

bool

false

Display intersections of transmissions and physical objects, disabled by default

osgVisualizer.intersectionLineColor

string

“red”

osgVisualizer.intersectionLineStyle

string

“solid”

osgVisualizer.intersectionLineWidth

double

1

osgVisualizer.displayFaceNormalVectors

bool

false

Display face normal vectors of intersections, disabled by default

osgVisualizer.faceNormalLineColor

string

“grey”

osgVisualizer.faceNormalLineStyle

string

“solid”

osgVisualizer.faceNormalLineWidth

double

1

osgVisualizer.fadeOutMode

string

“realTime”

Specifies how inactive obstacle losses fade out

osgVisualizer.fadeOutTime

double

1s

How quickly link breaks fade away, 1 second by default

osgVisualizer.fadeOutAnimationSpeed

double

0

Animation speed while there are obstacle losses, value must be in the range (0, +inf)

Source code

//
// Integrates canvas and osg obstacle loss visualizers into a single module.
//
// @see ~TracingObstacleLossCanvasVisualizer, ~TracingObstacleLossOsgVisualizer, ~TracingObstacleLossVisualizerBase, ~ITracingObstacleLossVisualizer
//
module TracingObstacleLossVisualizer like ITracingObstacleLossVisualizer
{
    parameters:
        @display("i=block/app");
        string visualizationTargetModule = default("^");
        string visualizationSubjectModule = default("^");
        *.visualizationTargetModule = default(absPath(this.visualizationTargetModule));
        *.visualizationSubjectModule = default(absPath(this.visualizationSubjectModule));
    submodules:
        canvasVisualizer: <default(firstAvailableOrEmpty("TracingObstacleLossCanvasVisualizer"))> like ITracingObstacleLossVisualizer if typename != "" {
            parameters:
                @display("p=100,100");
        }
        osgVisualizer: <default(firstAvailableOrEmpty("TracingObstacleLossOsgVisualizer"))> like ITracingObstacleLossVisualizer if typename != "" {
            parameters:
                @display("p=100,200");
        }
}

File: src/inet/visualizer/common/TracingObstacleLossVisualizer.ned