6#include "../collection.hpp"
7#include "../compiler_utils.hpp"
8#include "../components/color.hpp"
9#include "../components/radius.hpp"
10#include "../components/scalar.hpp"
11#include "../components/scalar_scattering.hpp"
12#include "../components/text.hpp"
13#include "../data_cell.hpp"
14#include "../indicator_component.hpp"
15#include "../result.hpp"
60 std::optional<rerun::components::Radius>
radius;
73 std::optional<rerun::components::Color>
color;
83 std::optional<rerun::components::Text>
label;
92 std::optional<rerun::components::ScalarScattering>
scattered;
95 static constexpr const char IndicatorComponentName[] =
96 "rerun.components.TimeSeriesScalarIndicator";
116 radius = std::move(_radius);
118 RERUN_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
133 color = std::move(_color);
135 RERUN_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
147 label = std::move(_label);
149 RERUN_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
162 RERUN_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
175 template <
typename T>
180 struct AsComponents<archetypes::TimeSeriesScalar> {
182 static Result<std::vector<DataCell>> serialize(
const archetypes::TimeSeriesScalar& archetype
All built-in archetypes. See Types in the Rerun manual.
Definition rerun.hpp:66
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:20
Archetype: Log a double-precision scalar that will be visualized as a time-series plot.
Definition time_series_scalar.hpp:48
std::optional< rerun::components::Text > label
An optional label for the point.
Definition time_series_scalar.hpp:83
TimeSeriesScalar with_label(rerun::components::Text _label) &&
An optional label for the point.
Definition time_series_scalar.hpp:146
TimeSeriesScalar with_radius(rerun::components::Radius _radius) &&
An optional radius for the point.
Definition time_series_scalar.hpp:115
std::optional< rerun::components::ScalarScattering > scattered
Specifies whether a point in a scatter plot should form a continuous line.
Definition time_series_scalar.hpp:92
rerun::components::Scalar scalar
The scalar value to log.
Definition time_series_scalar.hpp:50
TimeSeriesScalar with_color(rerun::components::Color _color) &&
Optional color for the scalar entry.
Definition time_series_scalar.hpp:132
std::optional< rerun::components::Radius > radius
An optional radius for the point.
Definition time_series_scalar.hpp:60
TimeSeriesScalar with_scattered(rerun::components::ScalarScattering _scattered) &&
Specifies whether a point in a scatter plot should form a continuous line.
Definition time_series_scalar.hpp:159
std::optional< rerun::components::Color > color
Optional color for the scalar entry.
Definition time_series_scalar.hpp:73
size_t num_instances() const
Returns the number of primary instances of this archetype.
Definition time_series_scalar.hpp:166
Component: An RGBA color with unmultiplied/separate alpha, in sRGB gamma space with linear alpha.
Definition color.hpp:28
Indicator component used by archetypes when converting them to component lists.
Definition indicator_component.hpp:23
Component: A Radius component.
Definition radius.hpp:24
Component: If true, a scalar will be shown as individual point in a scatter plot.
Definition scalar_scattering.hpp:19
Component: A double-precision scalar.
Definition scalar.hpp:26
Component: A string of text, e.g. for labels and text documents.
Definition text.hpp:22