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 rerun::components {
13 /// **Component**: An out-of-tree affine transform between two 3D spaces, represented in a given direction.
14 ///
15 /// "Out-of-tree" means that the transform only affects its own entity: children don't inherit from it.
17 /// Representation of the transform.
19
20 public:
21 OutOfTreeTransform3D() = default;
22
24
26 repr = repr_;
27 return *this;
28 }
29
30 /// Cast to the underlying Transform3D datatype
32 return repr;
33 }
34 };
35} // namespace rerun::components
36
37namespace rerun {
38 static_assert(
39 sizeof(rerun::datatypes::Transform3D) == sizeof(components::OutOfTreeTransform3D)
40 );
41
42 /// \private
43 template <>
44 struct Loggable<components::OutOfTreeTransform3D> {
45 static constexpr const char Name[] = "rerun.components.OutOfTreeTransform3D";
46
47 /// Returns the arrow data type this type corresponds to.
48 static const std::shared_ptr<arrow::DataType>& arrow_datatype() {
49 return Loggable<rerun::datatypes::Transform3D>::arrow_datatype();
50 }
51
52 /// Serializes an array of `rerun::components::OutOfTreeTransform3D` into an arrow array.
53 static Result<std::shared_ptr<arrow::Array>> to_arrow(
54 const components::OutOfTreeTransform3D* instances, size_t num_instances
55 ) {
56 return Loggable<rerun::datatypes::Transform3D>::to_arrow(
57 &instances->repr,
58 num_instances
59 );
60 }
61 };
62} // namespace rerun
All built-in components. See Types in the Rerun manual.
Definition rerun.hpp:75
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:21
Component: An out-of-tree affine transform between two 3D spaces, represented in a given direction.
Definition out_of_tree_transform3d.hpp:16
rerun::datatypes::Transform3D repr
Representation of the transform.
Definition out_of_tree_transform3d.hpp:18
Datatype: Representation of a 3D affine transform.
Definition transform3d.hpp:59