NetworkNodeVisualizer¶
Package: inet.visualizer.common
compound module NetworkNodeVisualizer
Integrates canvas and osg node visualizers into a single module.
See also: NetworkNodeCanvasVisualizer, NetworkNodeOsgVisualizer, NetworkNodeVisualizerBase, INetworkNodeVisualizer
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.nodeFilter |
string |
“*” |
Determines which network nodes are displayed. All nodes are displayed by default. |
canvasVisualizer.annotationSpacing |
double |
4 |
|
canvasVisualizer.placementPenalty |
double |
10 |
|
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.nodeFilter |
string |
“*” |
Determines which network nodes are displayed. All nodes are displayed by default. |
osgVisualizer.annotationSpacing |
double |
4 |
|
osgVisualizer.placementPenalty |
double |
10 |
|
osgVisualizer.displayModuleName |
bool |
true |
Display network node name, enabled by default |
Source code¶
//
// Integrates canvas and osg node visualizers into a single module.
//
// @see ~NetworkNodeCanvasVisualizer, ~NetworkNodeOsgVisualizer, ~NetworkNodeVisualizerBase, ~INetworkNodeVisualizer
//
module NetworkNodeVisualizer like INetworkNodeVisualizer
{
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("NetworkNodeCanvasVisualizer"))> like INetworkNodeVisualizer if typename != "" {
parameters:
@display("p=100,100");
}
osgVisualizer: <default(firstAvailableOrEmpty("NetworkNodeOsgVisualizer"))> like INetworkNodeVisualizer if typename != "" {
parameters:
@display("p=100,200");
}
}