Rerun C++ SDK
Loading...
Searching...
No Matches
scalar_scattering.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/scalar_scattering.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**: If true, a scalar will be shown as individual point in a scatter plot.
20 bool scattered;
21
22 public:
23 ScalarScattering() = default;
24
25 ScalarScattering(bool scattered_) : scattered(scattered_) {}
26
27 ScalarScattering& operator=(bool scattered_) {
28 scattered = scattered_;
29 return *this;
30 }
31 };
32} // namespace rerun::components
33
34namespace rerun {
35 template <typename T>
36 struct Loggable;
37
38 /// \private
39 template <>
40 struct Loggable<components::ScalarScattering> {
41 static constexpr const char Name[] = "rerun.components.ScalarScattering";
42
43 /// Returns the arrow data type this type corresponds to.
44 static const std::shared_ptr<arrow::DataType>& arrow_datatype();
45
46 /// Fills an arrow array builder with an array of this type.
47 static rerun::Error fill_arrow_array_builder(
48 arrow::BooleanBuilder* builder, const components::ScalarScattering* elements,
49 size_t num_elements
50 );
51
52 /// Serializes an array of `rerun::components::ScalarScattering` into an arrow array.
54 const components::ScalarScattering* instances, size_t num_instances
55 );
56 };
57} // namespace rerun
Status outcome object (success or error) returned for fallible operations.
Definition error.hpp:87
A class for representing either a usable value, or an error.
Definition result.hpp:14
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
The Loggable trait is used by all built-in implementation of rerun::AsComponents to serialize a colle...
Definition loggable.hpp:11
Component: If true, a scalar will be shown as individual point in a scatter plot.
Definition scalar_scattering.hpp:19