Rerun C++ SDK
Loading...
Searching...
No Matches
transform_relation.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/transform_relation.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**: Specifies relation a spatial transform describes.
24 enum class TransformRelation : uint8_t {
25
26 /// The transform describes how to transform into the parent entity's space.
27 ///
28 /// E.g. a translation of (0, 1, 0) with this `components::TransformRelation` logged at `parent/child` means
29 /// that from the point of view of `parent`, `parent/child` is translated 1 unit along `parent`'s Y axis.
30 /// From perspective of `parent/child`, the `parent` entity is translated -1 unit along `parent/child`'s Y axis.
32
33 /// The transform describes how to transform into the child entity's space.
34 ///
35 /// E.g. a translation of (0, 1, 0) with this `components::TransformRelation` logged at `parent/child` means
36 /// that from the point of view of `parent`, `parent/child` is translated -1 unit along `parent`'s Y axis.
37 /// From perspective of `parent/child`, the `parent` entity is translated 1 unit along `parent/child`'s Y axis.
39 };
40} // namespace rerun::components
41
42namespace rerun {
43 template <typename T>
44 struct Loggable;
45
46 /// \private
47 template <>
48 struct Loggable<components::TransformRelation> {
49 static constexpr const char Name[] = "rerun.components.TransformRelation";
50
51 /// Returns the arrow data type this type corresponds to.
52 static const std::shared_ptr<arrow::DataType>& arrow_datatype();
53
54 /// Serializes an array of `rerun::components::TransformRelation` into an arrow array.
55 static Result<std::shared_ptr<arrow::Array>> to_arrow(
56 const components::TransformRelation* instances, size_t num_instances
57 );
58
59 /// Fills an arrow array builder with an array of this type.
60 static rerun::Error fill_arrow_array_builder(
61 arrow::UInt8Builder* builder, const components::TransformRelation* elements,
62 size_t num_elements
63 );
64 };
65} // 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
TransformRelation
Component: Specifies relation a spatial transform describes.
Definition transform_relation.hpp:24
@ ParentFromChild
The transform describes how to transform into the parent entity's space.
@ ChildFromParent
The transform describes how to transform into the child entity's space.
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:22