Rerun C++ SDK
Loading...
Searching...
No Matches
out_of_tree_transform3d.hpp
1// DO NOT EDIT! This file was auto-generated by crates/re_types_builder/src/codegen/cpp/mod.rs
2// Based on "crates/re_types/definitions/rerun/components/out_of_tree_transform3d.fbs".
3
4#pragma once
5
6#include "../datatypes/transform3d.hpp"
7#include "../result.hpp"
8
9#include <cstdint>
10#include <memory>
11
12namespace arrow {
13 class Array;
14 class DataType;
15 class DenseUnionBuilder;
16} // namespace arrow
17
18namespace rerun::components {
19 /// **Component**: An out-of-tree affine transform between two 3D spaces, represented in a given direction.
20 ///
21 /// "Out-of-tree" means that the transform only affects its own entity: children don't inherit from it.
23 /// Representation of the transform.
25
26 public:
27 OutOfTreeTransform3D() = default;
28
30
32 repr = repr_;
33 return *this;
34 }
35
36 /// Cast to the underlying Transform3D datatype
38 return repr;
39 }
40 };
41} // namespace rerun::components
42
43namespace rerun {
44 template <typename T>
45 struct Loggable;
46
47 /// \private
48 template <>
49 struct Loggable<components::OutOfTreeTransform3D> {
50 static constexpr const char Name[] = "rerun.components.OutOfTreeTransform3D";
51
52 /// Returns the arrow data type this type corresponds to.
53 static const std::shared_ptr<arrow::DataType>& arrow_datatype();
54
55 /// Fills an arrow array builder with an array of this type.
56 static rerun::Error fill_arrow_array_builder(
57 arrow::DenseUnionBuilder* builder, const components::OutOfTreeTransform3D* elements,
58 size_t num_elements
59 );
60
61 /// Serializes an array of `rerun::components::OutOfTreeTransform3D` into an arrow array.
62 static Result<std::shared_ptr<arrow::Array>> to_arrow(
63 const components::OutOfTreeTransform3D* instances, size_t num_instances
64 );
65 };
66} // namespace rerun
Status outcome object (success or error) returned for fallible operations.
Definition error.hpp:87
All built-in components. See Types in the Rerun manual.
Definition rerun.hpp:69
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:20
Component: An out-of-tree affine transform between two 3D spaces, represented in a given direction.
Definition out_of_tree_transform3d.hpp:22
rerun::datatypes::Transform3D repr
Representation of the transform.
Definition out_of_tree_transform3d.hpp:24
Datatype: Representation of a 3D affine transform.
Definition transform3d.hpp:57