Rerun C++ SDK
Loading...
Searching...
No Matches
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/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 affine transform between two 3D spaces, represented in a given direction.
20 struct Transform3D {
21 /// Representation of the transform.
23
24 public:
25 Transform3D() = default;
26
28
30 repr = repr_;
31 return *this;
32 }
33
34 /// Cast to the underlying Transform3D datatype
36 return repr;
37 }
38 };
39} // namespace rerun::components
40
41namespace rerun {
42 template <typename T>
43 struct Loggable;
44
45 /// \private
46 template <>
47 struct Loggable<components::Transform3D> {
48 static constexpr const char Name[] = "rerun.components.Transform3D";
49
50 /// Returns the arrow data type this type corresponds to.
51 static const std::shared_ptr<arrow::DataType>& arrow_datatype();
52
53 /// Fills an arrow array builder with an array of this type.
54 static rerun::Error fill_arrow_array_builder(
55 arrow::DenseUnionBuilder* builder, const components::Transform3D* elements,
56 size_t num_elements
57 );
58
59 /// Serializes an array of `rerun::components::Transform3D` into an arrow array.
60 static Result<std::shared_ptr<arrow::Array>> to_arrow(
61 const components::Transform3D* instances, size_t num_instances
62 );
63 };
64} // 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 affine transform between two 3D spaces, represented in a given direction.
Definition transform3d.hpp:20
rerun::datatypes::Transform3D repr
Representation of the transform.
Definition transform3d.hpp:22
Datatype: Representation of a 3D affine transform.
Definition transform3d.hpp:57