Rerun C++ SDK
Loading...
Searching...
No Matches
marker_shape.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/components/marker_shape.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::components {
23 /// **Component**: The visual appearance of a point in e.g. a 2D plot.
24 enum class MarkerShape : uint8_t {
25
26 /// `⏺`
27 Circle = 1,
28
29 /// `◆`
30 Diamond = 2,
31
32 /// `◼\u{fe0f}`
33 Square = 3,
34
35 /// `x`
36 Cross = 4,
37
38 /// `+`
39 Plus = 5,
40
41 /// `▲`
42 Up = 6,
43
44 /// `▼`
45 Down = 7,
46
47 /// `◀`
48 Left = 8,
49
50 /// `▶`
51 Right = 9,
52
53 /// `*`
54 Asterisk = 10,
55 };
56} // namespace rerun::components
57
58namespace rerun {
59 template <typename T>
60 struct Loggable;
61
62 /// \private
63 template <>
64 struct Loggable<components::MarkerShape> {
65 static constexpr const char Name[] = "rerun.components.MarkerShape";
66
67 /// Returns the arrow data type this type corresponds to.
68 static const std::shared_ptr<arrow::DataType>& arrow_datatype();
69
70 /// Serializes an array of `rerun::components::MarkerShape` into an arrow array.
71 static Result<std::shared_ptr<arrow::Array>> to_arrow(
72 const components::MarkerShape* instances, size_t num_instances
73 );
74
75 /// Fills an arrow array builder with an array of this type.
76 static rerun::Error fill_arrow_array_builder(
77 arrow::UInt8Builder* builder, const components::MarkerShape* elements,
78 size_t num_elements
79 );
80 };
81} // namespace rerun
Status outcome object (success or error) returned for fallible operations.
Definition error.hpp:95
All built-in components. See Types in the Rerun manual.
Definition rerun.hpp:79
MarkerShape
Component: The visual appearance of a point in e.g. a 2D plot.
Definition marker_shape.hpp:24
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:22