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