6#include "../collection.hpp"
7#include "../compiler_utils.hpp"
8#include "../components/class_id.hpp"
9#include "../components/color.hpp"
10#include "../components/instance_key.hpp"
11#include "../components/line_strip3d.hpp"
12#include "../components/radius.hpp"
13#include "../components/text.hpp"
14#include "../data_cell.hpp"
15#include "../indicator_component.hpp"
16#include "../result.hpp"
70 std::optional<Collection<rerun::components::Radius>>
radii;
73 std::optional<Collection<rerun::components::Color>>
colors;
76 std::optional<Collection<rerun::components::Text>>
labels;
81 std::optional<Collection<rerun::components::ClassId>>
class_ids;
84 std::optional<Collection<rerun::components::InstanceKey>>
instance_keys;
87 static constexpr const char IndicatorComponentName[] =
88 "rerun.components.LineStrips3DIndicator";
98 :
strips(std::move(_strips)) {}
102 radii = std::move(_radii);
104 RERUN_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
109 colors = std::move(_colors);
111 RERUN_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
116 labels = std::move(_labels);
118 RERUN_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
127 RERUN_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
135 RERUN_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
148 template <
typename T>
153 struct AsComponents<archetypes::LineStrips3D> {
155 static Result<std::vector<DataCell>> serialize(
const archetypes::LineStrips3D& 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: 3D line strips with positions and optional colors, radii, labels, etc.
Definition line_strips3d.hpp:65
LineStrips3D with_colors(Collection< rerun::components::Color > _colors) &&
Optional colors for the line strips.
Definition line_strips3d.hpp:108
std::optional< Collection< rerun::components::Radius > > radii
Optional radii for the line strips.
Definition line_strips3d.hpp:70
std::optional< Collection< rerun::components::Color > > colors
Optional colors for the line strips.
Definition line_strips3d.hpp:73
size_t num_instances() const
Returns the number of primary instances of this archetype.
Definition line_strips3d.hpp:139
Collection< rerun::components::LineStrip3D > strips
All the actual 3D line strips that make up the batch.
Definition line_strips3d.hpp:67
LineStrips3D with_instance_keys(Collection< rerun::components::InstanceKey > _instance_keys) &&
Unique identifiers for each individual line strip in the batch.
Definition line_strips3d.hpp:131
std::optional< Collection< rerun::components::ClassId > > class_ids
Optional ClassIds for the lines.
Definition line_strips3d.hpp:81
std::optional< Collection< rerun::components::Text > > labels
Optional text labels for the line strips.
Definition line_strips3d.hpp:76
LineStrips3D with_labels(Collection< rerun::components::Text > _labels) &&
Optional text labels for the line strips.
Definition line_strips3d.hpp:115
LineStrips3D with_class_ids(Collection< rerun::components::ClassId > _class_ids) &&
Optional ClassIds for the lines.
Definition line_strips3d.hpp:124
std::optional< Collection< rerun::components::InstanceKey > > instance_keys
Unique identifiers for each individual line strip in the batch.
Definition line_strips3d.hpp:84
LineStrips3D with_radii(Collection< rerun::components::Radius > _radii) &&
Optional radii for the line strips.
Definition line_strips3d.hpp:101
Indicator component used by archetypes when converting them to component lists.
Definition indicator_component.hpp:23