Rerun C++ SDK
Loading...
Searching...
No Matches
fill_mode.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/components/fill_mode.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 UInt8Type;
19 using UInt8Builder = NumericBuilder<UInt8Type>;
20} // namespace arrow
21
22namespace rerun::components {
23 /// **Component**: How a geometric shape is drawn and colored.
24 enum class FillMode : uint8_t {
25
26 /// Lines are drawn around the parts of the shape which directly correspond to the logged data.
27 ///
28 /// Examples of what this means:
29 ///
30 /// * An `archetypes::Ellipsoids3D` will draw three axis-aligned ellipses that are cross-sections
31 /// of each ellipsoid, each of which displays two out of three of the sizes of the ellipsoid.
32 /// * For `archetypes::Boxes3D`, it is the edges of the box, identical to `DenseWireframe`.
34
35 /// Many lines are drawn to represent the surface of the shape in a see-through fashion.
36 ///
37 /// Examples of what this means:
38 ///
39 /// * An `archetypes::Ellipsoids3D` will draw a wireframe triangle mesh that approximates each
40 /// ellipsoid.
41 /// * For `archetypes::Boxes3D`, it is the edges of the box, identical to `MajorWireframe`.
43
44 /// The surface of the shape is filled in with a solid color. No lines are drawn.
45 Solid = 3,
46 };
47} // namespace rerun::components
48
49namespace rerun {
50 template <typename T>
51 struct Loggable;
52
53 /// \private
54 template <>
55 struct Loggable<components::FillMode> {
56 static constexpr const char Name[] = "rerun.components.FillMode";
57
58 /// Returns the arrow data type this type corresponds to.
59 static const std::shared_ptr<arrow::DataType>& arrow_datatype();
60
61 /// Serializes an array of `rerun::components::FillMode` into an arrow array.
62 static Result<std::shared_ptr<arrow::Array>> to_arrow(
63 const components::FillMode* instances, size_t num_instances
64 );
65
66 /// Fills an arrow array builder with an array of this type.
67 static rerun::Error fill_arrow_array_builder(
68 arrow::UInt8Builder* builder, const components::FillMode* elements, size_t num_elements
69 );
70 };
71} // namespace rerun
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:79
FillMode
Component: How a geometric shape is drawn and colored.
Definition fill_mode.hpp:24
@ Solid
The surface of the shape is filled in with a solid color. No lines are drawn.
@ DenseWireframe
Many lines are drawn to represent the surface of the shape in a see-through fashion.
@ MajorWireframe
Lines are drawn around the parts of the shape which directly correspond to the logged data.
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:22