SceneOsgVisualizerBase.ned

NED File src/inet/visualizer/osg/base/SceneOsgVisualizerBase.ned

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.

Source code

//
// Copyright (C) 2020 OpenSim Ltd.
//
// SPDX-License-Identifier: LGPL-3.0-or-later
//


package inet.visualizer.osg.base;

import inet.visualizer.base.SceneVisualizerBase;

//
// 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.
//
// @see ~SceneOsgVisualizer, ~SceneOsgEarthVisualizer, ~SceneVisualizerBase
//
simple SceneOsgVisualizerBase extends SceneVisualizerBase
{
    parameters:
        string cameraManipulator @enum("auto","trackball","overview","terrain","earth") = default("auto"); // type of camera manipulator
        double cameraDistanceFactor = default(5); // camera distance relative to the network bounding sphere radius
        double zNear @unit(m) = default(1m); // near distance for Z buffer optimization
        double zFar @unit(m) = default(100000m); // far distance for Z buffer optimization
        double fieldOfView @unit(deg) = default(30deg); // camera field of view
        string clearColor = default(""); // scene background color, not set by default

        bool displayScene = default(true); // display the scene, enabled by default
        string sceneColor = default("#A0E0A0"); // scene solid color if scene texture is not provided, gray by default
        double sceneOpacity = default(1.0); // scene opacity, opaque by default (not recommended to change)
        string sceneImage = default(""); // scene texture (repeated), no image by default
        double sceneImageSize @unit(m) = default(1m); // scene texture size
        bool sceneShading = default(true); // exponential shading for scene color, enabled by default

        @class(SceneOsgVisualizerBase);
}