6#include "../archetype_utils.hpp"
7#include "../collection.hpp"
8#include "../component_batch.hpp"
9#include "../component_column.hpp"
10#include "../components/class_id.hpp"
11#include "../components/color.hpp"
12#include "../components/line_strip3d.hpp"
13#include "../components/radius.hpp"
14#include "../components/show_labels.hpp"
15#include "../components/text.hpp"
16#include "../result.hpp"
109 std::optional<ComponentBatch>
radii;
135 static constexpr const char ArchetypeName[] =
"rerun.archetypes.LineStrips3D";
174 .value_or_throw()) {}
187 return std::move(*
this);
193 return std::move(*
this);
201 return std::move(*
this);
210 return std::move(*
this);
220 return std::move(*
this);
232 return std::move(*
this);
241 return std::move(*
this);
253 return detail::partition_batches(
265 return detail::partition_batches_of_unit_length(
276 template <
typename T>
281 struct AsComponents<archetypes::LineStrips3D> {
283 static Result<Collection<ComponentBatch>> as_batches(
284 const archetypes::LineStrips3D& archetype
286 return detail::collect_batches(
291 &archetype.show_labels,
292 &archetype.class_ids}
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:90
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:26
Arrow-encoded data of a single batch of components together with a component descriptor.
Definition component_batch.hpp:28
static Result< ComponentBatch > from_loggable(const rerun::Collection< T > &components, const ComponentDescriptor &descriptor)
Creates a new component batch from a collection of component instances.
Definition component_batch.hpp:46
A ComponentDescriptor fully describes the semantics of a column of data.
Definition component_descriptor.hpp:16
The Loggable trait is used by all built-in implementation of rerun::AsComponents to serialize a colle...
Definition loggable.hpp:11
Archetype: 3D line strips with positions and optional colors, radii, labels, etc.
Definition line_strips3d.hpp:104
std::optional< ComponentBatch > class_ids
Optional components::ClassIds for the lines.
Definition line_strips3d.hpp:131
std::optional< ComponentBatch > labels
Optional text labels for the line strips.
Definition line_strips3d.hpp:120
static constexpr auto Descriptor_class_ids
ComponentDescriptor for the class_ids field.
Definition line_strips3d.hpp:160
static LineStrips3D update_fields()
Update only some specific fields of a LineStrips3D.
Definition line_strips3d.hpp:177
LineStrips3D with_show_labels(const rerun::components::ShowLabels &_show_labels) &&
Whether the text labels should be shown.
Definition line_strips3d.hpp:217
std::optional< ComponentBatch > show_labels
Whether the text labels should be shown.
Definition line_strips3d.hpp:126
static constexpr auto Descriptor_colors
ComponentDescriptor for the colors field.
Definition line_strips3d.hpp:147
Collection< ComponentColumn > columns(const Collection< uint32_t > &lengths_)
Partitions the component data into multiple sub-batches.
Definition line_strips3d.hpp:252
LineStrips3D with_many_show_labels(const Collection< rerun::components::ShowLabels > &_show_labels) &&
This method makes it possible to pack multiple show_labels in a single component batch.
Definition line_strips3d.hpp:227
static constexpr auto Descriptor_strips
ComponentDescriptor for the strips field.
Definition line_strips3d.hpp:138
std::optional< ComponentBatch > radii
Optional radii for the line strips.
Definition line_strips3d.hpp:109
static LineStrips3D clear_fields()
Clear all the fields of a LineStrips3D.
LineStrips3D with_colors(const Collection< rerun::components::Color > &_colors) &&
Optional colors for the line strips.
Definition line_strips3d.hpp:199
static constexpr const char ArchetypeName[]
The name of the archetype as used in ComponentDescriptors.
Definition line_strips3d.hpp:135
static constexpr auto Descriptor_labels
ComponentDescriptor for the labels field.
Definition line_strips3d.hpp:151
std::optional< ComponentBatch > colors
Optional colors for the line strips.
Definition line_strips3d.hpp:114
Collection< ComponentColumn > columns()
Partitions the component data into unit-length sub-batches.
Definition line_strips3d.hpp:264
std::optional< ComponentBatch > strips
All the actual 3D line strips that make up the batch.
Definition line_strips3d.hpp:106
static constexpr auto Descriptor_show_labels
ComponentDescriptor for the show_labels field.
Definition line_strips3d.hpp:155
LineStrips3D with_labels(const Collection< rerun::components::Text > &_labels) &&
Optional text labels for the line strips.
Definition line_strips3d.hpp:208
static constexpr auto Descriptor_radii
ComponentDescriptor for the radii field.
Definition line_strips3d.hpp:143
LineStrips3D with_class_ids(const Collection< rerun::components::ClassId > &_class_ids) &&
Optional components::ClassIds for the lines.
Definition line_strips3d.hpp:238
LineStrips3D with_strips(const Collection< rerun::components::LineStrip3D > &_strips) &&
All the actual 3D line strips that make up the batch.
Definition line_strips3d.hpp:185
LineStrips3D with_radii(const Collection< rerun::components::Radius > &_radii) &&
Optional radii for the line strips.
Definition line_strips3d.hpp:191
Component: Whether the entity's components::Text label is shown.
Definition show_labels.hpp:18