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