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