NED File src/inet/common/geometry/common/GeographicCoordinateSystem.ned
Name | Type | Description |
---|---|---|
IGeographicCoordinateSystem | module interface |
This module interface is used by geographic coordinate systems. A geographic coordinate system maps scene coordinates to geographic coordinates, and vice versa. |
SimpleGeographicCoordinateSystem | simple module |
This module provides a very simple and less accurate geographic coordinate system without using OSG. It doesn't support orientation. |
OsgGeographicCoordinateSystem | simple module |
This module provides an accurate geographic coordinate system using the built-in OSG API. |
Source code
// // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see http://www.gnu.org/licenses/. // package inet.common.geometry.common; // // This module interface is used by geographic coordinate systems. A geographic // coordinate system maps scene coordinates to geographic coordinates, and // vice versa. // moduleinterface IGeographicCoordinateSystem { parameters: @display("i=block/table2"); } // // This module provides a very simple and less accurate geographic coordinate // system without using OSG. It doesn't support orientation. // simple SimpleGeographicCoordinateSystem like IGeographicCoordinateSystem { parameters: @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 } // // This module provides an accurate geographic coordinate system using the // built-in OSG API. // simple OsgGeographicCoordinateSystem like IGeographicCoordinateSystem { parameters: @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 }