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/draw_order.hpp"
12#include "../components/line_strip2d.hpp"
13#include "../components/radius.hpp"
14#include "../components/show_labels.hpp"
15#include "../components/text.hpp"
16#include "../indicator_component.hpp"
17#include "../result.hpp"
94 std::optional<Collection<rerun::components::Radius>>
radii;
97 std::optional<Collection<rerun::components::Color>>
colors;
103 std::optional<Collection<rerun::components::Text>>
labels;
116 std::optional<Collection<rerun::components::ClassId>>
class_ids;
119 static constexpr const char IndicatorComponentName[] =
120 "rerun.components.LineStrips2DIndicator";
130 :
strips(std::move(_strips)) {}
134 radii = std::move(_radii);
136 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
141 colors = std::move(_colors);
143 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
151 labels = std::move(_labels);
153 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
160 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
169 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
178 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
186 template <
typename T>
191 struct AsComponents<archetypes::LineStrips2D> {
193 static Result<std::vector<ComponentBatch>> serialize(
194 const archetypes::LineStrips2D& 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:77
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:23
Archetype: 2D line strips with positions and optional colors, radii, labels, etc.
Definition line_strips2d.hpp:89
LineStrips2D with_draw_order(rerun::components::DrawOrder _draw_order) &&
An optional floating point value that specifies the 2D drawing order of each line strip.
Definition line_strips2d.hpp:166
LineStrips2D with_labels(Collection< rerun::components::Text > _labels) &&
Optional text labels for the line strips.
Definition line_strips2d.hpp:150
LineStrips2D with_radii(Collection< rerun::components::Radius > _radii) &&
Optional radii for the line strips.
Definition line_strips2d.hpp:133
LineStrips2D with_class_ids(Collection< rerun::components::ClassId > _class_ids) &&
Optional components::ClassIds for the lines.
Definition line_strips2d.hpp:175
std::optional< rerun::components::DrawOrder > draw_order
An optional floating point value that specifies the 2D drawing order of each line strip.
Definition line_strips2d.hpp:111
std::optional< Collection< rerun::components::ClassId > > class_ids
Optional components::ClassIds for the lines.
Definition line_strips2d.hpp:116
LineStrips2D with_colors(Collection< rerun::components::Color > _colors) &&
Optional colors for the line strips.
Definition line_strips2d.hpp:140
LineStrips2D with_show_labels(rerun::components::ShowLabels _show_labels) &&
Optional choice of whether the text labels should be shown by default.
Definition line_strips2d.hpp:157
std::optional< Collection< rerun::components::Text > > labels
Optional text labels for the line strips.
Definition line_strips2d.hpp:103
std::optional< Collection< rerun::components::Radius > > radii
Optional radii for the line strips.
Definition line_strips2d.hpp:94
std::optional< Collection< rerun::components::Color > > colors
Optional colors for the line strips.
Definition line_strips2d.hpp:97
Collection< rerun::components::LineStrip2D > strips
All the actual 2D line strips that make up the batch.
Definition line_strips2d.hpp:91
std::optional< rerun::components::ShowLabels > show_labels
Optional choice of whether the text labels should be shown by default.
Definition line_strips2d.hpp:106
Component: Draw order of 2D elements.
Definition draw_order.hpp:20
Indicator component used by archetypes when converting them to component lists.
Definition indicator_component.hpp:32
Component: Whether the entity's components::Text label is shown.
Definition show_labels.hpp:19