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/text.hpp"
15#include "../indicator_component.hpp"
16#include "../result.hpp"
95 std::optional<Collection<rerun::components::Radius>>
radii;
98 std::optional<Collection<rerun::components::Color>>
colors;
104 std::optional<Collection<rerun::components::Text>>
labels;
114 std::optional<Collection<rerun::components::ClassId>>
class_ids;
117 static constexpr const char IndicatorComponentName[] =
118 "rerun.components.LineStrips2DIndicator";
128 :
strips(std::move(_strips)) {}
132 radii = std::move(_radii);
134 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
139 colors = std::move(_colors);
141 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
149 labels = std::move(_labels);
151 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);)
177 template <
typename T>
182 struct AsComponents<archetypes::LineStrips2D> {
184 static Result<std::vector<ComponentBatch>> serialize(
185 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:72
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:90
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:157
LineStrips2D with_labels(Collection< rerun::components::Text > _labels) &&
Optional text labels for the line strips.
Definition line_strips2d.hpp:148
LineStrips2D with_radii(Collection< rerun::components::Radius > _radii) &&
Optional radii for the line strips.
Definition line_strips2d.hpp:131
LineStrips2D with_class_ids(Collection< rerun::components::ClassId > _class_ids) &&
Optional components::ClassIds for the lines.
Definition line_strips2d.hpp:166
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:109
std::optional< Collection< rerun::components::ClassId > > class_ids
Optional components::ClassIds for the lines.
Definition line_strips2d.hpp:114
LineStrips2D with_colors(Collection< rerun::components::Color > _colors) &&
Optional colors for the line strips.
Definition line_strips2d.hpp:138
std::optional< Collection< rerun::components::Text > > labels
Optional text labels for the line strips.
Definition line_strips2d.hpp:104
std::optional< Collection< rerun::components::Radius > > radii
Optional radii for the line strips.
Definition line_strips2d.hpp:95
std::optional< Collection< rerun::components::Color > > colors
Optional colors for the line strips.
Definition line_strips2d.hpp:98
Collection< rerun::components::LineStrip2D > strips
All the actual 2D line strips that make up the batch.
Definition line_strips2d.hpp:92
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