6#include "../compiler_utils.hpp"
7#include "../component_descriptor.hpp"
8#include "../datatypes/bool.hpp"
9#include "../result.hpp"
21 struct [[deprecated(
"Use [archetypes.Transform3D] with an invalid transform instead."
34 : is_disconnected(is_disconnected_) {}
37 is_disconnected = is_disconnected_;
43 DisconnectedSpace& operator=(
bool value_) {
44 is_disconnected = value_;
50 return is_disconnected;
56RR_DISABLE_DEPRECATION_WARNING
63 struct Loggable<components::DisconnectedSpace> {
64 static constexpr ComponentDescriptor Descriptor =
"rerun.components.DisconnectedSpace";
67 static const std::shared_ptr<arrow::DataType>& arrow_datatype() {
68 return Loggable<rerun::datatypes::Bool>::arrow_datatype();
72 static Result<std::shared_ptr<arrow::Array>> to_arrow(
73 const components::DisconnectedSpace* instances,
size_t num_instances
75 if (num_instances == 0) {
76 return Loggable<rerun::datatypes::Bool>::to_arrow(
nullptr, 0);
77 }
else if (instances ==
nullptr) {
79 ErrorCode::UnexpectedNullArgument,
80 "Passed array instances is null when num_elements> 0."
83 return Loggable<rerun::datatypes::Bool>::to_arrow(
84 &instances->is_disconnected,
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
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:23
Archetype: Spatially disconnect this entity from its parent.
Definition disconnected_space.hpp:53
Component: Spatially disconnect this entity from its parent.
Definition disconnected_space.hpp:22
rerun::datatypes::Bool is_disconnected
Whether the entity path at which this is logged is disconnected from its parent.
Definition disconnected_space.hpp:28
Datatype: A single boolean.
Definition bool.hpp:20