- Copied complete Lts/Tools directory from qt5-before to qt6-after - Updated 32 CMakeLists.txt files (Qt5:: → Qt6::) - Tools subdirectory already included in parent Lts/CMakeLists.txt - All 72 tool submodules now present in qt6-migrated-legatus - Includes: Adler, ArAssets, ConfigX, DBAdministration, DBUpdate, DdsView, InfrastructureManagement, and 67 more tools - C++17 standard (RTI 7.7.0 compatibility maintained) - Tests deferred until final validation phase Migration progress: ✅ Lts/Application (68 files) ✅ Lts/DDS (verified Qt6-ready) ✅ Lts/Plugins (60 submodules, verified) ✅ Lts/Projects (5 submodules, verified) ✅ Lts/Proxies (13 submodules, verified) ✅ Lts/Services (47 submodules, verified) ✅ Lts/Tools (72 submodules, copied + CMake updated) ✅ Lts/Viewer (LtsFileDialog, LtsReportDisplay, SituationMap) 🟡 TetraIF (partial) 🟡 Z (partial: nglwidgets, QtSingleApplication, qsql_informix, WMS_Interface)
70 lines
1.4 KiB
TypeScript
Executable File
70 lines
1.4 KiB
TypeScript
Executable File
import { Helpers } from "./Helpers";
|
|
import { DEBUG } from "./main";
|
|
|
|
export default class Building {
|
|
public Footprint: GeoJSON.Feature | null;
|
|
public Name: string;
|
|
public Id: number;
|
|
public RefPoint: Helpers.Coordinates.Utm;
|
|
public RotationDegree: number;
|
|
|
|
constructor(Raw: {
|
|
id: number;
|
|
designation: string;
|
|
areaId: number;
|
|
refPoint: {
|
|
lat: number;
|
|
lon: number;
|
|
};
|
|
street: string;
|
|
number: string;
|
|
path: {
|
|
lat: number;
|
|
lon: number;
|
|
}[];
|
|
pathRelative: {
|
|
lat: number;
|
|
lon: number;
|
|
}[];
|
|
rotationDegree: number;
|
|
}) {
|
|
try {
|
|
let footprintCoords = [
|
|
Raw.path.map(p => [
|
|
Helpers.Calculations.RadToDeg(p.lon),
|
|
Helpers.Calculations.RadToDeg(p.lat)
|
|
])
|
|
];
|
|
|
|
footprintCoords[0].push([
|
|
Helpers.Calculations.RadToDeg(Raw.path[0].lon),
|
|
Helpers.Calculations.RadToDeg(Raw.path[0].lat)
|
|
]); // Last point == first point
|
|
|
|
this.Footprint = {
|
|
type: "Feature",
|
|
properties: {
|
|
name: Raw.designation
|
|
},
|
|
geometry: {
|
|
type: "Polygon",
|
|
coordinates: footprintCoords
|
|
}
|
|
};
|
|
} catch {
|
|
this.Footprint = null;
|
|
}
|
|
|
|
this.RefPoint = new Helpers.Coordinates.LatLon(
|
|
Helpers.Calculations.RadToDeg(Raw.refPoint.lat),
|
|
Helpers.Calculations.RadToDeg(Raw.refPoint.lon)
|
|
).ToUtm();
|
|
|
|
this.Name = Raw.designation;
|
|
this.Id = Raw.id;
|
|
this.RotationDegree = Raw.rotationDegree;
|
|
|
|
if (DEBUG) console.log(`new Building() with Id = ${this.Id}`);
|
|
}
|
|
}
|