Rerun C++ SDK
Loading...
Searching...
No Matches
map_zoom.hpp
1// DO NOT EDIT! This file was auto-generated by crates/build/re_types_builder/src/codegen/cpp/mod.rs
2// Based on "crates/store/re_types/definitions/rerun/blueprint/archetypes/map_zoom.fbs".
3
4#pragma once
5
6#include "../../blueprint/components/zoom_level.hpp"
7#include "../../collection.hpp"
8#include "../../component_batch.hpp"
9#include "../../indicator_component.hpp"
10#include "../../result.hpp"
11
12#include <cstdint>
13#include <utility>
14#include <vector>
15
16namespace rerun::blueprint::archetypes {
17 /// **Archetype**: Configuration of the map view zoom level.
18 struct MapZoom {
19 /// Zoom level for the map.
20 ///
21 /// Zoom level follow the [`OpenStreetMap` definition](https://wiki.openstreetmap.org/wiki/Zoom_levels).
23
24 public:
25 static constexpr const char IndicatorComponentName[] =
26 "rerun.blueprint.components.MapZoomIndicator";
27
28 /// Indicator component, used to identify the archetype when converting to a list of components.
30
31 public:
32 MapZoom() = default;
33 MapZoom(MapZoom&& other) = default;
34
35 explicit MapZoom(rerun::blueprint::components::ZoomLevel _zoom) : zoom(std::move(_zoom)) {}
36 };
37
38} // namespace rerun::blueprint::archetypes
39
40namespace rerun {
41 /// \private
42 template <typename T>
43 struct AsComponents;
44
45 /// \private
46 template <>
47 struct AsComponents<blueprint::archetypes::MapZoom> {
48 /// Serialize all set component batches.
49 static Result<std::vector<ComponentBatch>> serialize(
50 const blueprint::archetypes::MapZoom& archetype
51 );
52 };
53} // namespace rerun
A class for representing either a usable value, or an error.
Definition result.hpp:14
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:22
Archetype: Configuration of the map view zoom level.
Definition map_zoom.hpp:18
rerun::blueprint::components::ZoomLevel zoom
Zoom level for the map.
Definition map_zoom.hpp:22
Component: A zoom level determines how much of the world is visible on a map.
Definition zoom_level.hpp:14
Indicator component used by archetypes when converting them to component lists.
Definition indicator_component.hpp:30