Rerun C++ SDK
Loading...
Searching...
No Matches
background_kind.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/components/background_kind.fbs".
3
4#pragma once
5
6#include "../../component_descriptor.hpp"
7#include "../../result.hpp"
8
9#include <cstdint>
10#include <memory>
11
12namespace arrow {
13 /// \private
14 template <typename T>
15 class NumericBuilder;
16
17 class Array;
18 class DataType;
19 class UInt8Type;
20 using UInt8Builder = NumericBuilder<UInt8Type>;
21} // namespace arrow
22
23namespace rerun::blueprint::components {
24 /// **Component**: The type of the background in a view.
25 enum class BackgroundKind : uint8_t {
26
27 /// A dark gradient.
28 ///
29 /// In 3D views it changes depending on the direction of the view.
30 GradientDark = 1,
31
32 /// A bright gradient.
33 ///
34 /// In 3D views it changes depending on the direction of the view.
35 GradientBright = 2,
36
37 /// Simple uniform color.
38 SolidColor = 3,
39 };
40} // namespace rerun::blueprint::components
41
42namespace rerun {
43 template <typename T>
44 struct Loggable;
45
46 /// \private
47 template <>
48 struct Loggable<blueprint::components::BackgroundKind> {
49 static constexpr ComponentDescriptor Descriptor =
50 "rerun.blueprint.components.BackgroundKind";
51
52 /// Returns the arrow data type this type corresponds to.
53 static const std::shared_ptr<arrow::DataType>& arrow_datatype();
54
55 /// Serializes an array of `rerun::blueprint:: components::BackgroundKind` into an arrow array.
56 static Result<std::shared_ptr<arrow::Array>> to_arrow(
57 const blueprint::components::BackgroundKind* instances, size_t num_instances
58 );
59
60 /// Fills an arrow array builder with an array of this type.
61 static rerun::Error fill_arrow_array_builder(
62 arrow::UInt8Builder* builder, const blueprint::components::BackgroundKind* elements,
63 size_t num_elements
64 );
65 };
66} // namespace rerun
Status outcome object (success or error) returned for fallible operations.
Definition error.hpp:95
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:23