Rerun C++ SDK
Loading...
Searching...
No Matches
draw_order.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/draw_order.fbs".
3
4#pragma once
5
6#include "../result.hpp"
7
8#include <cstdint>
9#include <memory>
10
11namespace arrow {
12 /// \private
13 template <typename T>
14 class NumericBuilder;
15
16 class Array;
17 class DataType;
18 class FloatType;
19 using FloatBuilder = NumericBuilder<FloatType>;
20} // namespace arrow
21
22namespace rerun::components {
23 /// **Component**: Draw order of 2D elements. Higher values are drawn on top of lower values.
24 ///
25 /// An entity can have only a single draw order component.
26 /// Within an entity draw order is governed by the order of the components.
27 ///
28 /// Draw order for entities with the same draw order is generally undefined.
29 struct DrawOrder {
30 float value;
31
32 public:
33 DrawOrder() = default;
34
35 DrawOrder(float value_) : value(value_) {}
36
37 DrawOrder& operator=(float value_) {
38 value = value_;
39 return *this;
40 }
41 };
42} // namespace rerun::components
43
44namespace rerun {
45 template <typename T>
46 struct Loggable;
47
48 /// \private
49 template <>
50 struct Loggable<components::DrawOrder> {
51 static constexpr const char Name[] = "rerun.components.DrawOrder";
52
53 /// Returns the arrow data type this type corresponds to.
54 static const std::shared_ptr<arrow::DataType>& arrow_datatype();
55
56 /// Serializes an array of `rerun::components::DrawOrder` into an arrow array.
58 const components::DrawOrder* instances, size_t num_instances
59 );
60
61 /// Fills an arrow array builder with an array of this type.
62 static rerun::Error fill_arrow_array_builder(
63 arrow::FloatBuilder* builder, const components::DrawOrder* elements, size_t num_elements
64 );
65 };
66} // namespace rerun
Status outcome object (success or error) returned for fallible operations.
Definition error.hpp:88
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:75
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:21
The Loggable trait is used by all built-in implementation of rerun::AsComponents to serialize a colle...
Definition loggable.hpp:11
Component: Draw order of 2D elements.
Definition draw_order.hpp:29