Rerun C++ SDK
Loading...
Searching...
No Matches
disconnected_space.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/disconnected_space.fbs".
3
4#pragma once
5
6#include "../result.hpp"
7
8#include <cstdint>
9#include <memory>
10
11namespace arrow {
12 class Array;
13 class BooleanBuilder;
14 class DataType;
15} // namespace arrow
16
17namespace rerun::components {
18 /// **Component**: Specifies that the entity path at which this is logged is disconnected from its parent.
19 ///
20 /// This is useful for specifying that a subgraph is independent of the rest of the scene.
21 ///
22 /// If a transform or pinhole is logged on the same path, this component will be ignored.
24 /// Whether the entity path at which this is logged is disconnected from its parent.
26
27 public:
28 DisconnectedSpace() = default;
29
30 DisconnectedSpace(bool is_disconnected_) : is_disconnected(is_disconnected_) {}
31
32 DisconnectedSpace& operator=(bool is_disconnected_) {
33 is_disconnected = is_disconnected_;
34 return *this;
35 }
36 };
37} // namespace rerun::components
38
39namespace rerun {
40 template <typename T>
41 struct Loggable;
42
43 /// \private
44 template <>
45 struct Loggable<components::DisconnectedSpace> {
46 static constexpr const char Name[] = "rerun.components.DisconnectedSpace";
47
48 /// Returns the arrow data type this type corresponds to.
49 static const std::shared_ptr<arrow::DataType>& arrow_datatype();
50
51 /// Fills an arrow array builder with an array of this type.
52 static rerun::Error fill_arrow_array_builder(
53 arrow::BooleanBuilder* builder, const components::DisconnectedSpace* elements,
54 size_t num_elements
55 );
56
57 /// Serializes an array of `rerun::components::DisconnectedSpace` into an arrow array.
58 static Result<std::shared_ptr<arrow::Array>> to_arrow(
59 const components::DisconnectedSpace* instances, size_t num_instances
60 );
61 };
62} // 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: Specifies that the entity path at which this is logged is disconnected from its parent.
Definition disconnected_space.hpp:23
bool is_disconnected
Whether the entity path at which this is logged is disconnected from its parent.
Definition disconnected_space.hpp:25