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>
7#include <optional>
8
9namespace boat::gui {
10
11struct view {
13 double resolution = 9'783.94;
14};
15
16struct layer {
18 uint32_t color = 0xff000000;
19 double width = 1;
20 std::optional<uint32_t> fill;
21 bool hidden = false;
22};
23
24struct source {
26 std::vector<std::variant<layer, source>> children;
27};
28
29struct scene {
30 std::vector<source> sources;
32};
33
34} // namespace boat::gui
35
36#endif // BOAT_GUI_SCENE_HPP
Definition cache.hpp:9
Definition meta.hpp:18
Definition meta.hpp:13
model::d2::point_xy< double, cs::geographic< boost::geometry::degree > > point
Definition vocabulary.hpp:65
Definition scene.hpp:16
double width
Pixels; 0 selects a cosmetic pen.
Definition scene.hpp:19
bool hidden
Definition scene.hpp:21
std::optional< uint32_t > fill
ARGB.
Definition scene.hpp:20
uint32_t color
ARGB.
Definition scene.hpp:18
db::layer db
Definition scene.hpp:17
Definition scene.hpp:29
std::vector< source > sources
Definition scene.hpp:30
gui::view view
Definition scene.hpp:31
Definition scene.hpp:24
db::source db
Definition scene.hpp:25
std::vector< std::variant< layer, source > > children
Definition scene.hpp:26
Definition scene.hpp:11
geometry::geographic::point center
Definition scene.hpp:12
double resolution
Metres per pixel.
Definition scene.hpp:13