SceneOsgEarthVisualizer

Package: inet.visualizer.osg.scene

SceneOsgEarthVisualizer

simple module

This module visualizes the scene using osgEarth. It displays a 3D osg map of some part of the earth as an integrated part of the 3D visualization of the simulation. The map is loaded from an external resource specified by the mapFile parameter. The scene is placed on the map according to the coordinate system module.

See also: SceneCanvasVisualizer, SceneVisualizer, SceneVisualizerBase, ISceneVisualizer

See also: IGeographicCoordinateSystem, SimpleGeographicCoordinateSystem, OsgGeographicCoordinateSystem

Inheritance diagram

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

Extends

Name Type Description
SceneOsgVisualizerBase simple module

This is a base module for scene visualizer simple modules on a 3D osg scene. It displays the scene either as a filled rectangle or as an image.

Parameters

Name Type Default value Description
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

physicalEnvironmentModule string "physicalEnvironment"

the physical environment module, refers to a top level submodule by default

networkNodeVisualizerModule string "^.networkNodeVisualizer"

the network node visualizer, refers to a sibling submodule by default

axisLength double nan m

length of x, y, and z axes, no axis by default

animationSpeed double 0

always active animation speed independent of any visualization, value must be in the range (0, +inf)

sceneMinX double nan m

lower bound of x coordinates in scene

sceneMinY double nan m

lower bound of y coordinates in scene

sceneMinZ double nan m

lower bound of z coordinates in scene

sceneMaxX double nan m

upper bound of x coordinates in scene

sceneMaxY double nan m

upper bound of y coordinates in scene

sceneMaxZ double nan m

upper bound of z coordinates in scene

cameraManipulator string "auto"

type of camera manipulator

cameraDistanceFactor double 5

camera distance relative to the network bounding sphere radius

zNear double 1m

near distance for Z buffer optimization

zFar double 100000m

far distance for Z buffer optimization

fieldOfView double 30deg

camera field of view

clearColor string ""

scene background color, not set by default

displayScene bool true

display the scene, enabled by default

sceneColor string "#A0E0A0"

scene solid color if scene texture is not provided, gray by default

sceneOpacity double 1.0

scene opacity, opaque by default (not recommended to change)

sceneImage string ""

scene texture (repeated), no image by default

sceneImageSize double 1m

scene texture size

sceneShading bool true

exponential shading for scene color, enabled by default

coordinateSystemModule string "coordinateSystem"

the geographic coordinate system, refers to a top level module by default

mapFile string

map file, e.g. some part of the earth, mandatory parameter

Properties

Name Value Description
class SceneOsgEarthVisualizer
display i=block/app

Source code

//
// This module visualizes the scene using osgEarth. It displays a 3D osg map of
// some part of the earth as an integrated part of the 3D visualization of the
// simulation. The map is loaded from an external resource specified by the
// mapFile parameter. The scene is placed on the map according to the
// coordinate system module.
//
// @see ~SceneCanvasVisualizer, ~SceneVisualizer, ~SceneVisualizerBase, ~ISceneVisualizer
// @see ~IGeographicCoordinateSystem, ~SimpleGeographicCoordinateSystem, ~OsgGeographicCoordinateSystem
//
simple SceneOsgEarthVisualizer extends SceneOsgVisualizerBase like ISceneVisualizer
{
    parameters:
        @class(SceneOsgEarthVisualizer);
        string coordinateSystemModule = default("coordinateSystem"); // the geographic coordinate system, refers to a top level module by default
        string mapFile; // map file, e.g. some part of the earth, mandatory parameter
}

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