Rerun C++ SDK
Loading...
Searching...
No Matches
interactive.hpp
1// DO NOT EDIT! This file was auto-generated by crates/build/re_types_builder/src/codegen/cpp/mod.rs
2// Based on "crates/store/re_types/definitions/rerun/blueprint/components/interactive.fbs".
3
4#pragma once
5
6#include "../../datatypes/bool.hpp"
7#include "../../result.hpp"
8
9#include <cstdint>
10#include <memory>
11
12namespace rerun::blueprint::components {
13 /// **Component**: Whether the entity can be interacted with.
14 ///
15 /// Non interactive components are still visible, but mouse interactions in the view are disabled.
16 struct Interactive {
17 rerun::datatypes::Bool interactive;
18
19 public:
20 Interactive() = default;
21
22 Interactive(rerun::datatypes::Bool interactive_) : interactive(interactive_) {}
23
24 Interactive& operator=(rerun::datatypes::Bool interactive_) {
25 interactive = interactive_;
26 return *this;
27 }
28
29 Interactive(bool value_) : interactive(value_) {}
30
31 Interactive& operator=(bool value_) {
32 interactive = value_;
33 return *this;
34 }
35
36 /// Cast to the underlying Bool datatype
37 operator rerun::datatypes::Bool() const {
38 return interactive;
39 }
40 };
41} // namespace rerun::blueprint::components
42
43namespace rerun {
44 static_assert(sizeof(rerun::datatypes::Bool) == sizeof(blueprint::components::Interactive));
45
46 /// \private
47 template <>
48 struct Loggable<blueprint::components::Interactive> {
49 static constexpr const char Name[] = "rerun.blueprint.components.Interactive";
50
51 /// Returns the arrow data type this type corresponds to.
52 static const std::shared_ptr<arrow::DataType>& arrow_datatype() {
54 }
55
56 /// Serializes an array of `rerun::blueprint:: components::Interactive` into an arrow array.
57 static Result<std::shared_ptr<arrow::Array>> to_arrow(
58 const blueprint::components::Interactive* instances, size_t num_instances
59 ) {
60 return Loggable<rerun::datatypes::Bool>::to_arrow(
61 &instances->interactive,
62 num_instances
63 );
64 }
65 };
66} // namespace rerun
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:22
The Loggable trait is used by all built-in implementation of rerun::AsComponents to serialize a colle...
Definition loggable.hpp:11
Component: Whether the entity can be interacted with.
Definition interactive.hpp:16
Datatype: A single boolean.
Definition bool.hpp:19