GeographicCoordinateSystem.ned
NED File src/inet/common/geometry/common/GeographicCoordinateSystem.ned
| Name | Type | Description |
|---|---|---|
| IGeographicCoordinateSystem | module interface |
Interface for geographic coordinate systems. A geographic coordinate system maps scene coordinates to geographic coordinates, and vice versa. |
| SimpleGeographicCoordinateSystem | simple module |
Provides a very simple and less accurate geographic coordinate system without using OSG. It doesn't support orientation. |
| OsgGeographicCoordinateSystem | simple module |
Provides an accurate geographic coordinate system using the built-in OSG API. |
Source code
// // Copyright (C) 2020 OpenSim Ltd. // // SPDX-License-Identifier: LGPL-3.0-or-later // package inet.common.geometry.common; import inet.common.SimpleModule; // // Interface for geographic coordinate systems. A geographic // coordinate system maps scene coordinates to geographic coordinates, and // vice versa. // moduleinterface IGeographicCoordinateSystem { parameters: @display("i=block/table2"); } // // Provides a very simple and less accurate geographic coordinate // system without using OSG. It doesn't support orientation. // simple SimpleGeographicCoordinateSystem extends SimpleModule like IGeographicCoordinateSystem { parameters: @class(SimpleGeographicCoordinateSystem); @display("i=block/table2"); double sceneLatitude @unit(deg); // Latitude coordinate of the scene origin double sceneLongitude @unit(deg); // Longitude coordinate of the scene origin double sceneAltitude @unit(m) = default(0m); // Altitude coordinate of the scene origin } // // Provides an accurate geographic coordinate system using the // built-in OSG API. // simple OsgGeographicCoordinateSystem extends SimpleModule like IGeographicCoordinateSystem { parameters: @class(OsgGeographicCoordinateSystem); @display("i=block/table2"); double sceneLatitude @unit(deg); // Latitude coordinate of the scene origin double sceneLongitude @unit(deg); // Longitude coordinate of the scene origin double sceneAltitude @unit(m) = default(0m); // Altitude coordinate of the scene origin double sceneHeading @unit(deg) = default(90deg); // Geographic heading of the scene (0deg means X axis points north, 90deg means X axis points east) double sceneElevation @unit(deg) = default(0deg); // Geographic elevation of the scene (0deg means X axis is horizontal, positive rotates X axis towards the sky) double sceneBank @unit(deg) = default(0deg); // Bank of the scene }