Rerun C++ SDK
Loading...
Searching...
No Matches
link_axis.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/link_axis.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**: How should the horizontal/X/time axis be linked across multiple plots
25 enum class LinkAxis : uint8_t {
26
27 /// The axis is independent from all other plots.
28 Independent = 1,
29
30 /// Link to all other plots that also have this options set.
31 LinkToGlobal = 2,
32 };
33} // namespace rerun::blueprint::components
34
35namespace rerun {
36 template <typename T>
37 struct Loggable;
38
39 /// \private
40 template <>
41 struct Loggable<blueprint::components::LinkAxis> {
42 static constexpr ComponentDescriptor Descriptor = "rerun.blueprint.components.LinkAxis";
43
44 /// Returns the arrow data type this type corresponds to.
45 static const std::shared_ptr<arrow::DataType>& arrow_datatype();
46
47 /// Serializes an array of `rerun::blueprint:: components::LinkAxis` into an arrow array.
48 static Result<std::shared_ptr<arrow::Array>> to_arrow(
49 const blueprint::components::LinkAxis* instances, size_t num_instances
50 );
51
52 /// Fills an arrow array builder with an array of this type.
53 static rerun::Error fill_arrow_array_builder(
54 arrow::UInt8Builder* builder, const blueprint::components::LinkAxis* elements,
55 size_t num_elements
56 );
57 };
58} // namespace rerun
Status outcome object (success or error) returned for fallible operations.
Definition error.hpp:99
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:23