Rerun C++ SDK
Loading...
Searching...
No Matches
line_strip3d.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/line_strip3d.fbs".
3
4#pragma once
5
6#include "../collection.hpp"
7#include "../datatypes/vec3d.hpp"
8#include "../result.hpp"
9
10#include <cstdint>
11#include <memory>
12#include <utility>
13
14namespace arrow {
15 class Array;
16 class DataType;
17 class ListBuilder;
18} // namespace arrow
19
20namespace rerun::components {
21 /// **Component**: A line strip in 3D space.
22 ///
23 /// A line strip is a list of points connected by line segments. It can be used to draw
24 /// approximations of smooth curves.
25 ///
26 /// The points will be connected in order, like so:
27 /// ```text
28 /// 2------3 5
29 /// / \ /
30 /// 0----1 \ /
31 /// 4
32 /// ```
33 struct LineStrip3D {
35
36 public:
37 LineStrip3D() = default;
38
40 : points(std::move(points_)) {}
41
43 points = std::move(points_);
44 return *this;
45 }
46 };
47} // namespace rerun::components
48
49namespace rerun {
50 template <typename T>
51 struct Loggable;
52
53 /// \private
54 template <>
55 struct Loggable<components::LineStrip3D> {
56 static constexpr const char Name[] = "rerun.components.LineStrip3D";
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::LineStrip3D` into an arrow array.
63 const components::LineStrip3D* 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::ListBuilder* builder, const components::LineStrip3D* elements,
69 size_t num_elements
70 );
71 };
72} // namespace rerun
Generic collection of elements that are roughly contiguous in memory.
Definition collection.hpp:49
Status outcome object (success or error) returned for fallible operations.
Definition error.hpp:95
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:79
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: A line strip in 3D space.
Definition line_strip3d.hpp:33