6#include "../collection.hpp"
7#include "../component_batch.hpp"
8#include "../component_column.hpp"
9#include "../components/color.hpp"
10#include "../components/marker_shape.hpp"
11#include "../components/marker_size.hpp"
12#include "../components/name.hpp"
13#include "../components/series_visible.hpp"
14#include "../result.hpp"
80 std::optional<ComponentBatch>
colors;
90 std::optional<ComponentBatch>
names;
108 static constexpr const char ArchetypeName[] =
"rerun.archetypes.SeriesPoints";
142 return std::move(*
this);
167 return std::move(*
this);
175 return std::move(*
this);
183 return std::move(*
this);
199 return std::move(*
this);
210 return std::move(*
this);
234 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
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)
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: Define the style properties for one or more point series (scatter plot) in a chart.
Definition series_points.hpp:76
Collection< ComponentColumn > columns(const Collection< uint32_t > &lengths_)
Partitions the component data into multiple sub-batches.
SeriesPoints with_visible_series(const Collection< rerun::components::SeriesVisible > &_visible_series) &&
Which lines are visible.
Definition series_points.hpp:193
static constexpr auto Descriptor_markers
ComponentDescriptor for the markers field.
Definition series_points.hpp:115
std::optional< ComponentBatch > visible_series
Which lines are visible.
Definition series_points.hpp:99
SeriesPoints with_marker_sizes(const Collection< rerun::components::MarkerSize > &_marker_sizes) &&
Sizes of the markers.
Definition series_points.hpp:205
static constexpr auto Descriptor_visible_series
ComponentDescriptor for the visible_series field.
Definition series_points.hpp:124
SeriesPoints with_names(const char *_name) &&
Display name of the series.
Definition series_points.hpp:139
static constexpr auto Descriptor_colors
ComponentDescriptor for the colors field.
Definition series_points.hpp:111
Collection< ComponentColumn > columns()
Partitions the component data into unit-length sub-batches.
static SeriesPoints update_fields()
Update only some specific fields of a SeriesPoints.
Definition series_points.hpp:155
SeriesPoints with_colors(const Collection< rerun::components::Color > &_colors) &&
Color for the corresponding series.
Definition series_points.hpp:165
SeriesPoints with_names(const Collection< rerun::components::Name > &_names) &&
Display name of the series.
Definition series_points.hpp:181
std::optional< ComponentBatch > markers
What shape to use to represent the point.
Definition series_points.hpp:85
std::optional< ComponentBatch > names
Display name of the series.
Definition series_points.hpp:90
static constexpr auto Descriptor_marker_sizes
ComponentDescriptor for the marker_sizes field.
Definition series_points.hpp:129
static constexpr const char ArchetypeName[]
The name of the archetype as used in ComponentDescriptors.
Definition series_points.hpp:108
std::optional< ComponentBatch > colors
Color for the corresponding series.
Definition series_points.hpp:80
std::optional< ComponentBatch > marker_sizes
Sizes of the markers.
Definition series_points.hpp:104
static SeriesPoints clear_fields()
Clear all the fields of a SeriesPoints.
SeriesPoints with_markers(const Collection< rerun::components::MarkerShape > &_markers) &&
What shape to use to represent the point.
Definition series_points.hpp:173
static constexpr auto Descriptor_names
ComponentDescriptor for the names field.
Definition series_points.hpp:120
Component: A display name, typically for an entity or a item like a plot series.
Definition name.hpp:16