Rerun C++ SDK
Loading...
Searching...
No Matches
visual_bounds2d.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/visual_bounds2d.fbs".
3
4#pragma once
5
6#include "../../blueprint/components/visual_bounds2d.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**: Controls the visual bounds of a 2D view.
18 ///
19 /// Everything within these bounds are guaranteed to be visible.
20 /// Somethings outside of these bounds may also be visible due to letterboxing.
21 ///
22 /// If no visual bounds are set, it will be determined automatically,
23 /// based on the bounding-box of the data or other camera information present in the view.
25 /// Controls the visible range of a 2D view.
26 ///
27 /// Use this to control pan & zoom of the view.
29
30 public:
31 static constexpr const char IndicatorComponentName[] =
32 "rerun.blueprint.components.VisualBounds2DIndicator";
33
34 /// Indicator component, used to identify the archetype when converting to a list of components.
36
37 public:
38 VisualBounds2D() = default;
39 VisualBounds2D(VisualBounds2D&& other) = default;
40
42 : range(std::move(_range)) {}
43 };
44
45} // namespace rerun::blueprint::archetypes
46
47namespace rerun {
48 /// \private
49 template <typename T>
50 struct AsComponents;
51
52 /// \private
53 template <>
54 struct AsComponents<blueprint::archetypes::VisualBounds2D> {
55 /// Serialize all set component batches.
56 static Result<std::vector<ComponentBatch>> serialize(
58 );
59 };
60} // 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: Controls the visual bounds of a 2D view.
Definition visual_bounds2d.hpp:24
rerun::blueprint::components::VisualBounds2D range
Controls the visible range of a 2D view.
Definition visual_bounds2d.hpp:28
Component: Visual bounds in 2D space used for Spatial2DView.
Definition visual_bounds2d.hpp:14
Indicator component used by archetypes when converting them to component lists.
Definition indicator_component.hpp:30