6#include "../archetype_utils.hpp"
7#include "../collection.hpp"
8#include "../component_batch.hpp"
9#include "../component_column.hpp"
10#include "../components/color.hpp"
11#include "../components/marker_shape.hpp"
12#include "../components/marker_size.hpp"
13#include "../components/name.hpp"
14#include "../components/visible.hpp"
15#include "../result.hpp"
81 std::optional<ComponentBatch>
colors;
91 std::optional<ComponentBatch>
names;
109 static constexpr const char ArchetypeName[] =
"rerun.archetypes.SeriesPoints";
143 return std::move(*
this);
168 return std::move(*
this);
176 return std::move(*
this);
184 return std::move(*
this);
200 return std::move(*
this);
211 return std::move(*
this);
223 return detail::partition_batches(
235 return detail::partition_batches_of_unit_length(
246 template <
typename T>
251 struct AsComponents<archetypes::SeriesPoints> {
253 static Result<Collection<ComponentBatch>> as_batches(
254 const archetypes::SeriesPoints& archetype
256 return detail::collect_batches(
260 &archetype.visible_series,
261 &archetype.marker_sizes}
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
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:77
Collection< ComponentColumn > columns(const Collection< uint32_t > &lengths_)
Partitions the component data into multiple sub-batches.
Definition series_points.hpp:222
static constexpr auto Descriptor_markers
ComponentDescriptor for the markers field.
Definition series_points.hpp:116
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:206
static constexpr auto Descriptor_visible_series
ComponentDescriptor for the visible_series field.
Definition series_points.hpp:125
SeriesPoints with_names(const char *_name) &&
Display name of the series.
Definition series_points.hpp:140
static constexpr auto Descriptor_colors
ComponentDescriptor for the colors field.
Definition series_points.hpp:112
Collection< ComponentColumn > columns()
Partitions the component data into unit-length sub-batches.
Definition series_points.hpp:234
static SeriesPoints update_fields()
Update only some specific fields of a SeriesPoints.
Definition series_points.hpp:156
SeriesPoints with_visible_series(const Collection< rerun::components::Visible > &_visible_series) &&
Which lines are visible.
Definition series_points.hpp:194
SeriesPoints with_colors(const Collection< rerun::components::Color > &_colors) &&
Color for the corresponding series.
Definition series_points.hpp:166
SeriesPoints with_names(const Collection< rerun::components::Name > &_names) &&
Display name of the series.
Definition series_points.hpp:182
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:130
static constexpr const char ArchetypeName[]
The name of the archetype as used in ComponentDescriptors.
Definition series_points.hpp:109
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:174
static constexpr auto Descriptor_names
ComponentDescriptor for the names field.
Definition series_points.hpp:121
Component: A display name, typically for an entity or a item like a plot series.
Definition name.hpp:19