Rerun C++ SDK
Loading...
Searching...
No Matches
corner2d.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/corner_2d.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**: One of four 2D corners, typically used to align objects.
24 enum class Corner2D : uint8_t {
25
26 /// Left top corner.
27 LeftTop = 1,
28
29 /// Right top corner.
30 RightTop = 2,
31
32 /// Left bottom corner.
33 LeftBottom = 3,
34
35 /// Right bottom corner.
36 RightBottom = 4,
37 };
38} // namespace rerun::blueprint::components
39
40namespace rerun {
41 template <typename T>
42 struct Loggable;
43
44 /// \private
45 template <>
46 struct Loggable<blueprint::components::Corner2D> {
47 static constexpr const char Name[] = "rerun.blueprint.components.Corner2D";
48
49 /// Returns the arrow data type this type corresponds to.
50 static const std::shared_ptr<arrow::DataType>& arrow_datatype();
51
52 /// Serializes an array of `rerun::blueprint:: components::Corner2D` into an arrow array.
53 static Result<std::shared_ptr<arrow::Array>> to_arrow(
54 const blueprint::components::Corner2D* instances, size_t num_instances
55 );
56
57 /// Fills an arrow array builder with an array of this type.
58 static rerun::Error fill_arrow_array_builder(
59 arrow::UInt8Builder* builder, const blueprint::components::Corner2D* elements,
60 size_t num_elements
61 );
62 };
63} // 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:22