Package: inet.visualizer.osg.mobility
MobilityOsgVisualizer
simple moduleVisualizes multiple mobilities on a 3D osg scene. It moves the visual representation according to their mobility model. It also displays recent movement as a polyline, current velocity vector, and current orientation.
<b>See also:</b> ~MobilityCanvasVisualizer, ~MobilityVisualizer, ~MobilityVisualizerBase, ~IMobilityVisualizer
Inheritance diagram
The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.
Extends
| Name | Type | Description |
|---|---|---|
| MobilityVisualizerBase | simple module |
Base module for mobility visualizer simple modules. It subscribes to the mobilityStateChanged signal in the module determined by the visualizationSubjectModule parameter. The actual visualization of mobility 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 |
| networkNodeVisualizerModule | string | "^.networkNodeVisualizer" |
The network node visualizer module, refers to a sibling submodule by default |
| displayMobility | bool | true |
Display mobility, enabled by default |
| animationSpeed | double | 0 |
Animation speed while objects are moving around, value must be in the range (0, +inf) |
| moduleFilter | string | "**.mobility" |
Which mobilities are considered, matches all mobilities by default |
| displayPositions | bool | false |
Display a circle indicating the current position, disabled by default |
| positionCircleRadius | double | 4 |
Radius of the circle |
| positionCircleLineWidth | double | 1 |
Line width of the circle |
| positionCircleLineColor | string | "dark" |
Position circle line color is a list of colors or a color group name (e.g. dark, light), a set of dark colors by default |
| positionCircleFillColor | string | "dark" |
Position circle fill color is a list of colors or a color group name (e.g. dark, light), a set of dark colors by default |
| displayOrientations | bool | false |
Display a pie indicating the current orientation, disabled by default |
| orientationPieRadius | double | 32 |
Radius of the pie |
| orientationPieSize | double | 0.2 |
Relative size of the pie compared to the full circle |
| orientationPieOpacity | double | 0.25 |
Opacity of the pie |
| orientationLineColor | string | "black" |
Orientation line color, black by default |
| orientationLineStyle | string | "solid" |
Orientation line style (solid, dashed, dotted) |
| orientationLineWidth | double | 1 |
Orientation line width |
| orientationFillColor | string | "blue" |
Orientation fill color, blue by default |
| displayVelocities | bool | false |
Display an arrow indicating the current velocity, disabled by default |
| velocityArrowScale | double | 1 |
Velocity scaling factor to pixels |
| velocityLineColor | string | "black" |
Velocity line color, black by default |
| velocityLineStyle | string | "solid" |
Velocity line style (solid, dashed, dotted) |
| velocityLineWidth | double | 1 |
Velocity line width |
| displayMovementTrails | bool | false |
Display a line along the recent path of mobilities, disabled by default |
| movementTrailLineColor | string | "dark" |
Movement trail line color is a list of colors or a color group name (e.g. dark, light), a set of dark colors by default |
| movementTrailLineStyle | string | "solid" |
Movement trail line style (solid, dashed, dotted) |
| movementTrailLineWidth | double | 1 |
Movement trail line width |
| trailLength | int | 100 |
Number of sections in the trail |
Properties
| Name | Value | Description |
|---|---|---|
| class | MobilityOsgVisualizer | |
| display | i=block/app |
Source code
// // Visualizes multiple mobilities on a 3D osg scene. It moves the // visual representation according to their mobility model. It also displays // recent movement as a polyline, current velocity vector, and current orientation. // // @see ~MobilityCanvasVisualizer, ~MobilityVisualizer, ~MobilityVisualizerBase, ~IMobilityVisualizer // simple MobilityOsgVisualizer extends MobilityVisualizerBase like IMobilityVisualizer { parameters: @class(MobilityOsgVisualizer); }File: src/inet/visualizer/osg/mobility/MobilityOsgVisualizer.ned