6#include "../collection.hpp"
7#include "../component_batch.hpp"
8#include "../component_column.hpp"
9#include "../components/aggregation_policy.hpp"
10#include "../components/color.hpp"
11#include "../components/name.hpp"
12#include "../components/stroke_width.hpp"
13#include "../indicator_component.hpp"
14#include "../result.hpp"
67 std::optional<ComponentBatch>
color;
70 std::optional<ComponentBatch>
width;
75 std::optional<ComponentBatch>
name;
85 static constexpr const char IndicatorComponentName[] =
86 "rerun.components.SeriesLineIndicator";
91 static constexpr const char ArchetypeName[] =
"rerun.archetypes.SeriesLine";
130 return std::move(*
this);
139 return std::move(*
this);
145 return std::move(*
this);
154 return std::move(*
this);
162 return std::move(*
this);
171 return std::move(*
this);
185 return std::move(*
this);
198 return std::move(*
this);
222 template <
typename T>
Generic collection of elements that are roughly contiguous in memory.
Definition collection.hpp:49
A class for representing either a usable value, or an error.
Definition result.hpp:14
All built-in archetypes. See Types in the Rerun manual.
Definition rerun.hpp:76
AggregationPolicy
Component: Policy for aggregation of multiple scalar plot values.
Definition aggregation_policy.hpp:29
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:23
static Result< ComponentBatch > from_loggable(const rerun::Collection< T > &components, const ComponentDescriptor &descriptor=rerun::Loggable< T >::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:14
The Loggable trait is used by all built-in implementation of rerun::AsComponents to serialize a colle...
Definition loggable.hpp:11
Archetype: Define the style properties for a line series in a chart.
Definition series_line.hpp:65
SeriesLine with_width(const rerun::components::StrokeWidth &_width) &&
Stroke width for the corresponding series.
Definition series_line.hpp:143
static SeriesLine update_fields()
Update only some specific fields of a SeriesLine.
Definition series_line.hpp:120
std::optional< ComponentBatch > name
Display name of the series.
Definition series_line.hpp:75
static constexpr const char ArchetypeName[]
The name of the archetype as used in ComponentDescriptors.
Definition series_line.hpp:91
std::optional< ComponentBatch > width
Stroke width for the corresponding series.
Definition series_line.hpp:70
std::optional< ComponentBatch > color
Color for the corresponding series.
Definition series_line.hpp:67
static constexpr auto Descriptor_name
ComponentDescriptor for the name field.
Definition series_line.hpp:103
SeriesLine with_aggregation_policy(const rerun::components::AggregationPolicy &_aggregation_policy) &&
Configures the zoom-dependent scalar aggregation.
Definition series_line.hpp:179
static SeriesLine clear_fields()
Clear all the fields of a SeriesLine.
static constexpr auto Descriptor_aggregation_policy
ComponentDescriptor for the aggregation_policy field.
Definition series_line.hpp:107
static constexpr auto Descriptor_color
ComponentDescriptor for the color field.
Definition series_line.hpp:94
SeriesLine with_name(const rerun::components::Name &_name) &&
Display name of the series.
Definition series_line.hpp:160
SeriesLine with_many_aggregation_policy(const Collection< rerun::components::AggregationPolicy > &_aggregation_policy) &&
This method makes it possible to pack multiple aggregation_policy in a single component batch.
Definition series_line.hpp:192
static constexpr auto Descriptor_width
ComponentDescriptor for the width field.
Definition series_line.hpp:98
SeriesLine with_many_color(const Collection< rerun::components::Color > &_color) &&
This method makes it possible to pack multiple color in a single component batch.
Definition series_line.hpp:137
SeriesLine with_color(const rerun::components::Color &_color) &&
Color for the corresponding series.
Definition series_line.hpp:128
std::optional< ComponentBatch > aggregation_policy
Configures the zoom-dependent scalar aggregation.
Definition series_line.hpp:82
Collection< ComponentColumn > columns()
Partitions the component data into unit-length sub-batches.
SeriesLine with_many_width(const Collection< rerun::components::StrokeWidth > &_width) &&
This method makes it possible to pack multiple width in a single component batch.
Definition series_line.hpp:152
Collection< ComponentColumn > columns(const Collection< uint32_t > &lengths_)
Partitions the component data into multiple sub-batches.
SeriesLine with_many_name(const Collection< rerun::components::Name > &_name) &&
This method makes it possible to pack multiple name in a single component batch.
Definition series_line.hpp:169
Component: An RGBA color with unmultiplied/separate alpha, in sRGB gamma space with linear alpha.
Definition color.hpp:18
Indicator component used by archetypes when converting them to component lists.
Definition indicator_component.hpp:32
Component: A display name, typically for an entity or a item like a plot series.
Definition name.hpp:17
Component: The width of a stroke specified in UI points.
Definition stroke_width.hpp:15