PhysicalEnvironmentOsgVisualizer¶
Package: inet.visualizer.osg.environment
simple module PhysicalEnvironmentOsgVisualizer
Visualizes a physical environment on a 3D osg scene. It displays the physical objects present in the physical environment. The visualizer considers all object properties that affect appearance such as position, orientation, shape, colors, opacity, etc.
See also: PhysicalEnvironmentOsgVisualizer, PhysicalEnvironmentVisualizer, PhysicalEnvironmentVisualizerBase, IPhysicalEnvironmentVisualizer
Usage diagram¶
Inheritance diagram¶
Used in compound modules¶
Name |
Type |
Description |
|---|---|---|
compound module |
Integrates canvas and OSG physical environment visualizers into a single module. |
|
compound module |
Integrates all osg visualizers into a single module. It supports disabling any submodule visualizer by providing an empty string as its type. |
|
compound module |
Integrates all osg visualizers into a single module. It supports disabling any submodule visualizer by providing an empty string as its type. |
Extends¶
Name |
Type |
Description |
|---|---|---|
simple module |
Base module for physical environment visualizer simple modules. It provides the physical objects through the physical environment module for derived modules. The actual visualization of physical objects 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 |
physicalEnvironmentModule |
string |
“physicalEnvironment” |
The physical environment module that is displayed, refers to a top-level sub-module by default |
displayObjects |
bool |
true |
|
enableObjectOpacity |
bool |
true |
Display physical objects potentially transparently as specified in the opacity attribute (might cause z-fighting for transparent objects) |
Properties¶
Name |
Value |
Description |
|---|---|---|
class |
PhysicalEnvironmentOsgVisualizer |
|
display |
i=block/app |
Source code¶
//
// Visualizes a physical environment on a 3D osg scene. It displays
// the physical objects present in the physical environment. The visualizer
// considers all object properties that affect appearance such as position,
// orientation, shape, colors, opacity, etc.
//
// @see ~PhysicalEnvironmentOsgVisualizer, ~PhysicalEnvironmentVisualizer, ~PhysicalEnvironmentVisualizerBase, ~IPhysicalEnvironmentVisualizer
//
simple PhysicalEnvironmentOsgVisualizer extends PhysicalEnvironmentVisualizerBase like IPhysicalEnvironmentVisualizer
{
parameters:
@class(PhysicalEnvironmentOsgVisualizer);
bool enableObjectOpacity = default(true); // Display physical objects potentially transparently as specified in the opacity attribute (might cause z-fighting for transparent objects)
}
File: src/inet/visualizer/osg/environment/PhysicalEnvironmentOsgVisualizer.ned