6#include "../collection.hpp"
7#include "../compiler_utils.hpp"
8#include "../component_batch.hpp"
9#include "../components/class_id.hpp"
10#include "../components/color.hpp"
11#include "../components/line_strip3d.hpp"
12#include "../components/radius.hpp"
13#include "../components/text.hpp"
14#include "../indicator_component.hpp"
15#include "../result.hpp"
107 std::optional<Collection<rerun::components::Radius>>
radii;
110 std::optional<Collection<rerun::components::Color>>
colors;
116 std::optional<Collection<rerun::components::Text>>
labels;
121 std::optional<Collection<rerun::components::ClassId>>
class_ids;
124 static constexpr const char IndicatorComponentName[] =
125 "rerun.components.LineStrips3DIndicator";
135 :
strips(std::move(_strips)) {}
139 radii = std::move(_radii);
141 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
146 colors = std::move(_colors);
148 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
156 labels = std::move(_labels);
158 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
167 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
175 template <
typename T>
180 struct AsComponents<archetypes::LineStrips3D> {
182 static Result<std::vector<ComponentBatch>> serialize(
183 const archetypes::LineStrips3D& archetype
Generic collection of elements that are roughly contiguous in memory.
Definition collection.hpp:49
All built-in archetypes. See Types in the Rerun manual.
Definition rerun.hpp:72
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:22
Archetype: 3D line strips with positions and optional colors, radii, labels, etc.
Definition line_strips3d.hpp:102
LineStrips3D with_colors(Collection< rerun::components::Color > _colors) &&
Optional colors for the line strips.
Definition line_strips3d.hpp:145
std::optional< Collection< rerun::components::Radius > > radii
Optional radii for the line strips.
Definition line_strips3d.hpp:107
std::optional< Collection< rerun::components::Color > > colors
Optional colors for the line strips.
Definition line_strips3d.hpp:110
Collection< rerun::components::LineStrip3D > strips
All the actual 3D line strips that make up the batch.
Definition line_strips3d.hpp:104
std::optional< Collection< rerun::components::ClassId > > class_ids
Optional components::ClassIds for the lines.
Definition line_strips3d.hpp:121
std::optional< Collection< rerun::components::Text > > labels
Optional text labels for the line strips.
Definition line_strips3d.hpp:116
LineStrips3D with_labels(Collection< rerun::components::Text > _labels) &&
Optional text labels for the line strips.
Definition line_strips3d.hpp:155
LineStrips3D with_class_ids(Collection< rerun::components::ClassId > _class_ids) &&
Optional components::ClassIds for the lines.
Definition line_strips3d.hpp:164
LineStrips3D with_radii(Collection< rerun::components::Radius > _radii) &&
Optional radii for the line strips.
Definition line_strips3d.hpp:138
Indicator component used by archetypes when converting them to component lists.
Definition indicator_component.hpp:30