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"
96 std::optional<Collection<rerun::components::Radius>>
radii;
99 std::optional<Collection<rerun::components::Color>>
colors;
105 std::optional<Collection<rerun::components::Text>>
labels;
118 std::optional<Collection<rerun::components::ClassId>>
class_ids;
121 static constexpr const char IndicatorComponentName[] =
122 "rerun.components.LineStrips2DIndicator";
132 :
strips(std::move(_strips)) {}
136 radii = std::move(_radii);
138 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
143 colors = std::move(_colors);
145 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
153 labels = std::move(_labels);
155 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
162 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
171 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
180 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
188 template <
typename T>
193 struct AsComponents<archetypes::LineStrips2D> {
195 static Result<std::vector<ComponentBatch>> serialize(
196 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:76
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:22
Archetype: 2D line strips with positions and optional colors, radii, labels, etc.
Definition line_strips2d.hpp:91
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:168
LineStrips2D with_labels(Collection< rerun::components::Text > _labels) &&
Optional text labels for the line strips.
Definition line_strips2d.hpp:152
LineStrips2D with_radii(Collection< rerun::components::Radius > _radii) &&
Optional radii for the line strips.
Definition line_strips2d.hpp:135
LineStrips2D with_class_ids(Collection< rerun::components::ClassId > _class_ids) &&
Optional components::ClassIds for the lines.
Definition line_strips2d.hpp:177
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:113
std::optional< Collection< rerun::components::ClassId > > class_ids
Optional components::ClassIds for the lines.
Definition line_strips2d.hpp:118
LineStrips2D with_colors(Collection< rerun::components::Color > _colors) &&
Optional colors for the line strips.
Definition line_strips2d.hpp:142
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:159
std::optional< Collection< rerun::components::Text > > labels
Optional text labels for the line strips.
Definition line_strips2d.hpp:105
std::optional< Collection< rerun::components::Radius > > radii
Optional radii for the line strips.
Definition line_strips2d.hpp:96
std::optional< Collection< rerun::components::Color > > colors
Optional colors for the line strips.
Definition line_strips2d.hpp:99
Collection< rerun::components::LineStrip2D > strips
All the actual 2D line strips that make up the batch.
Definition line_strips2d.hpp:93
std::optional< rerun::components::ShowLabels > show_labels
Optional choice of whether the text labels should be shown by default.
Definition line_strips2d.hpp:108
Component: Draw order of 2D elements.
Definition draw_order.hpp:19
Indicator component used by archetypes when converting them to component lists.
Definition indicator_component.hpp:30
Component: Whether the entity's components::Text label is shown.
Definition show_labels.hpp:18