mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-24 13:09:22 -06:00
Merge branch 'master' into project/b612-asteroid-uncertainty
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
* *
|
||||
* OpenSpace *
|
||||
* *
|
||||
* Copyright (c) 2014-2023 *
|
||||
* Copyright (c) 2014-2024 *
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
||||
* software and associated documentation files (the "Software"), to deal in the Software *
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* *
|
||||
* OpenSpace *
|
||||
* *
|
||||
* Copyright (c) 2014-2023 *
|
||||
* Copyright (c) 2014-2024 *
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
||||
* software and associated documentation files (the "Software"), to deal in the Software *
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* *
|
||||
* OpenSpace *
|
||||
* *
|
||||
* Copyright (c) 2014-2023 *
|
||||
* Copyright (c) 2014-2024 *
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
||||
* software and associated documentation files (the "Software"), to deal in the Software *
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* *
|
||||
* OpenSpace *
|
||||
* *
|
||||
* Copyright (c) 2014-2023 *
|
||||
* Copyright (c) 2014-2024 *
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
||||
* software and associated documentation files (the "Software"), to deal in the Software *
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* *
|
||||
* OpenSpace *
|
||||
* *
|
||||
* Copyright (c) 2014-2023 *
|
||||
* Copyright (c) 2014-2024 *
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
||||
* software and associated documentation files (the "Software"), to deal in the Software *
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* *
|
||||
* OpenSpace *
|
||||
* *
|
||||
* Copyright (c) 2014-2023 *
|
||||
* Copyright (c) 2014-2024 *
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
||||
* software and associated documentation files (the "Software"), to deal in the Software *
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* *
|
||||
* OpenSpace *
|
||||
* *
|
||||
* Copyright (c) 2014-2023 *
|
||||
* Copyright (c) 2014-2024 *
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
||||
* software and associated documentation files (the "Software"), to deal in the Software *
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* *
|
||||
* OpenSpace *
|
||||
* *
|
||||
* Copyright (c) 2014-2023 *
|
||||
* Copyright (c) 2014-2024 *
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
||||
* software and associated documentation files (the "Software"), to deal in the Software *
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* *
|
||||
* OpenSpace *
|
||||
* *
|
||||
* Copyright (c) 2014-2023 *
|
||||
* Copyright (c) 2014-2024 *
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
||||
* software and associated documentation files (the "Software"), to deal in the Software *
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* *
|
||||
* OpenSpace *
|
||||
* *
|
||||
* Copyright (c) 2014-2023 *
|
||||
* Copyright (c) 2014-2024 *
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
||||
* software and associated documentation files (the "Software"), to deal in the Software *
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* *
|
||||
* OpenSpace *
|
||||
* *
|
||||
* Copyright (c) 2014-2023 *
|
||||
* Copyright (c) 2014-2024 *
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
||||
* software and associated documentation files (the "Software"), to deal in the Software *
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* *
|
||||
* OpenSpace *
|
||||
* *
|
||||
* Copyright (c) 2014-2023 *
|
||||
* Copyright (c) 2014-2024 *
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
||||
* software and associated documentation files (the "Software"), to deal in the Software *
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* *
|
||||
* OpenSpace *
|
||||
* *
|
||||
* Copyright (c) 2014-2023 *
|
||||
* Copyright (c) 2014-2024 *
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
||||
* software and associated documentation files (the "Software"), to deal in the Software *
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* *
|
||||
* OpenSpace *
|
||||
* *
|
||||
* Copyright (c) 2014-2023 *
|
||||
* Copyright (c) 2014-2024 *
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
||||
* software and associated documentation files (the "Software"), to deal in the Software *
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* *
|
||||
* OpenSpace *
|
||||
* *
|
||||
* Copyright (c) 2014-2023 *
|
||||
* Copyright (c) 2014-2024 *
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
||||
* software and associated documentation files (the "Software"), to deal in the Software *
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* *
|
||||
* OpenSpace *
|
||||
* *
|
||||
* Copyright (c) 2014-2023 *
|
||||
* Copyright (c) 2014-2024 *
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
||||
* software and associated documentation files (the "Software"), to deal in the Software *
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* *
|
||||
* OpenSpace *
|
||||
* *
|
||||
* Copyright (c) 2014-2023 *
|
||||
* Copyright (c) 2014-2024 *
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
||||
* software and associated documentation files (the "Software"), to deal in the Software *
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* *
|
||||
* OpenSpace *
|
||||
* *
|
||||
* Copyright (c) 2014-2023 *
|
||||
* Copyright (c) 2014-2024 *
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
||||
* software and associated documentation files (the "Software"), to deal in the Software *
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* *
|
||||
* OpenSpace *
|
||||
* *
|
||||
* Copyright (c) 2014-2023 *
|
||||
* Copyright (c) 2014-2024 *
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
||||
* software and associated documentation files (the "Software"), to deal in the Software *
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* *
|
||||
* OpenSpace *
|
||||
* *
|
||||
* Copyright (c) 2014-2023 *
|
||||
* Copyright (c) 2014-2024 *
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
||||
* software and associated documentation files (the "Software"), to deal in the Software *
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* *
|
||||
* OpenSpace *
|
||||
* *
|
||||
* Copyright (c) 2014-2023 *
|
||||
* Copyright (c) 2014-2024 *
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
||||
* software and associated documentation files (the "Software"), to deal in the Software *
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* *
|
||||
* OpenSpace *
|
||||
* *
|
||||
* Copyright (c) 2014-2023 *
|
||||
* Copyright (c) 2014-2024 *
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
||||
* software and associated documentation files (the "Software"), to deal in the Software *
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* *
|
||||
* OpenSpace *
|
||||
* *
|
||||
* Copyright (c) 2014-2023 *
|
||||
* Copyright (c) 2014-2024 *
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
||||
* software and associated documentation files (the "Software"), to deal in the Software *
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* *
|
||||
* OpenSpace *
|
||||
* *
|
||||
* Copyright (c) 2014-2023 *
|
||||
* Copyright (c) 2014-2024 *
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
||||
* software and associated documentation files (the "Software"), to deal in the Software *
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* *
|
||||
* OpenSpace *
|
||||
* *
|
||||
* Copyright (c) 2014-2023 *
|
||||
* Copyright (c) 2014-2024 *
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
||||
* software and associated documentation files (the "Software"), to deal in the Software *
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* *
|
||||
* OpenSpace *
|
||||
* *
|
||||
* Copyright (c) 2014-2023 *
|
||||
* Copyright (c) 2014-2024 *
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
||||
* software and associated documentation files (the "Software"), to deal in the Software *
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* *
|
||||
* OpenSpace *
|
||||
* *
|
||||
* Copyright (c) 2014-2023 *
|
||||
* Copyright (c) 2014-2024 *
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
||||
* software and associated documentation files (the "Software"), to deal in the Software *
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* *
|
||||
* OpenSpace *
|
||||
* *
|
||||
* Copyright (c) 2014-2023 *
|
||||
* Copyright (c) 2014-2024 *
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
||||
* software and associated documentation files (the "Software"), to deal in the Software *
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* *
|
||||
* OpenSpace *
|
||||
* *
|
||||
* Copyright (c) 2014-2023 *
|
||||
* Copyright (c) 2014-2024 *
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
||||
* software and associated documentation files (the "Software"), to deal in the Software *
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* *
|
||||
* OpenSpace *
|
||||
* *
|
||||
* Copyright (c) 2014-2023 *
|
||||
* Copyright (c) 2014-2024 *
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
||||
* software and associated documentation files (the "Software"), to deal in the Software *
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* *
|
||||
* OpenSpace *
|
||||
* *
|
||||
* Copyright (c) 2014-2023 *
|
||||
* Copyright (c) 2014-2024 *
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
||||
* software and associated documentation files (the "Software"), to deal in the Software *
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* *
|
||||
* OpenSpace *
|
||||
* *
|
||||
* Copyright (c) 2014-2023 *
|
||||
* Copyright (c) 2014-2024 *
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
||||
* software and associated documentation files (the "Software"), to deal in the Software *
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* *
|
||||
* OpenSpace *
|
||||
* *
|
||||
* Copyright (c) 2014-2023 *
|
||||
* Copyright (c) 2014-2024 *
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
||||
* software and associated documentation files (the "Software"), to deal in the Software *
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* *
|
||||
* OpenSpace *
|
||||
* *
|
||||
* Copyright (c) 2014-2023 *
|
||||
* Copyright (c) 2014-2024 *
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
||||
* software and associated documentation files (the "Software"), to deal in the Software *
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* *
|
||||
* OpenSpace *
|
||||
* *
|
||||
* Copyright (c) 2014-2023 *
|
||||
* Copyright (c) 2014-2024 *
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
||||
* software and associated documentation files (the "Software"), to deal in the Software *
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* *
|
||||
* OpenSpace *
|
||||
* *
|
||||
* Copyright (c) 2014-2023 *
|
||||
* Copyright (c) 2014-2024 *
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
||||
* software and associated documentation files (the "Software"), to deal in the Software *
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* *
|
||||
* OpenSpace *
|
||||
* *
|
||||
* Copyright (c) 2014-2023 *
|
||||
* Copyright (c) 2014-2024 *
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
||||
* software and associated documentation files (the "Software"), to deal in the Software *
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* *
|
||||
* OpenSpace *
|
||||
* *
|
||||
* Copyright (c) 2014-2023 *
|
||||
* Copyright (c) 2014-2024 *
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
||||
* software and associated documentation files (the "Software"), to deal in the Software *
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* *
|
||||
* OpenSpace *
|
||||
* *
|
||||
* Copyright (c) 2014-2023 *
|
||||
* Copyright (c) 2014-2024 *
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
||||
* software and associated documentation files (the "Software"), to deal in the Software *
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* *
|
||||
* OpenSpace *
|
||||
* *
|
||||
* Copyright (c) 2014-2023 *
|
||||
* Copyright (c) 2014-2024 *
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
||||
* software and associated documentation files (the "Software"), to deal in the Software *
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* *
|
||||
* OpenSpace *
|
||||
* *
|
||||
* Copyright (c) 2014-2023 *
|
||||
* Copyright (c) 2014-2024 *
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
||||
* software and associated documentation files (the "Software"), to deal in the Software *
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* *
|
||||
* OpenSpace *
|
||||
* *
|
||||
* Copyright (c) 2014-2023 *
|
||||
* Copyright (c) 2014-2024 *
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
||||
* software and associated documentation files (the "Software"), to deal in the Software *
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* *
|
||||
* OpenSpace *
|
||||
* *
|
||||
* Copyright (c) 2014-2023 *
|
||||
* Copyright (c) 2014-2024 *
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
||||
* software and associated documentation files (the "Software"), to deal in the Software *
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* *
|
||||
* OpenSpace *
|
||||
* *
|
||||
* Copyright (c) 2014-2023 *
|
||||
* Copyright (c) 2014-2024 *
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
||||
* software and associated documentation files (the "Software"), to deal in the Software *
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* *
|
||||
* OpenSpace *
|
||||
* *
|
||||
* Copyright (c) 2014-2023 *
|
||||
* Copyright (c) 2014-2024 *
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
||||
* software and associated documentation files (the "Software"), to deal in the Software *
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* *
|
||||
* OpenSpace *
|
||||
* *
|
||||
* Copyright (c) 2014-2023 *
|
||||
* Copyright (c) 2014-2024 *
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
||||
* software and associated documentation files (the "Software"), to deal in the Software *
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* *
|
||||
* OpenSpace *
|
||||
* *
|
||||
* Copyright (c) 2014-2023 *
|
||||
* Copyright (c) 2014-2024 *
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
||||
* software and associated documentation files (the "Software"), to deal in the Software *
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* *
|
||||
* OpenSpace *
|
||||
* *
|
||||
* Copyright (c) 2014-2023 *
|
||||
* Copyright (c) 2014-2024 *
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
||||
* software and associated documentation files (the "Software"), to deal in the Software *
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* *
|
||||
* OpenSpace *
|
||||
* *
|
||||
* Copyright (c) 2014-2023 *
|
||||
* Copyright (c) 2014-2024 *
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
||||
* software and associated documentation files (the "Software"), to deal in the Software *
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* *
|
||||
* OpenSpace *
|
||||
* *
|
||||
* Copyright (c) 2014-2023 *
|
||||
* Copyright (c) 2014-2024 *
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
||||
* software and associated documentation files (the "Software"), to deal in the Software *
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* *
|
||||
* OpenSpace *
|
||||
* *
|
||||
* Copyright (c) 2014-2023 *
|
||||
* Copyright (c) 2014-2024 *
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
||||
* software and associated documentation files (the "Software"), to deal in the Software *
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* *
|
||||
* OpenSpace *
|
||||
* *
|
||||
* Copyright (c) 2014-2023 *
|
||||
* Copyright (c) 2014-2024 *
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
||||
* software and associated documentation files (the "Software"), to deal in the Software *
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* *
|
||||
* OpenSpace *
|
||||
* *
|
||||
* Copyright (c) 2014-2023 *
|
||||
* Copyright (c) 2014-2024 *
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
||||
* software and associated documentation files (the "Software"), to deal in the Software *
|
||||
|
||||
Submodule apps/OpenSpace/ext/sgct updated: cd588a8090...377de30963
@@ -2,7 +2,7 @@
|
||||
* *
|
||||
* OpenSpace *
|
||||
* *
|
||||
* Copyright (c) 2014-2023 *
|
||||
* Copyright (c) 2014-2024 *
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
||||
* software and associated documentation files (the "Software"), to deal in the Software *
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* *
|
||||
* OpenSpace *
|
||||
* *
|
||||
* Copyright (c) 2014-2023 *
|
||||
* Copyright (c) 2014-2024 *
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
||||
* software and associated documentation files (the "Software"), to deal in the Software *
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* *
|
||||
* OpenSpace *
|
||||
* *
|
||||
* Copyright (c) 2014-2023 *
|
||||
* Copyright (c) 2014-2024 *
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
||||
* software and associated documentation files (the "Software"), to deal in the Software *
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
asset.require("./base")
|
||||
local trailAction = asset.require("actions/trails/toggle_trails_planets_moons").ToggleTrails
|
||||
local allTrailsAction = asset.require("actions/trails/toggle_all_trails").ToggleTrails
|
||||
|
||||
|
||||
|
||||
@@ -14,22 +15,23 @@ local TogglePlanetLabels = {
|
||||
]],
|
||||
Documentation = "Turns on visibility for all solar system labels",
|
||||
GuiPath = "/Solar System",
|
||||
IsLocal = false,
|
||||
Key = "l"
|
||||
IsLocal = false
|
||||
}
|
||||
|
||||
asset.onInitialize(function()
|
||||
openspace.action.registerAction(TogglePlanetLabels)
|
||||
openspace.bindKey(TogglePlanetLabels.Key, TogglePlanetLabels.Identifier)
|
||||
openspace.bindKey("L", TogglePlanetLabels.Identifier)
|
||||
|
||||
openspace.bindKey("h", trailAction)
|
||||
openspace.bindKey("H", trailAction)
|
||||
openspace.bindKey("SHIFT+H", allTrailsAction)
|
||||
end)
|
||||
|
||||
asset.onDeinitialize(function()
|
||||
openspace.clearKey("h")
|
||||
openspace.clearKey("SHIFT+H")
|
||||
openspace.clearKey("H")
|
||||
|
||||
openspace.action.removeAction(TogglePlanetLabels)
|
||||
openspace.clearKey(TogglePlanetLabels.Key)
|
||||
openspace.clearKey("L")
|
||||
end)
|
||||
|
||||
asset.export("TogglePlanetLabels", TogglePlanetLabels.Identifier)
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* *
|
||||
* OpenSpace *
|
||||
* *
|
||||
* Copyright (c) 2014-2023 *
|
||||
* Copyright (c) 2014-2024 *
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
||||
* software and associated documentation files (the "Software"), to deal in the Software *
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* *
|
||||
* OpenSpace *
|
||||
* *
|
||||
* Copyright (c) 2014-2023 *
|
||||
* Copyright (c) 2014-2024 *
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
||||
* software and associated documentation files (the "Software"), to deal in the Software *
|
||||
|
||||
@@ -0,0 +1,61 @@
|
||||
time,x,y,z,dynamic_value,static_value
|
||||
0.0,675.0297905065192,1672.6820684730765,-124.14442820502654,1,1
|
||||
0.0,9.0852354697237,1080.363474597831,266.4506394528842,3,3
|
||||
0.0,783.6498618493837,-332.90868790089644,166.73196289611994,5,5
|
||||
0.0,163.88116606175208,-978.1393719572736,1260.016529398092,10,10
|
||||
0.0,-934.1529593143864,-590.4853596059422,-622.5048517597389,11,11
|
||||
0.0,77.99426967464474,-184.5196836590583,1835.5681393474856,13,13
|
||||
0.0,77.99426967464474,-184.5196836590583,1835.5681393474856,14,14
|
||||
0.0,-269.98667369858055,-559.2891044933908,-1487.2591171480176,15,15
|
||||
0.0,-710.8143185498654,-627.4209210346181,-1504.56518583112,17,17
|
||||
0.0,-710.8143185498654,-627.4209210346181,-1504.56518583112,18,18
|
||||
1.0,1350.0595810130385,3345.364136946153,-248.28885641005309,2,1
|
||||
1.0,18.1704709394474,2160.726949195662,532.9012789057684,6,3
|
||||
1.0,1567.2997236987674,-665.8173758017929,333.4639257922399,10,5
|
||||
1.0,327.76233212350417,-1956.2787439145472,2520.033058796184,20,10
|
||||
1.0,-1868.3059186287728,-1180.9707192118844,-1245.0097035194779,22,11
|
||||
1.0,155.98853934928948,-369.0393673181166,3671.136278694971,26,13
|
||||
1.0,155.98853934928948,-369.0393673181166,3671.136278694971,28,14
|
||||
1.0,-539.9733473971611,-1118.5782089867816,-2974.518234296035,30,15
|
||||
1.0,-1421.628637099731,-1254.8418420692362,-3009.13037166224,34,17
|
||||
1.0,-1421.628637099731,-1254.8418420692362,-3009.13037166224,36,18
|
||||
2.0,2700.119162026077,6690.728273892306,-496.57771282010617,4,1
|
||||
2.0,36.3409418788948,4321.453898391324,1065.8025578115369,12,3
|
||||
2.0,3134.5994473975347,-1331.6347516035858,666.9278515844798,20,5
|
||||
2.0,655.5246642470083,-3912.5574878290945,5040.066117592368,40,10
|
||||
2.0,-3736.6118372575456,-2361.941438423769,-2490.0194070389557,44,11
|
||||
2.0,311.97707869857896,-738.0787346362332,7342.272557389942,52,13
|
||||
2.0,311.97707869857896,-738.0787346362332,7342.272557389942,56,14
|
||||
2.0,-1079.9466947943222,-2237.1564179735633,-5949.03646859207,60,15
|
||||
2.0,-2843.257274199462,-2509.6836841384725,-6018.26074332448,68,17
|
||||
2.0,-2843.257274199462,-2509.6836841384725,-6018.26074332448,72,18
|
||||
3.0,5400.238324052154,13381.456547784612,-993.1554256402123,8,1
|
||||
3.0,72.6818837577896,8642.907796782649,2131.6051156230737,24,3
|
||||
3.0,6269.1988947950695,-2663.2695032071715,1333.8557031689595,40,5
|
||||
3.0,1311.0493284940167,-7825.114975658189,10080.132235184736,80,10
|
||||
3.0,-7473.223674515091,-4723.882876847538,-4980.038814077911,88,11
|
||||
3.0,623.9541573971579,-1476.1574692724664,14684.545114779885,104,13
|
||||
3.0,623.9541573971579,-1476.1574692724664,14684.545114779885,112,14
|
||||
3.0,-2159.8933895886444,-4474.312835947127,-11898.07293718414,120,15
|
||||
3.0,-5686.514548398924,-5019.367368276945,-12036.52148664896,136,17
|
||||
3.0,-5686.514548398924,-5019.367368276945,-12036.52148664896,144,18
|
||||
4.0,10800.476648104308,26762.913095569224,-1986.3108512804247,16,1
|
||||
4.0,145.3637675155792,17285.815593565298,4263.2102312461475,48,3
|
||||
4.0,12538.397789590139,-5326.539006414343,2667.711406337919,80,5
|
||||
4.0,2622.0986569880333,-15650.229951316378,20160.26447036947,160,10
|
||||
4.0,-14946.447349030183,-9447.765753695076,-9960.077628155823,176,11
|
||||
4.0,1247.9083147943159,-2952.314938544933,29369.09022955977,208,13
|
||||
4.0,1247.9083147943159,-2952.314938544933,29369.09022955977,224,14
|
||||
4.0,-4319.786779177289,-8948.625671894253,-23796.14587436828,240,15
|
||||
4.0,-11373.029096797847,-10038.73473655389,-24073.04297329792,272,17
|
||||
4.0,-11373.029096797847,-10038.73473655389,-24073.04297329792,288,18
|
||||
5.0,21600.953296208616,53525.82619113845,-3972.6217025608494,32,1
|
||||
5.0,290.7275350311584,34571.631187130595,8526.420462492295,96,3
|
||||
5.0,25076.795579180278,-10653.078012828686,5335.422812675838,160,5
|
||||
5.0,5244.197313976067,-31300.459902632756,40320.52894073894,320,10
|
||||
5.0,-29892.894698060365,-18895.53150739015,-19920.155256311646,352,11
|
||||
5.0,2495.8166295886317,-5904.629877089866,58738.18045911954,416,13
|
||||
5.0,2495.8166295886317,-5904.629877089866,58738.18045911954,448,14
|
||||
5.0,-8639.573558354577,-17897.251343788506,-47592.29174873656,480,15
|
||||
5.0,-22746.058193595694,-20077.46947310778,-48146.08594659584,544,17
|
||||
5.0,-22746.058193595694,-20077.46947310778,-48146.08594659584,576,18
|
||||
|
@@ -0,0 +1,61 @@
|
||||
time,x,y,z
|
||||
0.0,675.0297905065192,1672.6820684730765,-124.14442820502654
|
||||
0.0,9.0852354697237,1080.363474597831,266.4506394528842
|
||||
0.0,783.6498618493837,-332.90868790089644,166.73196289611994
|
||||
0.0,163.88116606175208,-978.1393719572736,1260.016529398092
|
||||
0.0,-934.1529593143864,-590.4853596059422,-622.5048517597389
|
||||
0.0,77.99426967464474,-184.5196836590583,1835.5681393474856
|
||||
0.0,77.99426967464474,-184.5196836590583,1835.5681393474856
|
||||
0.0,-269.98667369858055,-559.2891044933908,-1487.2591171480176
|
||||
0.0,-710.8143185498654,-627.4209210346181,-1504.56518583112
|
||||
0.0,-710.8143185498654,-627.4209210346181,-1504.56518583112
|
||||
1.0,1668.4580965289847,745.846682848152,2807.1531096380813
|
||||
1.0,-267.4433668726456,148.90396745731732,-185.1019615201871
|
||||
1.0,2079.026938050769,151.01585523117177,301.7883722719676
|
||||
1.0,3209.940878877803,-4804.699861272869,-1589.4798430288217
|
||||
1.0,-1402.4597087610582,-4040.3210246320077,-1711.2703008101043
|
||||
1.0,-390.2796442237164,-1309.0947421410037,2057.413318767218
|
||||
1.0,3236.419900689428,-2210.181924327906,-466.4190154971202
|
||||
1.0,1264.882784607237,69.2055606971569,-735.8630804566736
|
||||
1.0,-1649.7630904197697,-2443.46907207704,-2705.84256566873
|
||||
1.0,374.30576862206385,-3452.028323705201,-2087.952685417674
|
||||
2.0,465.0448720701909,2222.779842838973,3455.3210484276715
|
||||
2.0,3437.11300214523,491.6405298372583,-955.2665223528202
|
||||
2.0,2052.032488574901,-80.28070954530929,-1052.0556283399499
|
||||
2.0,1094.5190209660022,-5406.907252451447,-366.127265347086
|
||||
2.0,242.63011544531992,-6997.3650053668625,350.72874418179754
|
||||
2.0,-2831.9669441657607,-2748.783158930421,3919.9735569996146
|
||||
2.0,3654.1470906989384,-3131.459466247481,-2144.8540619423975
|
||||
2.0,-2654.4574631523137,2183.4500131349887,-1354.287832159103
|
||||
2.0,-4306.135188216631,-1756.232492940117,-2043.315702861602
|
||||
2.0,768.0282403603109,-6978.108634430669,-136.86243117295544
|
||||
3.0,-493.303603620389,2945.5710538558005,3015.977272752648
|
||||
3.0,3065.7950488175957,3567.7136627691966,-241.04137932932736
|
||||
3.0,-160.63745943715548,-151.93278776521237,1903.7324611430824
|
||||
3.0,-1297.8942271953392,-2277.6199408234343,-1402.6677018943808
|
||||
3.0,1867.681760233716,-12236.85521354635,-1266.2584616045776
|
||||
3.0,-119.48688702411482,-1104.9781501799732,2916.459469830542
|
||||
3.0,3510.126847538271,-2957.3653297711385,-314.04982653824914
|
||||
3.0,-647.3916673682654,1585.4353122032537,-696.785612839734
|
||||
3.0,-3582.8631381213627,-1572.7109398691125,-3102.8361103956795
|
||||
3.0,-522.2112688499377,-10953.246463632455,889.6724350537568
|
||||
4.0,-299.1485049243082,114.829569754972,-821.5651578454349
|
||||
4.0,5003.085029883374,2726.4230172384787,-294.0691302277611
|
||||
4.0,-1564.7436471918602,-837.3618208187513,2024.1928810251354
|
||||
4.0,-1953.2185203908757,-3882.1744792666723,3523.8165230761915
|
||||
4.0,1083.4654539694006,-12559.426636878368,-1650.9803911668228
|
||||
4.0,-3046.516783288352,-296.8764365508964,3519.554154497767
|
||||
4.0,4102.367401667423,815.0064726499218,-383.47336594873576
|
||||
4.0,-125.2811230084867,1934.5909378669317,-3034.141688078798
|
||||
4.0,-3572.6362248364408,-1057.610158423584,-817.1904813656383
|
||||
4.0,-991.3855356002316,-11102.13829516479,2393.538500427305
|
||||
5.0,1282.9153891617857,-2986.4972923772934,-366.64528863717607
|
||||
5.0,3184.310120293896,2863.5489668505334,2320.216378337095
|
||||
5.0,1240.8449746803383,-2961.969248270961,-1190.7735880973198
|
||||
5.0,-4756.920645975437,-2934.989617996309,3893.0842401408
|
||||
5.0,2257.179641569941,-14398.275105345974,-1131.2148026699756
|
||||
5.0,1334.3944683316054,2802.9923734841823,5083.199898052388
|
||||
5.0,2121.294751406046,-751.5001120225525,-2857.3747877048995
|
||||
5.0,-1257.8765822140306,1290.4679054555804,-5675.05491424735
|
||||
5.0,-3373.3334946611585,569.4242763157556,226.69264986815688
|
||||
5.0,-1998.3368438326302,-13563.866928032701,2987.507846893677
|
||||
|
92
data/assets/examples/pointclouds/interpolated_points.asset
Normal file
92
data/assets/examples/pointclouds/interpolated_points.asset
Normal file
@@ -0,0 +1,92 @@
|
||||
local Points = {
|
||||
Identifier = "Example_InterpolatedPoints_ColorMapped",
|
||||
Renderable = {
|
||||
Type = "RenderableInterpolatedPoints",
|
||||
-- The dataset here is just a linearly expanding dataset, where the points move in
|
||||
-- a straight line
|
||||
File = asset.resource("data/interpolation_expand.csv"),
|
||||
-- Specify how many objects the rows in the dataset represent. Here, the dataset is
|
||||
-- consists of 10 objects with positions at 6 different time steps. This information
|
||||
-- is required
|
||||
NumberOfObjects = 10,
|
||||
-- Both the position and data values will be interpolated, so use a color map
|
||||
Coloring = {
|
||||
ColorMapping = {
|
||||
File = asset.resource("viridis.cmap")
|
||||
}
|
||||
},
|
||||
-- Reduce the scale of the points a bit compared to default, so we see them more clearly
|
||||
SizeSettings = {
|
||||
ScaleExponent = 3.5
|
||||
}
|
||||
},
|
||||
GUI = {
|
||||
Name = "Interpolating Points with Color Map",
|
||||
Path = "/Example/Interpolated Point Clouds",
|
||||
Description = [[Example of interpolating points with a color map. The data value
|
||||
used for the coloring will also be inteprolated, leading to the points changing
|
||||
color throughout the interpolation.]]
|
||||
}
|
||||
}
|
||||
|
||||
local Points_Smoothed = {
|
||||
Identifier = "Example_InterpolatedPoints_Spline",
|
||||
Renderable = {
|
||||
Type = "RenderableInterpolatedPoints",
|
||||
-- Using a random walk dataset, to get movement in some different directions
|
||||
File = asset.resource("data/interpolation_randomwalk.csv"),
|
||||
-- Same number of objects as above - 10 objects with positions at 6 different
|
||||
-- time steps
|
||||
NumberOfObjects = 10,
|
||||
Interpolation = {
|
||||
-- Smoothen transitions between two different sets of points, by
|
||||
-- using a spline based interpolation of the points
|
||||
UseSplineInterpolation = true
|
||||
},
|
||||
-- Just use a fixed coloring here, no color mapping
|
||||
Coloring = {
|
||||
FixedColor = { 0.0, 0.5, 0.0 }
|
||||
},
|
||||
-- Reduce the scale of the points a bit compared to default, so we see them more clearly
|
||||
SizeSettings = {
|
||||
ScaleExponent = 3.0
|
||||
}
|
||||
},
|
||||
GUI = {
|
||||
Name = "Interpolating Points (Spline)",
|
||||
Path = "/Example/Interpolated Point Clouds",
|
||||
Description = [[Example of interpolating points with spline-based interpolation
|
||||
for the position. This leads to smoother transitions at the nodes of the
|
||||
interpolation. Try disabling the spline interpolation in the GUI (under
|
||||
Renderable->Interpolation) to see the difference.]]
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
asset.onInitialize(function()
|
||||
openspace.addSceneGraphNode(Points)
|
||||
openspace.addSceneGraphNode(Points_Smoothed)
|
||||
end)
|
||||
|
||||
asset.onDeinitialize(function()
|
||||
openspace.removeSceneGraphNode(Points_Smoothed)
|
||||
openspace.removeSceneGraphNode(Points)
|
||||
end)
|
||||
|
||||
asset.export(Points)
|
||||
asset.export(Points_Smoothed)
|
||||
|
||||
|
||||
|
||||
asset.meta = {
|
||||
Name = "Example - Interpolated Point Clouds",
|
||||
Version = "1.0",
|
||||
Description = [[Example of point clouds that support interpolation. One uses a linear
|
||||
motion and color mapping. The other example uses a spline interpolation for the
|
||||
approximation of the positions, to result in smoother transitions between the sets
|
||||
of positions. The interpolation can be triggered using the properties under
|
||||
Renderable->Interpolation in the Scene menu.]],
|
||||
Author = "OpenSpace Team",
|
||||
URL = "http://openspaceproject.com",
|
||||
License = "MIT license"
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
local earthAsset = asset.require("scene/solarsystem/planets/earth/earth")
|
||||
local colormaps = asset.require("util/default_colormaps")
|
||||
|
||||
|
||||
|
||||
@@ -66,7 +67,7 @@ local ColorMapped_FixedSize = {
|
||||
File = asset.resource("data/dummydata.csv"),
|
||||
Coloring = {
|
||||
ColorMapping = {
|
||||
File = asset.resource("viridis.cmap")
|
||||
File = colormaps.Uniform.Viridis
|
||||
}
|
||||
},
|
||||
SizeSettings = {
|
||||
@@ -144,7 +145,7 @@ local Textured = {
|
||||
-- Disable color map per default. When enabled, the texture color will be
|
||||
-- multiplied with the color from the color map
|
||||
Enabled = false,
|
||||
File = asset.resource("viridis.cmap")
|
||||
File = colormaps.Uniform.Viridis
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -175,7 +176,7 @@ local ColorMappedAdvanced_NoBlend = {
|
||||
UseAdditiveBlending = false, -- Disable additive blending
|
||||
Coloring = {
|
||||
ColorMapping = {
|
||||
File = asset.resource("viridis.cmap"),
|
||||
File = colormaps.Uniform.Viridis,
|
||||
ParameterOptions = {
|
||||
{ Key = "number_withNan" }, -- no range => compute min and max
|
||||
{ Key = "normaldist_withMissing", Range = { -0.5, 0.5 } }
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
local earthAsset = asset.require("scene/solarsystem/planets/earth/earth")
|
||||
local colormaps = asset.require("util/default_colormaps")
|
||||
|
||||
|
||||
|
||||
@@ -10,7 +11,11 @@ local Example = {
|
||||
File = asset.resource("data/dummydata.csv"),
|
||||
Coloring = {
|
||||
ColorMapping = {
|
||||
File = asset.resource("viridis.cmap"),
|
||||
-- Use white-to-black color map
|
||||
File = colormaps.Sequential.Greys,
|
||||
-- Invert the color map so it goes from dark to bright (black-to-white) instead
|
||||
-- of from bright to dark
|
||||
Invert = true,
|
||||
-- Set the default choice of parameter and value range explicitly. Values
|
||||
-- outside this range will be given special colors
|
||||
Parameter = "normaldist_withMissing",
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
local earthAsset = asset.require("scene/solarsystem/planets/earth/earth")
|
||||
local colormaps = asset.require("util/default_colormaps")
|
||||
|
||||
|
||||
|
||||
@@ -29,7 +30,7 @@ local Example = {
|
||||
-- missing data values in a specific color
|
||||
Coloring = {
|
||||
ColorMapping = {
|
||||
File = asset.resource("viridis.cmap"),
|
||||
File = colormaps.Uniform.Magma,
|
||||
ShowMissingData = true,
|
||||
NoDataColor = { 1.0, 0.0, 0.0, 1.0 }
|
||||
}
|
||||
|
||||
@@ -1,258 +0,0 @@
|
||||
# Viridis Color map
|
||||
256
|
||||
0.267004 0.004874 0.329415 1.000000
|
||||
0.268510 0.009605 0.335427 1.000000
|
||||
0.269944 0.014625 0.341379 1.000000
|
||||
0.271305 0.019942 0.347269 1.000000
|
||||
0.272594 0.025563 0.353093 1.000000
|
||||
0.273809 0.031497 0.358853 1.000000
|
||||
0.274952 0.037752 0.364543 1.000000
|
||||
0.276022 0.044167 0.370164 1.000000
|
||||
0.277018 0.050344 0.375715 1.000000
|
||||
0.277941 0.056324 0.381191 1.000000
|
||||
0.278791 0.062145 0.386592 1.000000
|
||||
0.279566 0.067836 0.391917 1.000000
|
||||
0.280267 0.073417 0.397163 1.000000
|
||||
0.280894 0.078907 0.402329 1.000000
|
||||
0.281446 0.084320 0.407414 1.000000
|
||||
0.281924 0.089666 0.412415 1.000000
|
||||
0.282327 0.094955 0.417331 1.000000
|
||||
0.282656 0.100196 0.422160 1.000000
|
||||
0.282910 0.105393 0.426902 1.000000
|
||||
0.283091 0.110553 0.431554 1.000000
|
||||
0.283197 0.115680 0.436115 1.000000
|
||||
0.283229 0.120777 0.440584 1.000000
|
||||
0.283187 0.125848 0.444960 1.000000
|
||||
0.283072 0.130895 0.449241 1.000000
|
||||
0.282884 0.135920 0.453427 1.000000
|
||||
0.282623 0.140926 0.457517 1.000000
|
||||
0.282290 0.145912 0.461510 1.000000
|
||||
0.281887 0.150881 0.465405 1.000000
|
||||
0.281412 0.155834 0.469201 1.000000
|
||||
0.280868 0.160771 0.472899 1.000000
|
||||
0.280255 0.165693 0.476498 1.000000
|
||||
0.279574 0.170599 0.479997 1.000000
|
||||
0.278826 0.175490 0.483397 1.000000
|
||||
0.278012 0.180367 0.486697 1.000000
|
||||
0.277134 0.185228 0.489898 1.000000
|
||||
0.276194 0.190074 0.493001 1.000000
|
||||
0.275191 0.194905 0.496005 1.000000
|
||||
0.274128 0.199721 0.498911 1.000000
|
||||
0.273006 0.204520 0.501721 1.000000
|
||||
0.271828 0.209303 0.504434 1.000000
|
||||
0.270595 0.214069 0.507052 1.000000
|
||||
0.269308 0.218818 0.509577 1.000000
|
||||
0.267968 0.223549 0.512008 1.000000
|
||||
0.266580 0.228262 0.514349 1.000000
|
||||
0.265145 0.232956 0.516599 1.000000
|
||||
0.263663 0.237631 0.518762 1.000000
|
||||
0.262138 0.242286 0.520837 1.000000
|
||||
0.260571 0.246922 0.522828 1.000000
|
||||
0.258965 0.251537 0.524736 1.000000
|
||||
0.257322 0.256130 0.526563 1.000000
|
||||
0.255645 0.260703 0.528312 1.000000
|
||||
0.253935 0.265254 0.529983 1.000000
|
||||
0.252194 0.269783 0.531579 1.000000
|
||||
0.250425 0.274290 0.533103 1.000000
|
||||
0.248629 0.278775 0.534556 1.000000
|
||||
0.246811 0.283237 0.535941 1.000000
|
||||
0.244972 0.287675 0.537260 1.000000
|
||||
0.243113 0.292092 0.538516 1.000000
|
||||
0.241237 0.296485 0.539709 1.000000
|
||||
0.239346 0.300855 0.540844 1.000000
|
||||
0.237441 0.305202 0.541921 1.000000
|
||||
0.235526 0.309527 0.542944 1.000000
|
||||
0.233603 0.313828 0.543914 1.000000
|
||||
0.231674 0.318106 0.544834 1.000000
|
||||
0.229739 0.322361 0.545706 1.000000
|
||||
0.227802 0.326594 0.546532 1.000000
|
||||
0.225863 0.330805 0.547314 1.000000
|
||||
0.223925 0.334994 0.548053 1.000000
|
||||
0.221989 0.339161 0.548752 1.000000
|
||||
0.220057 0.343307 0.549413 1.000000
|
||||
0.218130 0.347432 0.550038 1.000000
|
||||
0.216210 0.351535 0.550627 1.000000
|
||||
0.214298 0.355619 0.551184 1.000000
|
||||
0.212395 0.359683 0.551710 1.000000
|
||||
0.210503 0.363727 0.552206 1.000000
|
||||
0.208623 0.367752 0.552675 1.000000
|
||||
0.206756 0.371758 0.553117 1.000000
|
||||
0.204903 0.375746 0.553533 1.000000
|
||||
0.203063 0.379716 0.553925 1.000000
|
||||
0.201239 0.383670 0.554294 1.000000
|
||||
0.199430 0.387607 0.554642 1.000000
|
||||
0.197636 0.391528 0.554969 1.000000
|
||||
0.195860 0.395433 0.555276 1.000000
|
||||
0.194100 0.399323 0.555565 1.000000
|
||||
0.192357 0.403199 0.555836 1.000000
|
||||
0.190631 0.407061 0.556089 1.000000
|
||||
0.188923 0.410910 0.556326 1.000000
|
||||
0.187231 0.414746 0.556547 1.000000
|
||||
0.185556 0.418570 0.556753 1.000000
|
||||
0.183898 0.422383 0.556944 1.000000
|
||||
0.182256 0.426184 0.557120 1.000000
|
||||
0.180629 0.429975 0.557282 1.000000
|
||||
0.179019 0.433756 0.557430 1.000000
|
||||
0.177423 0.437527 0.557565 1.000000
|
||||
0.175841 0.441290 0.557685 1.000000
|
||||
0.174274 0.445044 0.557792 1.000000
|
||||
0.172719 0.448791 0.557885 1.000000
|
||||
0.171176 0.452530 0.557965 1.000000
|
||||
0.169646 0.456262 0.558030 1.000000
|
||||
0.168126 0.459988 0.558082 1.000000
|
||||
0.166617 0.463708 0.558119 1.000000
|
||||
0.165117 0.467423 0.558141 1.000000
|
||||
0.163625 0.471133 0.558148 1.000000
|
||||
0.162142 0.474838 0.558140 1.000000
|
||||
0.160665 0.478540 0.558115 1.000000
|
||||
0.159194 0.482237 0.558073 1.000000
|
||||
0.157729 0.485932 0.558013 1.000000
|
||||
0.156270 0.489624 0.557936 1.000000
|
||||
0.154815 0.493313 0.557840 1.000000
|
||||
0.153364 0.497000 0.557724 1.000000
|
||||
0.151918 0.500685 0.557587 1.000000
|
||||
0.150476 0.504369 0.557430 1.000000
|
||||
0.149039 0.508051 0.557250 1.000000
|
||||
0.147607 0.511733 0.557049 1.000000
|
||||
0.146180 0.515413 0.556823 1.000000
|
||||
0.144759 0.519093 0.556572 1.000000
|
||||
0.143343 0.522773 0.556295 1.000000
|
||||
0.141935 0.526453 0.555991 1.000000
|
||||
0.140536 0.530132 0.555659 1.000000
|
||||
0.139147 0.533812 0.555298 1.000000
|
||||
0.137770 0.537492 0.554906 1.000000
|
||||
0.136408 0.541173 0.554483 1.000000
|
||||
0.135066 0.544853 0.554029 1.000000
|
||||
0.133743 0.548535 0.553541 1.000000
|
||||
0.132444 0.552216 0.553018 1.000000
|
||||
0.131172 0.555899 0.552459 1.000000
|
||||
0.129933 0.559582 0.551864 1.000000
|
||||
0.128729 0.563265 0.551229 1.000000
|
||||
0.127568 0.566949 0.550556 1.000000
|
||||
0.126453 0.570633 0.549841 1.000000
|
||||
0.125394 0.574318 0.549086 1.000000
|
||||
0.124395 0.578002 0.548287 1.000000
|
||||
0.123463 0.581687 0.547445 1.000000
|
||||
0.122606 0.585371 0.546557 1.000000
|
||||
0.121831 0.589055 0.545623 1.000000
|
||||
0.121148 0.592739 0.544641 1.000000
|
||||
0.120565 0.596422 0.543611 1.000000
|
||||
0.120092 0.600104 0.542530 1.000000
|
||||
0.119738 0.603785 0.541400 1.000000
|
||||
0.119512 0.607464 0.540218 1.000000
|
||||
0.119423 0.611141 0.538982 1.000000
|
||||
0.119483 0.614817 0.537692 1.000000
|
||||
0.119699 0.618490 0.536347 1.000000
|
||||
0.120081 0.622161 0.534946 1.000000
|
||||
0.120638 0.625828 0.533488 1.000000
|
||||
0.121380 0.629492 0.531973 1.000000
|
||||
0.122312 0.633153 0.530398 1.000000
|
||||
0.123444 0.636809 0.528763 1.000000
|
||||
0.124780 0.640461 0.527068 1.000000
|
||||
0.126326 0.644107 0.525311 1.000000
|
||||
0.128087 0.647749 0.523491 1.000000
|
||||
0.130067 0.651384 0.521608 1.000000
|
||||
0.132268 0.655014 0.519661 1.000000
|
||||
0.134692 0.658636 0.517649 1.000000
|
||||
0.137339 0.662252 0.515571 1.000000
|
||||
0.140210 0.665859 0.513427 1.000000
|
||||
0.143303 0.669459 0.511215 1.000000
|
||||
0.146616 0.673050 0.508936 1.000000
|
||||
0.150148 0.676631 0.506589 1.000000
|
||||
0.153894 0.680203 0.504172 1.000000
|
||||
0.157851 0.683765 0.501686 1.000000
|
||||
0.162016 0.687316 0.499129 1.000000
|
||||
0.166383 0.690856 0.496502 1.000000
|
||||
0.170948 0.694384 0.493803 1.000000
|
||||
0.175707 0.697900 0.491033 1.000000
|
||||
0.180653 0.701402 0.488189 1.000000
|
||||
0.185783 0.704891 0.485273 1.000000
|
||||
0.191090 0.708366 0.482284 1.000000
|
||||
0.196571 0.711827 0.479221 1.000000
|
||||
0.202219 0.715272 0.476084 1.000000
|
||||
0.208030 0.718701 0.472873 1.000000
|
||||
0.214000 0.722114 0.469588 1.000000
|
||||
0.220124 0.725509 0.466226 1.000000
|
||||
0.226397 0.728888 0.462789 1.000000
|
||||
0.232815 0.732247 0.459277 1.000000
|
||||
0.239374 0.735588 0.455688 1.000000
|
||||
0.246070 0.738910 0.452024 1.000000
|
||||
0.252899 0.742211 0.448284 1.000000
|
||||
0.259857 0.745492 0.444467 1.000000
|
||||
0.266941 0.748751 0.440573 1.000000
|
||||
0.274149 0.751988 0.436601 1.000000
|
||||
0.281477 0.755203 0.432552 1.000000
|
||||
0.288921 0.758394 0.428426 1.000000
|
||||
0.296479 0.761561 0.424223 1.000000
|
||||
0.304148 0.764704 0.419943 1.000000
|
||||
0.311925 0.767822 0.415586 1.000000
|
||||
0.319809 0.770914 0.411152 1.000000
|
||||
0.327796 0.773980 0.406640 1.000000
|
||||
0.335885 0.777018 0.402049 1.000000
|
||||
0.344074 0.780029 0.397381 1.000000
|
||||
0.352360 0.783011 0.392636 1.000000
|
||||
0.360741 0.785964 0.387814 1.000000
|
||||
0.369214 0.788888 0.382914 1.000000
|
||||
0.377779 0.791781 0.377939 1.000000
|
||||
0.386433 0.794644 0.372886 1.000000
|
||||
0.395174 0.797475 0.367757 1.000000
|
||||
0.404001 0.800275 0.362552 1.000000
|
||||
0.412913 0.803041 0.357269 1.000000
|
||||
0.421908 0.805774 0.351910 1.000000
|
||||
0.430983 0.808473 0.346476 1.000000
|
||||
0.440137 0.811138 0.340967 1.000000
|
||||
0.449368 0.813768 0.335384 1.000000
|
||||
0.458674 0.816363 0.329727 1.000000
|
||||
0.468053 0.818921 0.323998 1.000000
|
||||
0.477504 0.821444 0.318195 1.000000
|
||||
0.487026 0.823929 0.312321 1.000000
|
||||
0.496615 0.826376 0.306377 1.000000
|
||||
0.506271 0.828786 0.300362 1.000000
|
||||
0.515992 0.831158 0.294279 1.000000
|
||||
0.525776 0.833491 0.288127 1.000000
|
||||
0.535621 0.835785 0.281908 1.000000
|
||||
0.545524 0.838039 0.275626 1.000000
|
||||
0.555484 0.840254 0.269281 1.000000
|
||||
0.565498 0.842430 0.262877 1.000000
|
||||
0.575563 0.844566 0.256415 1.000000
|
||||
0.585678 0.846661 0.249897 1.000000
|
||||
0.595839 0.848717 0.243329 1.000000
|
||||
0.606045 0.850733 0.236712 1.000000
|
||||
0.616293 0.852709 0.230052 1.000000
|
||||
0.626579 0.854645 0.223353 1.000000
|
||||
0.636902 0.856542 0.216620 1.000000
|
||||
0.647257 0.858400 0.209861 1.000000
|
||||
0.657642 0.860219 0.203082 1.000000
|
||||
0.668054 0.861999 0.196293 1.000000
|
||||
0.678489 0.863742 0.189503 1.000000
|
||||
0.688944 0.865448 0.182725 1.000000
|
||||
0.699415 0.867117 0.175971 1.000000
|
||||
0.709898 0.868751 0.169257 1.000000
|
||||
0.720391 0.870350 0.162603 1.000000
|
||||
0.730889 0.871916 0.156029 1.000000
|
||||
0.741388 0.873449 0.149561 1.000000
|
||||
0.751884 0.874951 0.143228 1.000000
|
||||
0.762373 0.876424 0.137064 1.000000
|
||||
0.772852 0.877868 0.131109 1.000000
|
||||
0.783315 0.879285 0.125405 1.000000
|
||||
0.793760 0.880678 0.120005 1.000000
|
||||
0.804182 0.882046 0.114965 1.000000
|
||||
0.814576 0.883393 0.110347 1.000000
|
||||
0.824940 0.884720 0.106217 1.000000
|
||||
0.835270 0.886029 0.102646 1.000000
|
||||
0.845561 0.887322 0.099702 1.000000
|
||||
0.855810 0.888601 0.097452 1.000000
|
||||
0.866013 0.889868 0.095953 1.000000
|
||||
0.876168 0.891125 0.095250 1.000000
|
||||
0.886271 0.892374 0.095374 1.000000
|
||||
0.896320 0.893616 0.096335 1.000000
|
||||
0.906311 0.894855 0.098125 1.000000
|
||||
0.916242 0.896091 0.100717 1.000000
|
||||
0.926106 0.897330 0.104071 1.000000
|
||||
0.935904 0.898570 0.108131 1.000000
|
||||
0.945636 0.899815 0.112838 1.000000
|
||||
0.955300 0.901065 0.118128 1.000000
|
||||
0.964894 0.902323 0.123941 1.000000
|
||||
0.974417 0.903590 0.130215 1.000000
|
||||
0.983868 0.904867 0.136897 1.000000
|
||||
0.993248 0.906157 0.143936 1.000000
|
||||
199
data/assets/util/default_colormaps.asset
Normal file
199
data/assets/util/default_colormaps.asset
Normal file
@@ -0,0 +1,199 @@
|
||||
-- For detailed explanations about the categories and the color maps, please refer to
|
||||
-- source page from Matplotlib
|
||||
-- https://matplotlib.org/stable/users/explain/colors/colormaps.html
|
||||
|
||||
|
||||
-- Perceptually Uniform Sequental colormaps
|
||||
|
||||
local uniform = asset.resource({
|
||||
Name = "Perceptually Uniform Color Maps",
|
||||
Type = "HttpSynchronization",
|
||||
Identifier = "default_colormaps_uniform",
|
||||
Version = 1
|
||||
})
|
||||
|
||||
local Uniform = {
|
||||
Viridis = uniform .. "viridis.cmap",
|
||||
Plasma = uniform .. "plasma.cmap",
|
||||
Inferno = uniform .. "inferno.cmap",
|
||||
Magma = uniform .. "magma.cmap",
|
||||
Cividis = uniform .. "cividis.cmap"
|
||||
}
|
||||
asset.export("Uniform", Uniform)
|
||||
|
||||
|
||||
-- Sequential maps, where the lightness value increases monotonically through the colormaps
|
||||
|
||||
local sequential = asset.resource({
|
||||
Name = "Sequential Color Maps",
|
||||
Type = "HttpSynchronization",
|
||||
Identifier = "default_colormaps_sequential",
|
||||
Version = 1
|
||||
})
|
||||
|
||||
local Sequential = {
|
||||
Greys = sequential .. "Greys.cmap",
|
||||
Purples = sequential .. "Purples.cmap",
|
||||
Blues = sequential .. "Blues.cmap",
|
||||
Greens = sequential .. "Greens.cmap",
|
||||
Oranges = sequential .. "Oranges.cmap",
|
||||
Reds = sequential .. "Reds.cmap",
|
||||
YlOrBr = sequential .. "YlOrBr.cmap",
|
||||
YlOrRd = sequential .. "YlOrRd.cmap",
|
||||
OrRd = sequential .. "OrRd.cmap",
|
||||
PuRd = sequential .. "PuRd.cmap",
|
||||
RdPu = sequential .. "RdPu.cmap",
|
||||
BuPu = sequential .. "BuPu.cmap",
|
||||
GnBu = sequential .. "GnBu.cmap",
|
||||
PuBu = sequential .. "PuBu.cmap",
|
||||
YlGnBu = sequential .. "YlGnBu.cmap",
|
||||
PuBuGn = sequential .. "PuBuGn.cmap",
|
||||
BuGn = sequential .. "BuGn.cmap",
|
||||
YlGn = sequential .. "YlGn.cmap"
|
||||
}
|
||||
asset.export("Sequential", Sequential)
|
||||
|
||||
|
||||
-- Sequential color maps where the lightness might plateu or go both up or down
|
||||
|
||||
local sequential2 = asset.resource({
|
||||
Name = "Sequential2 Color Maps",
|
||||
Type = "HttpSynchronization",
|
||||
Identifier = "default_colormaps_sequential2",
|
||||
Version = 1
|
||||
})
|
||||
|
||||
local Sequential2 = {
|
||||
Binary = sequential2 .. "binary.cmap",
|
||||
Gist_yarg = sequential2 .. "gist_yarg.cmap",
|
||||
Gist_gray = sequential2 .. "gist_gray.cmap",
|
||||
Gray = sequential2 .. "gray.cmap",
|
||||
Bone = sequential2 .. "bone.cmap",
|
||||
Pink = sequential2 .. "pink.cmap",
|
||||
Spring = sequential2 .. "spring.cmap",
|
||||
Summer = sequential2 .. "summer.cmap",
|
||||
Autumn = sequential2 .. "autumn.cmap",
|
||||
Winter = sequential2 .. "winter.cmap",
|
||||
Cool = sequential2 .. "cool.cmap",
|
||||
Wistia = sequential2 .. "Wistia.cmap",
|
||||
Hot = sequential2 .. "hot.cmap",
|
||||
Afmhot = sequential2 .. "afmhot.cmap",
|
||||
Gist_heat = sequential2 .. "gist_heat.cmap",
|
||||
Copper = sequential2 .. "copper.cmap"
|
||||
}
|
||||
asset.export("Sequential2", Sequential2)
|
||||
|
||||
|
||||
-- Diverging maps, with lightness monotonically increasing up to a maximum,
|
||||
-- followed by monotonically decreasing
|
||||
|
||||
local diverging = asset.resource({
|
||||
Name = "Diverging Color Maps",
|
||||
Type = "HttpSynchronization",
|
||||
Identifier = "default_colormaps_diverging",
|
||||
Version = 1
|
||||
})
|
||||
|
||||
local Diverging = {
|
||||
PiYG = diverging .. "PiYG.cmap",
|
||||
PRGn = diverging .. "PRGn.cmap",
|
||||
BrBG = diverging .. "BrBG.cmap",
|
||||
PuOr = diverging .. "PuOr.cmap",
|
||||
RdGy = diverging .. "RdGy.cmap",
|
||||
RdBu = diverging .. "RdBu.cmap",
|
||||
RdYlBu = diverging .. "RdYlBu.cmap",
|
||||
RdYlGn = diverging .. "RdYlGn.cmap",
|
||||
Spectral = diverging .. "Spectral.cmap",
|
||||
Coolwarm = diverging .. "coolwarm.cmap",
|
||||
Bwr = diverging .. "bwr.cmap",
|
||||
Seismic = diverging .. "seismic.cmap"
|
||||
}
|
||||
asset.export("Diverging", Diverging)
|
||||
|
||||
|
||||
-- Cyclic colormaps, that start and end on the same color, and meet a symmetric center
|
||||
-- point in the middle
|
||||
|
||||
local cyclic = asset.resource({
|
||||
Name = "Cyclic Color Maps",
|
||||
Type = "HttpSynchronization",
|
||||
Identifier = "default_colormaps_cyclic",
|
||||
Version = 1
|
||||
})
|
||||
|
||||
local Cyclic = {
|
||||
Twilight = cyclic .. "twilight.cmap",
|
||||
Twilight_shifted = cyclic .. "twilight_shifted.cmap",
|
||||
Hsv = cyclic .. "hsv.cmap"
|
||||
}
|
||||
asset.export("Cyclic", Cyclic)
|
||||
|
||||
|
||||
-- Qualitative colormaps
|
||||
|
||||
local qualitative = asset.resource({
|
||||
Name = "Qualitative Color Maps",
|
||||
Type = "HttpSynchronization",
|
||||
Identifier = "default_colormaps_qualitative",
|
||||
Version = 1
|
||||
})
|
||||
|
||||
local Qualitative = {
|
||||
Pastel1 = qualitative .. "Pastel1.cmap",
|
||||
Pastel2 = qualitative .. "Pastel2.cmap",
|
||||
Paired = qualitative .. "Paired.cmap",
|
||||
Accent = qualitative .. "Accent.cmap",
|
||||
Dark2 = qualitative .. "Dark2.cmap",
|
||||
Set1 = qualitative .. "Set1.cmap",
|
||||
Set2 = qualitative .. "Set2.cmap",
|
||||
Set3 = qualitative .. "Set3.cmap",
|
||||
Tab10 = qualitative .. "tab10.cmap",
|
||||
Tab20 = qualitative .. "tab20.cmap",
|
||||
Tab20b = qualitative .. "tab20b.cmap",
|
||||
Tab20c = qualitative .. "tab20c.cmap"
|
||||
}
|
||||
asset.export("Qualitative", Qualitative)
|
||||
|
||||
|
||||
-- Miscellaneous colormaps
|
||||
|
||||
local misc = asset.resource({
|
||||
Name = "Miscellaneous Color Maps",
|
||||
Type = "HttpSynchronization",
|
||||
Identifier = "default_colormaps_misc",
|
||||
Version = 1
|
||||
})
|
||||
|
||||
local Misc = {
|
||||
Flag = misc .. "flag.cmap",
|
||||
Prism = misc .. "prism.cmap",
|
||||
Ocean = misc .. "ocean.cmap",
|
||||
Gist_earth = misc .. "gist_earth.cmap",
|
||||
Terrain = misc .. "terrain.cmap",
|
||||
Gist_stern = misc .. "gist_stern.cmap",
|
||||
Gnuplot = misc .. "gnuplot.cmap",
|
||||
Gnuplot2 = misc .. "gnuplot2.cmap",
|
||||
CMRmap = misc .. "CMRmap.cmap",
|
||||
Cubehelix = misc .. "cubehelix.cmap",
|
||||
Brg = misc .. "brg.cmap",
|
||||
Gist_rainbow = misc .. "gist_rainbow.cmap",
|
||||
Rainbow = misc .. "rainbow.cmap",
|
||||
Jet = misc .. "jet.cmap",
|
||||
Turbo = misc .. "turbo.cmap",
|
||||
Nipy_spectral = misc .. "nipy_spectral.cmap",
|
||||
Gist_ncar = misc .. "gist_ncar.cmap"
|
||||
}
|
||||
asset.export("Misc", Misc)
|
||||
|
||||
|
||||
|
||||
asset.meta = {
|
||||
Name = "Default Color Maps",
|
||||
Version = "1.0",
|
||||
Description = [[Load a set of default color maps that can be used in other assets. The
|
||||
color maps are created and categorized based on the ones in Matplotlib.
|
||||
https://matplotlib.org/stable/users/explain/colors/colormaps.html]],
|
||||
Author = "OpenSpace Team",
|
||||
URL = "http://openspaceproject.com",
|
||||
License = "MIT license"
|
||||
}
|
||||
Submodule ext/ghoul updated: ba6aece1de...06d72a031c
Submodule ext/spice updated: 5dba0f3269...711ffdb918
@@ -2,7 +2,7 @@
|
||||
* *
|
||||
* OpenSpace *
|
||||
* *
|
||||
* Copyright (c) 2014-2023 *
|
||||
* Copyright (c) 2014-2024 *
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
||||
* software and associated documentation files (the "Software"), to deal in the Software *
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* *
|
||||
* OpenSpace *
|
||||
* *
|
||||
* Copyright (c) 2014-2023 *
|
||||
* Copyright (c) 2014-2024 *
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
||||
* software and associated documentation files (the "Software"), to deal in the Software *
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* *
|
||||
* OpenSpace *
|
||||
* *
|
||||
* Copyright (c) 2014-2023 *
|
||||
* Copyright (c) 2014-2024 *
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
||||
* software and associated documentation files (the "Software"), to deal in the Software *
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* *
|
||||
* OpenSpace *
|
||||
* *
|
||||
* Copyright (c) 2014-2023 *
|
||||
* Copyright (c) 2014-2024 *
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
||||
* software and associated documentation files (the "Software"), to deal in the Software *
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* *
|
||||
* OpenSpace *
|
||||
* *
|
||||
* Copyright (c) 2014-2023 *
|
||||
* Copyright (c) 2014-2024 *
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
||||
* software and associated documentation files (the "Software"), to deal in the Software *
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* *
|
||||
* OpenSpace *
|
||||
* *
|
||||
* Copyright (c) 2014-2023 *
|
||||
* Copyright (c) 2014-2024 *
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
||||
* software and associated documentation files (the "Software"), to deal in the Software *
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* *
|
||||
* OpenSpace *
|
||||
* *
|
||||
* Copyright (c) 2014-2023 *
|
||||
* Copyright (c) 2014-2024 *
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
||||
* software and associated documentation files (the "Software"), to deal in the Software *
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* *
|
||||
* OpenSpace *
|
||||
* *
|
||||
* Copyright (c) 2014-2023 *
|
||||
* Copyright (c) 2014-2024 *
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
||||
* software and associated documentation files (the "Software"), to deal in the Software *
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* *
|
||||
* OpenSpace *
|
||||
* *
|
||||
* Copyright (c) 2014-2023 *
|
||||
* Copyright (c) 2014-2024 *
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
||||
* software and associated documentation files (the "Software"), to deal in the Software *
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* *
|
||||
* OpenSpace *
|
||||
* *
|
||||
* Copyright (c) 2014-2023 *
|
||||
* Copyright (c) 2014-2024 *
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
||||
* software and associated documentation files (the "Software"), to deal in the Software *
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* *
|
||||
* OpenSpace *
|
||||
* *
|
||||
* Copyright (c) 2014-2023 *
|
||||
* Copyright (c) 2014-2024 *
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
||||
* software and associated documentation files (the "Software"), to deal in the Software *
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* *
|
||||
* OpenSpace *
|
||||
* *
|
||||
* Copyright (c) 2014-2023 *
|
||||
* Copyright (c) 2014-2024 *
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
||||
* software and associated documentation files (the "Software"), to deal in the Software *
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* *
|
||||
* OpenSpace *
|
||||
* *
|
||||
* Copyright (c) 2014-2023 *
|
||||
* Copyright (c) 2014-2024 *
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
||||
* software and associated documentation files (the "Software"), to deal in the Software *
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* *
|
||||
* OpenSpace *
|
||||
* *
|
||||
* Copyright (c) 2014-2023 *
|
||||
* Copyright (c) 2014-2024 *
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
||||
* software and associated documentation files (the "Software"), to deal in the Software *
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* *
|
||||
* OpenSpace *
|
||||
* *
|
||||
* Copyright (c) 2014-2023 *
|
||||
* Copyright (c) 2014-2024 *
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
||||
* software and associated documentation files (the "Software"), to deal in the Software *
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* *
|
||||
* OpenSpace *
|
||||
* *
|
||||
* Copyright (c) 2014-2023 *
|
||||
* Copyright (c) 2014-2024 *
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
||||
* software and associated documentation files (the "Software"), to deal in the Software *
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* *
|
||||
* OpenSpace *
|
||||
* *
|
||||
* Copyright (c) 2014-2023 *
|
||||
* Copyright (c) 2014-2024 *
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
||||
* software and associated documentation files (the "Software"), to deal in the Software *
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* *
|
||||
* OpenSpace *
|
||||
* *
|
||||
* Copyright (c) 2014-2023 *
|
||||
* Copyright (c) 2014-2024 *
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
||||
* software and associated documentation files (the "Software"), to deal in the Software *
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* *
|
||||
* OpenSpace *
|
||||
* *
|
||||
* Copyright (c) 2014-2023 *
|
||||
* Copyright (c) 2014-2024 *
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
||||
* software and associated documentation files (the "Software"), to deal in the Software *
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* *
|
||||
* OpenSpace *
|
||||
* *
|
||||
* Copyright (c) 2014-2023 *
|
||||
* Copyright (c) 2014-2024 *
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
||||
* software and associated documentation files (the "Software"), to deal in the Software *
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* *
|
||||
* OpenSpace *
|
||||
* *
|
||||
* Copyright (c) 2014-2023 *
|
||||
* Copyright (c) 2014-2024 *
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
||||
* software and associated documentation files (the "Software"), to deal in the Software *
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* *
|
||||
* OpenSpace *
|
||||
* *
|
||||
* Copyright (c) 2014-2023 *
|
||||
* Copyright (c) 2014-2024 *
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
||||
* software and associated documentation files (the "Software"), to deal in the Software *
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* *
|
||||
* OpenSpace *
|
||||
* *
|
||||
* Copyright (c) 2014-2023 *
|
||||
* Copyright (c) 2014-2024 *
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
||||
* software and associated documentation files (the "Software"), to deal in the Software *
|
||||
@@ -80,7 +80,8 @@ struct Event {
|
||||
CameraPathStarted,
|
||||
CameraPathFinished,
|
||||
CameraMovedPosition,
|
||||
Custom
|
||||
Custom,
|
||||
Last // sentinel value
|
||||
};
|
||||
constexpr explicit Event(Type type_) : type(type_) {}
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* *
|
||||
* OpenSpace *
|
||||
* *
|
||||
* Copyright (c) 2014-2023 *
|
||||
* Copyright (c) 2014-2024 *
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
||||
* software and associated documentation files (the "Software"), to deal in the Software *
|
||||
@@ -36,6 +36,8 @@ namespace events { struct Event; }
|
||||
|
||||
class EventEngine {
|
||||
public:
|
||||
using ScriptCallback = std::function<void(ghoul::Dictionary)>;
|
||||
|
||||
struct ActionInfo {
|
||||
events::Event::Type type;
|
||||
uint32_t id = std::numeric_limits<uint32_t>::max();
|
||||
@@ -44,6 +46,11 @@ public:
|
||||
std::optional<ghoul::Dictionary> filter;
|
||||
};
|
||||
|
||||
struct TopicInfo {
|
||||
uint32_t id = std::numeric_limits<uint32_t>::max();
|
||||
ScriptCallback callback;
|
||||
};
|
||||
|
||||
/**
|
||||
* This function returns the first event stored in the EventEngine, or `nullptr` if
|
||||
* no event exists. To navigate the full list of events, you can access the returned
|
||||
@@ -87,6 +94,16 @@ public:
|
||||
void registerEventAction(events::Event::Type type, std::string identifier,
|
||||
std::optional<ghoul::Dictionary> filter = std::nullopt);
|
||||
|
||||
/**
|
||||
* Registers a new topic for a specific event type.
|
||||
*
|
||||
* \param topicId The id of the topic that will be triggered
|
||||
* \param type The type for which a new topic is registered
|
||||
* \param callback The callback function that will be called on triggered event
|
||||
*/
|
||||
void registerEventTopic(size_t topicId, events::Event::Type type,
|
||||
ScriptCallback callback);
|
||||
|
||||
/**
|
||||
* Removing registration for a type/action combination.
|
||||
*
|
||||
@@ -105,6 +122,15 @@ public:
|
||||
*/
|
||||
void unregisterEventAction(uint32_t identifier);
|
||||
|
||||
/**
|
||||
* Removing registration for a topic/type combination, does nothing if topicId or type
|
||||
* combination does not exist
|
||||
*
|
||||
* \param topicId The id of the topic that should be unregistered
|
||||
* \param type The type of the topic that should be unregistered
|
||||
*/
|
||||
void unregisterEventTopic(size_t topicId, events::Event::Type type);
|
||||
|
||||
/**
|
||||
* Returns the list of all registered actions, sorted by their identifiers.
|
||||
*
|
||||
@@ -134,6 +160,12 @@ public:
|
||||
*/
|
||||
void triggerActions() const;
|
||||
|
||||
/**
|
||||
* Triggers all topics that are registered for events that are in the current event
|
||||
* queue.
|
||||
*/
|
||||
void triggerTopics() const;
|
||||
|
||||
static scripting::LuaLibrary luaLibrary();
|
||||
|
||||
private:
|
||||
@@ -149,6 +181,8 @@ private:
|
||||
/// the lookup really fast. So having this extra wasted memory is probably worth it
|
||||
std::unordered_map<events::Event::Type, std::vector<ActionInfo>> _eventActions;
|
||||
|
||||
std::unordered_map<events::Event::Type, std::vector<TopicInfo>> _eventTopics;
|
||||
|
||||
static uint32_t nextRegisteredEventId;
|
||||
|
||||
#ifdef _DEBUG
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* *
|
||||
* OpenSpace *
|
||||
* *
|
||||
* Copyright (c) 2014-2023 *
|
||||
* Copyright (c) 2014-2024 *
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
||||
* software and associated documentation files (the "Software"), to deal in the Software *
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* *
|
||||
* OpenSpace *
|
||||
* *
|
||||
* Copyright (c) 2014-2023 *
|
||||
* Copyright (c) 2014-2024 *
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
||||
* software and associated documentation files (the "Software"), to deal in the Software *
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* *
|
||||
* OpenSpace *
|
||||
* *
|
||||
* Copyright (c) 2014-2023 *
|
||||
* Copyright (c) 2014-2024 *
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
||||
* software and associated documentation files (the "Software"), to deal in the Software *
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* *
|
||||
* OpenSpace *
|
||||
* *
|
||||
* Copyright (c) 2014-2023 *
|
||||
* Copyright (c) 2014-2024 *
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
||||
* software and associated documentation files (the "Software"), to deal in the Software *
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* *
|
||||
* OpenSpace *
|
||||
* *
|
||||
* Copyright (c) 2014-2023 *
|
||||
* Copyright (c) 2014-2024 *
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
||||
* software and associated documentation files (the "Software"), to deal in the Software *
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* *
|
||||
* OpenSpace *
|
||||
* *
|
||||
* Copyright (c) 2014-2023 *
|
||||
* Copyright (c) 2014-2024 *
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
||||
* software and associated documentation files (the "Software"), to deal in the Software *
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user