6#include "../collection.hpp"
7#include "../compiler_utils.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/series_visible.hpp"
15#include "../indicator_component.hpp"
16#include "../result.hpp"
24RR_DISABLE_DEPRECATION_WARNING
81 struct [[deprecated(
"since 0.23.0: Use `SeriesPoints` instead.")]]
SeriesPoint {
83 std::optional<ComponentBatch>
color;
86 std::optional<ComponentBatch>
marker;
91 std::optional<ComponentBatch>
name;
104 static constexpr const char IndicatorComponentName[] =
105 "rerun.components.SeriesPointIndicator";
110 static constexpr const char ArchetypeName[] =
"rerun.archetypes.SeriesPoint";
118 ArchetypeName,
"marker",
127 ArchetypeName,
"visible_series",
132 ArchetypeName,
"marker_size",
153 color = ComponentBatch::from_loggable(_color, Descriptor_color).value_or_throw();
154 return std::move(*
this);
162 color = ComponentBatch::from_loggable(_color, Descriptor_color).value_or_throw();
163 return std::move(*
this);
168 marker = ComponentBatch::from_loggable(_marker, Descriptor_marker).value_or_throw();
169 return std::move(*
this);
177 marker = ComponentBatch::from_loggable(_marker, Descriptor_marker).value_or_throw();
178 return std::move(*
this);
185 name = ComponentBatch::from_loggable(_name, Descriptor_name).value_or_throw();
186 return std::move(*
this);
194 name = ComponentBatch::from_loggable(_name, Descriptor_name).value_or_throw();
195 return std::move(*
this);
207 ComponentBatch::from_loggable(_visible_series, Descriptor_visible_series)
209 return std::move(*
this);
214 marker_size = ComponentBatch::from_loggable(_marker_size, Descriptor_marker_size)
216 return std::move(*
this);
226 marker_size = ComponentBatch::from_loggable(_marker_size, Descriptor_marker_size)
228 return std::move(*
this);
252 template <
typename T>
255 RR_DISABLE_DEPRECATION_WARNING
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
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:81
std::optional< ComponentBatch > name
Display name of the series.
Definition series_point.hpp:91
static SeriesPoint update_fields()
Update only some specific fields of a SeriesPoint.
Definition series_point.hpp:144
SeriesPoint with_marker_size(const rerun::components::MarkerSize &_marker_size) &&
Size of the marker.
Definition series_point.hpp:213
std::optional< ComponentBatch > marker_size
Size of the marker.
Definition series_point.hpp:101
std::optional< ComponentBatch > marker
What shape to use to represent the point.
Definition series_point.hpp:86
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:176
std::optional< ComponentBatch > color
Color for the corresponding series.
Definition series_point.hpp:83
SeriesPoint with_visible_series(const Collection< rerun::components::SeriesVisible > &_visible_series) &&
Which point series are visible.
Definition series_point.hpp:203
std::optional< ComponentBatch > visible_series
Which point series are visible.
Definition series_point.hpp:98
Collection< ComponentColumn > columns()
Partitions the component data into unit-length sub-batches.
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:193
SeriesPoint with_color(const rerun::components::Color &_color) &&
Color for the corresponding series.
Definition series_point.hpp:152
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:161
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:184
SeriesPoint with_marker(const rerun::components::MarkerShape &_marker) &&
What shape to use to represent the point.
Definition series_point.hpp:167
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:223
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