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 "../indicator_component.hpp"
14#include "../result.hpp"
75 std::optional<ComponentBatch>
color;
78 std::optional<ComponentBatch>
marker;
83 std::optional<ComponentBatch>
name;
89 static constexpr const char IndicatorComponentName[] =
90 "rerun.components.SeriesPointIndicator";
95 static constexpr const char ArchetypeName[] =
"rerun.archetypes.SeriesPoint";
134 return std::move(*
this);
143 return std::move(*
this);
149 return std::move(*
this);
158 return std::move(*
this);
166 return std::move(*
this);
175 return std::move(*
this);
182 return std::move(*
this);
194 return std::move(*
this);
218 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
MarkerShape
Component: The visual appearance of a point in e.g. a 2D plot.
Definition marker_shape.hpp:25
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 point series in a chart.
Definition series_point.hpp:73
static constexpr auto Descriptor_marker
ComponentDescriptor for the marker field.
Definition series_point.hpp:102
std::optional< ComponentBatch > name
Display name of the series.
Definition series_point.hpp:83
static SeriesPoint update_fields()
Update only some specific fields of a SeriesPoint.
Definition series_point.hpp:124
SeriesPoint with_marker_size(const rerun::components::MarkerSize &_marker_size) &&
Size of the marker.
Definition series_point.hpp:179
std::optional< ComponentBatch > marker_size
Size of the marker.
Definition series_point.hpp:86
std::optional< ComponentBatch > marker
What shape to use to represent the point.
Definition series_point.hpp:78
SeriesPoint with_many_marker(const Collection< rerun::components::MarkerShape > &_marker) &&
This method makes it possible to pack multiple marker in a single component batch.
Definition series_point.hpp:156
std::optional< ComponentBatch > color
Color for the corresponding series.
Definition series_point.hpp:75
Collection< ComponentColumn > columns()
Partitions the component data into unit-length sub-batches.
static constexpr auto Descriptor_name
ComponentDescriptor for the name field.
Definition series_point.hpp:107
SeriesPoint 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_point.hpp:173
SeriesPoint with_color(const rerun::components::Color &_color) &&
Color for the corresponding series.
Definition series_point.hpp:132
static constexpr auto Descriptor_color
ComponentDescriptor for the color field.
Definition series_point.hpp:98
SeriesPoint 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_point.hpp:141
static SeriesPoint clear_fields()
Clear all the fields of a SeriesPoint.
SeriesPoint with_name(const rerun::components::Name &_name) &&
Display name of the series.
Definition series_point.hpp:164
SeriesPoint with_marker(const rerun::components::MarkerShape &_marker) &&
What shape to use to represent the point.
Definition series_point.hpp:147
static constexpr auto Descriptor_marker_size
ComponentDescriptor for the marker_size field.
Definition series_point.hpp:111
Collection< ComponentColumn > columns(const Collection< uint32_t > &lengths_)
Partitions the component data into multiple sub-batches.
SeriesPoint with_many_marker_size(const Collection< rerun::components::MarkerSize > &_marker_size) &&
This method makes it possible to pack multiple marker_size in a single component batch.
Definition series_point.hpp:189
static constexpr const char ArchetypeName[]
The name of the archetype as used in ComponentDescriptors.
Definition series_point.hpp:95
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: Radius of a marker of a point in e.g. a 2D plot, measured in UI points.
Definition marker_size.hpp:15
Component: A display name, typically for an entity or a item like a plot series.
Definition name.hpp:17