6#include "../collection.hpp"
7#include "../compiler_utils.hpp"
8#include "../component_batch.hpp"
9#include "../components/aggregation_policy.hpp"
10#include "../components/color.hpp"
11#include "../components/name.hpp"
12#include "../components/stroke_width.hpp"
13#include "../indicator_component.hpp"
14#include "../result.hpp"
67 std::optional<rerun::components::Color>
color;
70 std::optional<rerun::components::StrokeWidth>
width;
75 std::optional<rerun::components::Name>
name;
85 static constexpr const char IndicatorComponentName[] =
86 "rerun.components.SeriesLineIndicator";
97 color = std::move(_color);
99 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
104 width = std::move(_width);
106 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
113 name = std::move(_name);
115 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
127 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
135 template <
typename T>
140 struct AsComponents<archetypes::SeriesLine> {
142 static Result<std::vector<ComponentBatch>> serialize(
const archetypes::SeriesLine& archetype
All built-in archetypes. See Types in the Rerun manual.
Definition rerun.hpp:72
AggregationPolicy
Component: Policy for aggregation of multiple scalar plot values.
Definition aggregation_policy.hpp:28
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:22
Archetype: Define the style properties for a line series in a chart.
Definition series_line.hpp:65
SeriesLine with_name(rerun::components::Name _name) &&
Display name of the series.
Definition series_line.hpp:112
SeriesLine with_width(rerun::components::StrokeWidth _width) &&
Stroke width for the corresponding series.
Definition series_line.hpp:103
std::optional< rerun::components::Name > name
Display name of the series.
Definition series_line.hpp:75
std::optional< rerun::components::StrokeWidth > width
Stroke width for the corresponding series.
Definition series_line.hpp:70
std::optional< rerun::components::AggregationPolicy > aggregation_policy
Configures the zoom-dependent scalar aggregation.
Definition series_line.hpp:82
SeriesLine with_aggregation_policy(rerun::components::AggregationPolicy _aggregation_policy) &&
Configures the zoom-dependent scalar aggregation.
Definition series_line.hpp:123
std::optional< rerun::components::Color > color
Color for the corresponding series.
Definition series_line.hpp:67
SeriesLine with_color(rerun::components::Color _color) &&
Color for the corresponding series.
Definition series_line.hpp:96
Component: An RGBA color with unmultiplied/separate alpha, in sRGB gamma space with linear alpha.
Definition color.hpp:17
Indicator component used by archetypes when converting them to component lists.
Definition indicator_component.hpp:30
Component: A display name, typically for an entity or a item like a plot series.
Definition name.hpp:16
Component: The width of a stroke specified in UI points.
Definition stroke_width.hpp:14