Rerun C++ SDK
Loading...
Searching...
No Matches
visualizer_component_mapping.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_sdk_types/definitions/rerun/blueprint/datatypes/visualizer_component_mapping.fbs".
3
4#pragma once
5
6#include "../../datatypes/utf8.hpp"
7#include "../../result.hpp"
8#include "component_source_kind.hpp"
9
10#include <cstdint>
11#include <memory>
12#include <optional>
13
14namespace arrow {
15 class Array;
16 class DataType;
17 class StructBuilder;
18} // namespace arrow
19
20namespace rerun::blueprint::datatypes {
21 /// **Datatype**: Associate components of an entity to components of a visualizer.
22 ///
23 /// ⚠ **This type is _unstable_ and may change significantly in a way that the data won't be backwards compatible.**
24 ///
26 /// Target component name which is being mapped to.
27 ///
28 /// This represents a "slot" on the visualizer.
30
31 /// What kind of source to pick.
32 rerun::blueprint::datatypes::ComponentSourceKind source_kind;
33
34 /// Component selector for mapping.
35 ///
36 /// Defaults to `target` if not specified.
37 std::optional<rerun::datatypes::Utf8> source_component;
38
39 /// Optional selector string using jq-like syntax to pick a specific field on `source_component`.
40 ///
41 /// ⚠ TODO(RR-3308): Not fully implemented yet.
42 ///
43 /// Example: ".x" picks a field called "x" from the `source_component` if present.
44 ///
45 /// Defaults to empty string if not specified.
46 std::optional<rerun::datatypes::Utf8> selector;
47
48 public:
50 };
51} // namespace rerun::blueprint::datatypes
52
53namespace rerun {
54 template <typename T>
55 struct Loggable;
56
57 /// \private
58 template <>
60 static constexpr std::string_view ComponentType =
61 "rerun.blueprint.datatypes.VisualizerComponentMapping";
62
63 /// Returns the arrow data type this type corresponds to.
64 static const std::shared_ptr<arrow::DataType>& arrow_datatype();
65
66 /// Serializes an array of `rerun::blueprint:: datatypes::VisualizerComponentMapping` into an arrow array.
68 const blueprint::datatypes::VisualizerComponentMapping* instances, size_t num_instances
69 );
70
71 /// Fills an arrow array builder with an array of this type.
72 static rerun::Error fill_arrow_array_builder(
73 arrow::StructBuilder* builder,
74 const blueprint::datatypes::VisualizerComponentMapping* elements, size_t num_elements
75 );
76 };
77} // namespace rerun
Status outcome object (success or error) returned for fallible operations.
Definition error.hpp:103
A class for representing either a usable value, or an error.
Definition result.hpp:14
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:23
A type of component that can be registered.
Definition component_type.hpp:19
The Loggable trait is used by all built-in implementation of rerun::AsComponents to serialize a colle...
Definition loggable.hpp:11
Datatype: Associate components of an entity to components of a visualizer.
Definition visualizer_component_mapping.hpp:25
std::optional< rerun::datatypes::Utf8 > source_component
Component selector for mapping.
Definition visualizer_component_mapping.hpp:37
rerun::blueprint::datatypes::ComponentSourceKind source_kind
What kind of source to pick.
Definition visualizer_component_mapping.hpp:32
std::optional< rerun::datatypes::Utf8 > selector
Optional selector string using jq-like syntax to pick a specific field on source_component.
Definition visualizer_component_mapping.hpp:46
rerun::datatypes::Utf8 target
Target component name which is being mapped to.
Definition visualizer_component_mapping.hpp:29
Datatype: A string of text, encoded as UTF-8.
Definition utf8.hpp:21