boat
C++23 geospatial library
Loading...
Searching...
No Matches
scene.hpp
Go to the documentation of this file.
1// Andrew Naplavkov
2
3#ifndef BOAT_GUI_SCENE_HPP
4#define BOAT_GUI_SCENE_HPP
5
6#include <boat/db/meta.hpp>
8#include <optional>
9
10namespace boat::gui {
11
12struct view {
14 double resolution = 9'783.94;
15};
16
17struct layer {
19 uint32_t color = 0xff000000;
20 double width = 1;
21 std::optional<uint32_t> fill;
22 bool hidden = false;
23};
24
25struct source {
27 std::vector<std::variant<layer, source>> children;
28};
29
30struct scene {
31 std::vector<source> sources;
33};
34
35} // namespace boat::gui
36
37#endif // BOAT_GUI_SCENE_HPP
Definition cache.hpp:11
Definition meta.hpp:18
Definition meta.hpp:13
model::d2::point_xy< double, boost::geometry::cs::geographic< boost::geometry::degree > > point
Definition vocabulary.hpp:60
Definition scene.hpp:17
double width
pixels
Definition scene.hpp:20
bool hidden
Definition scene.hpp:22
std::optional< uint32_t > fill
Definition scene.hpp:21
uint32_t color
ARGB.
Definition scene.hpp:19
db::layer db
Definition scene.hpp:18
Definition scene.hpp:30
std::vector< source > sources
Definition scene.hpp:31
gui::view view
Definition scene.hpp:32
Definition scene.hpp:25
db::source db
Definition scene.hpp:26
std::vector< std::variant< layer, source > > children
Definition scene.hpp:27
Definition scene.hpp:12
geometry::geographic::point center
Definition scene.hpp:13
double resolution
metres per pixel
Definition scene.hpp:14