|
WSF
|
#include "WsfRouteNetwork.hpp"#include <algorithm>#include <cassert>#include <cmath>#include <fstream>#include <functional>#include <limits>#include <queue>#include <sstream>#include "UtCast.hpp"#include "UtEllipsoidalEarth.hpp"#include "UtInput.hpp"#include "UtInputBlock.hpp"#include "UtLatPos.hpp"#include "UtLog.hpp"#include "UtLonPos.hpp"#include "UtMath.hpp"#include "UtMemory.hpp"#include "UtSphericalEarth.hpp"#include "UtVec2.hpp"#include "UtWallClock.hpp"#include "WsfGeoPoint.hpp"#include "WsfRoute.hpp"#include "WsfRouteNetworkTypes.hpp"#include "WsfRouteTypes.hpp"#include "WsfScenario.hpp"#include "script/WsfScriptContext.hpp"#include "script/WsfScriptObjectClass.hpp"
Functions | |
| UT_DEFINE_SCRIPT_METHOD (WsfScriptRouteNetworkClass, WsfRouteNetwork, FindRouteNetwork, 1, "WsfRouteNetwork", "string") | |
| WsfRouteNetwork network = FindRouteNetwork(string aNetworkName);. | |
| UT_DEFINE_SCRIPT_METHOD (WsfScriptRouteNetworkClass, WsfRouteNetwork, Routes, 0, "Array<WsfRoute>", "") | |
| Array<WsfRoute> routes = network.Routes();. | |
| UT_DEFINE_SCRIPT_METHOD (WsfScriptRouteNetworkClass, WsfRouteNetwork, GeneratePathOffRouteToRoute_1, 4, "WsfRoute", "double, double, double, double") | |
| UT_DEFINE_SCRIPT_METHOD (WsfScriptRouteNetworkClass, WsfRouteNetwork, GeneratePathOffRouteToRoute_2, 2, "WsfRoute", "WsfGeoPoint, WsfGeoPoint") | |
| UT_DEFINE_SCRIPT_METHOD (WsfScriptRouteNetworkClass, WsfRouteNetwork, GeneratePathOnRoute, 2, "WsfRoute", "WsfGeoPoint, WsfGeoPoint") | |
| UT_DEFINE_SCRIPT_METHOD (WsfScriptRouteNetworkClass, WsfRouteNetwork, SnapToNearestSegment, 1, "WsfGeoPoint", "WsfGeoPoint") | |
| UT_DEFINE_SCRIPT_METHOD (WsfScriptRouteNetworkClass, WsfRouteNetwork, SnapToNearestWaypoint, 1, "WsfGeoPoint", "WsfGeoPoint") | |
| UT_DEFINE_SCRIPT_METHOD | ( | WsfScriptRouteNetworkClass | , |
| WsfRouteNetwork | , | ||
| FindRouteNetwork | , | ||
| 1 | , | ||
| "WsfRouteNetwork" | , | ||
| "string" | ) |
WsfRouteNetwork network = FindRouteNetwork(string aNetworkName);.
References WsfObjectTypeList< T >::Find(), WsfRouteNetworkTypes::Get(), and WsfScriptContext::GetSCENARIO().
| UT_DEFINE_SCRIPT_METHOD | ( | WsfScriptRouteNetworkClass | , |
| WsfRouteNetwork | , | ||
| GeneratePathOffRouteToRoute_1 | , | ||
| 4 | , | ||
| "WsfRoute" | , | ||
| " double | , | ||
| double | , | ||
| double | , | ||
| double" | ) |
| UT_DEFINE_SCRIPT_METHOD | ( | WsfScriptRouteNetworkClass | , |
| WsfRouteNetwork | , | ||
| GeneratePathOffRouteToRoute_2 | , | ||
| 2 | , | ||
| "WsfRoute" | , | ||
| " | WsfGeoPoint, | ||
| WsfGeoPoint" | ) |
References endPointPtr, WsfGeoPoint::GetLat(), and WsfGeoPoint::GetLon().
| UT_DEFINE_SCRIPT_METHOD | ( | WsfScriptRouteNetworkClass | , |
| WsfRouteNetwork | , | ||
| GeneratePathOnRoute | , | ||
| 2 | , | ||
| "WsfRoute" | , | ||
| " | WsfGeoPoint, | ||
| WsfGeoPoint" | ) |
References endPointPtr, WsfGeoPoint::GetLat(), and WsfGeoPoint::GetLon().
| UT_DEFINE_SCRIPT_METHOD | ( | WsfScriptRouteNetworkClass | , |
| WsfRouteNetwork | , | ||
| Routes | , | ||
| 0 | , | ||
| "Array<WsfRoute>" | , | ||
| "" | ) |
Array<WsfRoute> routes = network.Routes();.
References WsfRoute::ConstScriptRef(), and WsfRouteNetwork::GetRoutes().
| UT_DEFINE_SCRIPT_METHOD | ( | WsfScriptRouteNetworkClass | , |
| WsfRouteNetwork | , | ||
| SnapToNearestSegment | , | ||
| 1 | , | ||
| "WsfGeoPoint" | , | ||
| "WsfGeoPoint" | ) |
| UT_DEFINE_SCRIPT_METHOD | ( | WsfScriptRouteNetworkClass | , |
| WsfRouteNetwork | , | ||
| SnapToNearestWaypoint | , | ||
| 1 | , | ||
| "WsfGeoPoint" | , | ||
| "WsfGeoPoint" | ) |
References WsfGeoPoint::GetLat(), WsfWaypoint::GetLat(), WsfGeoPoint::GetLon(), and WsfWaypoint::GetLon().