Rerun C++ SDK
Loading...
Searching...
No Matches
map_background.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_background.fbs".
3
4#pragma once
5
6#include "../../blueprint/components/map_provider.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 for the background map of the map view.
19 /// Map provider and style to use.
20 ///
21 /// **Note**: Requires a Mapbox API key in the `RERUN_MAPBOX_ACCESS_TOKEN` environment variable.
22 rerun::blueprint::components::MapProvider provider;
23
24 public:
25 static constexpr const char IndicatorComponentName[] =
26 "rerun.blueprint.components.MapBackgroundIndicator";
27
28 /// Indicator component, used to identify the archetype when converting to a list of components.
30
31 public:
32 MapBackground() = default;
33 MapBackground(MapBackground&& other) = default;
34
35 explicit MapBackground(rerun::blueprint::components::MapProvider _provider)
36 : provider(std::move(_provider)) {}
37 };
38
39} // namespace rerun::blueprint::archetypes
40
41namespace rerun {
42 /// \private
43 template <typename T>
44 struct AsComponents;
45
46 /// \private
47 template <>
48 struct AsComponents<blueprint::archetypes::MapBackground> {
49 /// Serialize all set component batches.
50 static Result<std::vector<ComponentBatch>> serialize(
52 );
53 };
54} // 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:23
Archetype: Configuration for the background map of the map view.
Definition map_background.hpp:18
rerun::blueprint::components::MapProvider provider
Map provider and style to use.
Definition map_background.hpp:22
Indicator component used by archetypes when converting them to component lists.
Definition indicator_component.hpp:32