6#include "../collection.hpp"
7#include "../compiler_utils.hpp"
8#include "../components/class_id.hpp"
9#include "../components/color.hpp"
10#include "../components/draw_order.hpp"
11#include "../components/instance_key.hpp"
12#include "../components/line_strip2d.hpp"
13#include "../components/radius.hpp"
14#include "../components/text.hpp"
15#include "../data_cell.hpp"
16#include "../indicator_component.hpp"
17#include "../result.hpp"
61 std::optional<Collection<rerun::components::Radius>>
radii;
64 std::optional<Collection<rerun::components::Color>>
colors;
67 std::optional<Collection<rerun::components::Text>>
labels;
77 std::optional<Collection<rerun::components::ClassId>>
class_ids;
80 std::optional<Collection<rerun::components::InstanceKey>>
instance_keys;
83 static constexpr const char IndicatorComponentName[] =
84 "rerun.components.LineStrips2DIndicator";
94 :
strips(std::move(_strips)) {}
98 radii = std::move(_radii);
100 RERUN_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
105 colors = std::move(_colors);
107 RERUN_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
112 labels = std::move(_labels);
114 RERUN_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
123 RERUN_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
132 RERUN_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
140 RERUN_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
153 template <
typename T>
158 struct AsComponents<archetypes::LineStrips2D> {
160 static Result<std::vector<DataCell>> serialize(
const archetypes::LineStrips2D& archetype);
Generic collection of elements that are roughly contiguous in memory.
Definition collection.hpp:47
size_t size() const
Returns the number of instances in this collection.
Definition collection.hpp:254
All built-in archetypes. See Types in the Rerun manual.
Definition rerun.hpp:66
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:20
Archetype: 2D line strips with positions and optional colors, radii, labels, etc.
Definition line_strips2d.hpp:56
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:120
LineStrips2D with_labels(Collection< rerun::components::Text > _labels) &&
Optional text labels for the line strips.
Definition line_strips2d.hpp:111
std::optional< Collection< rerun::components::InstanceKey > > instance_keys
Unique identifiers for each individual line strip in the batch.
Definition line_strips2d.hpp:80
LineStrips2D with_radii(Collection< rerun::components::Radius > _radii) &&
Optional radii for the line strips.
Definition line_strips2d.hpp:97
LineStrips2D with_class_ids(Collection< rerun::components::ClassId > _class_ids) &&
Optional ClassIds for the lines.
Definition line_strips2d.hpp:129
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:72
std::optional< Collection< rerun::components::ClassId > > class_ids
Optional ClassIds for the lines.
Definition line_strips2d.hpp:77
LineStrips2D with_colors(Collection< rerun::components::Color > _colors) &&
Optional colors for the line strips.
Definition line_strips2d.hpp:104
std::optional< Collection< rerun::components::Text > > labels
Optional text labels for the line strips.
Definition line_strips2d.hpp:67
std::optional< Collection< rerun::components::Radius > > radii
Optional radii for the line strips.
Definition line_strips2d.hpp:61
std::optional< Collection< rerun::components::Color > > colors
Optional colors for the line strips.
Definition line_strips2d.hpp:64
Collection< rerun::components::LineStrip2D > strips
All the actual 2D line strips that make up the batch.
Definition line_strips2d.hpp:58
LineStrips2D with_instance_keys(Collection< rerun::components::InstanceKey > _instance_keys) &&
Unique identifiers for each individual line strip in the batch.
Definition line_strips2d.hpp:136
size_t num_instances() const
Returns the number of primary instances of this archetype.
Definition line_strips2d.hpp:144
Component: Draw order used for the display order of 2D elements.
Definition draw_order.hpp:30
Indicator component used by archetypes when converting them to component lists.
Definition indicator_component.hpp:23