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 "../component_descriptor.hpp"
8#include "../datatypes/vec3d.hpp"
9#include "../result.hpp"
10
11#include <cstdint>
12#include <memory>
13#include <utility>
14
15namespace arrow {
16 class Array;
17 class DataType;
18 class ListBuilder;
19} // namespace arrow
20
21namespace rerun::components {
22 /// **Component**: A line strip in 3D space.
23 ///
24 /// A line strip is a list of points connected by line segments. It can be used to draw
25 /// approximations of smooth curves.
26 ///
27 /// The points will be connected in order, like so:
28 /// ```text
29 /// 2------3 5
30 /// / \ /
31 /// 0----1 \ /
32 /// 4
33 /// ```
34 struct LineStrip3D {
36
37 public:
38 LineStrip3D() = default;
39
41 : points(std::move(points_)) {}
42
44 points = std::move(points_);
45 return *this;
46 }
47 };
48} // namespace rerun::components
49
50namespace rerun {
51 template <typename T>
52 struct Loggable;
53
54 /// \private
55 template <>
56 struct Loggable<components::LineStrip3D> {
57 static constexpr ComponentDescriptor Descriptor = "rerun.components.LineStrip3D";
58
59 /// Returns the arrow data type this type corresponds to.
60 static const std::shared_ptr<arrow::DataType>& arrow_datatype();
61
62 /// Serializes an array of `rerun::components::LineStrip3D` into an arrow array.
64 const components::LineStrip3D* instances, size_t num_instances
65 );
66
67 /// Fills an arrow array builder with an array of this type.
68 static rerun::Error fill_arrow_array_builder(
69 arrow::ListBuilder* builder, const components::LineStrip3D* elements,
70 size_t num_elements
71 );
72 };
73} // 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:80
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:23
A ComponentDescriptor fully describes the semantics of a column of data.
Definition component_descriptor.hpp:13
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:34