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 "../indicator_component.hpp"
15#include "../result.hpp"
81 std::optional<ComponentBatch>
colors;
91 std::optional<ComponentBatch>
names;
108 static constexpr const char IndicatorComponentName[] =
109 "rerun.components.SeriesPointsIndicator";
114 static constexpr const char ArchetypeName[] =
"rerun.archetypes.SeriesPoints";
148 return std::move(*
this);
173 return std::move(*
this);
181 return std::move(*
this);
189 return std::move(*
this);
205 return std::move(*
this);
216 return std::move(*
this);
240 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=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 one or more point series (scatter plot) in a chart.
Definition series_points.hpp:77
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:199
static constexpr auto Descriptor_markers
ComponentDescriptor for the markers field.
Definition series_points.hpp:121
std::optional< ComponentBatch > visible_series
Which lines are visible.
Definition series_points.hpp:100
SeriesPoints with_marker_sizes(const Collection< rerun::components::MarkerSize > &_marker_sizes) &&
Sizes of the markers.
Definition series_points.hpp:211
static constexpr auto Descriptor_visible_series
ComponentDescriptor for the visible_series field.
Definition series_points.hpp:130
SeriesPoints with_names(const char *_name) &&
Display name of the series.
Definition series_points.hpp:145
static constexpr auto Descriptor_colors
ComponentDescriptor for the colors field.
Definition series_points.hpp:117
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:161
SeriesPoints with_colors(const Collection< rerun::components::Color > &_colors) &&
Color for the corresponding series.
Definition series_points.hpp:171
SeriesPoints with_names(const Collection< rerun::components::Name > &_names) &&
Display name of the series.
Definition series_points.hpp:187
std::optional< ComponentBatch > markers
What shape to use to represent the point.
Definition series_points.hpp:86
std::optional< ComponentBatch > names
Display name of the series.
Definition series_points.hpp:91
static constexpr auto Descriptor_marker_sizes
ComponentDescriptor for the marker_sizes field.
Definition series_points.hpp:135
static constexpr const char ArchetypeName[]
The name of the archetype as used in ComponentDescriptors.
Definition series_points.hpp:114
std::optional< ComponentBatch > colors
Color for the corresponding series.
Definition series_points.hpp:81
std::optional< ComponentBatch > marker_sizes
Sizes of the markers.
Definition series_points.hpp:105
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:179
static constexpr auto Descriptor_names
ComponentDescriptor for the names field.
Definition series_points.hpp:126
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