Rerun C++ SDK
Loading...
Searching...
No Matches
space_view_blueprint.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/space_view_blueprint.fbs".
3
4#pragma once
5
6#include "../../blueprint/components/space_view_class.hpp"
7#include "../../blueprint/components/space_view_origin.hpp"
8#include "../../blueprint/components/visible.hpp"
9#include "../../collection.hpp"
10#include "../../compiler_utils.hpp"
11#include "../../component_batch.hpp"
12#include "../../components/name.hpp"
13#include "../../indicator_component.hpp"
14#include "../../result.hpp"
15
16#include <cstdint>
17#include <optional>
18#include <utility>
19#include <vector>
20
21namespace rerun::blueprint::archetypes {
22 /// **Archetype**: The description of a single view.
24 /// The class of the view.
26
27 /// The name of the view.
28 std::optional<rerun::components::Name> display_name;
29
30 /// The "anchor point" of this space view.
31 ///
32 /// Defaults to the root path '/' if not specified.
33 ///
34 /// The transform at this path forms the reference point for all scene->world transforms in this space view.
35 /// I.e. the position of this entity path in space forms the origin of the coordinate system in this space view.
36 /// Furthermore, this is the primary indicator for heuristics on what entities we show in this space view.
37 std::optional<rerun::blueprint::components::SpaceViewOrigin> space_origin;
38
39 /// Whether this space view is visible.
40 ///
41 /// Defaults to true if not specified.
42 std::optional<rerun::blueprint::components::Visible> visible;
43
44 public:
45 static constexpr const char IndicatorComponentName[] =
46 "rerun.blueprint.components.SpaceViewBlueprintIndicator";
47
48 /// Indicator component, used to identify the archetype when converting to a list of components.
50
51 public:
52 SpaceViewBlueprint() = default;
53 SpaceViewBlueprint(SpaceViewBlueprint&& other) = default;
54
56 : class_identifier(std::move(_class_identifier)) {}
57
58 /// The name of the view.
60 display_name = std::move(_display_name);
61 // See: https://github.com/rerun-io/rerun/issues/4027
62 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(return std::move(*this);)
63 }
64
65 /// The "anchor point" of this space view.
66 ///
67 /// Defaults to the root path '/' if not specified.
68 ///
69 /// The transform at this path forms the reference point for all scene->world transforms in this space view.
70 /// I.e. the position of this entity path in space forms the origin of the coordinate system in this space view.
71 /// Furthermore, this is the primary indicator for heuristics on what entities we show in this space view.
74 ) && {
75 space_origin = std::move(_space_origin);
76 // See: https://github.com/rerun-io/rerun/issues/4027
77 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(return std::move(*this);)
78 }
79
80 /// Whether this space view is visible.
81 ///
82 /// Defaults to true if not specified.
84 visible = std::move(_visible);
85 // See: https://github.com/rerun-io/rerun/issues/4027
86 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(return std::move(*this);)
87 }
88 };
89
90} // namespace rerun::blueprint::archetypes
91
92namespace rerun {
93 /// \private
94 template <typename T>
95 struct AsComponents;
96
97 /// \private
98 template <>
99 struct AsComponents<blueprint::archetypes::SpaceViewBlueprint> {
100 /// Serialize all set component batches.
101 static Result<std::vector<ComponentBatch>> serialize(
103 );
104 };
105} // 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: The description of a single view.
Definition space_view_blueprint.hpp:23
rerun::blueprint::components::SpaceViewClass class_identifier
The class of the view.
Definition space_view_blueprint.hpp:25
SpaceViewBlueprint with_space_origin(rerun::blueprint::components::SpaceViewOrigin _space_origin) &&
The "anchor point" of this space view.
Definition space_view_blueprint.hpp:72
std::optional< rerun::components::Name > display_name
The name of the view.
Definition space_view_blueprint.hpp:28
std::optional< rerun::blueprint::components::SpaceViewOrigin > space_origin
The "anchor point" of this space view.
Definition space_view_blueprint.hpp:37
SpaceViewBlueprint with_visible(rerun::blueprint::components::Visible _visible) &&
Whether this space view is visible.
Definition space_view_blueprint.hpp:83
std::optional< rerun::blueprint::components::Visible > visible
Whether this space view is visible.
Definition space_view_blueprint.hpp:42
SpaceViewBlueprint with_display_name(rerun::components::Name _display_name) &&
The name of the view.
Definition space_view_blueprint.hpp:59
Component: The class identifier of view, e.g. "2D", "TextLog", ….
Definition space_view_class.hpp:16
Component: The origin of a SpaceView.
Definition space_view_origin.hpp:16
Component: Whether the container, view, entity or instance is currently visible.
Definition visible.hpp:14
Indicator component used by archetypes when converting them to component lists.
Definition indicator_component.hpp:30
Component: A display name, typically for an entity or a item like a plot series.
Definition name.hpp:16