6#include "../collection.hpp"
7#include "../component_batch.hpp"
8#include "../component_column.hpp"
9#include "../components/aggregation_policy.hpp"
10#include "../components/color.hpp"
11#include "../components/interpolation_mode.hpp"
12#include "../components/name.hpp"
13#include "../components/scalar.hpp"
14#include "../components/stroke_width.hpp"
15#include "../components/unit.hpp"
16#include "../components/variance.hpp"
17#include "../components/visible.hpp"
18#include "../result.hpp"
83 std::optional<ComponentBatch>
values;
94 std::optional<ComponentBatch>
units;
99 std::optional<ComponentBatch>
colors;
109 std::optional<ComponentBatch>
names;
138 static constexpr const char ArchetypeName[] =
"rerun.archetypes.Measurements";
191 .value_or_throw()) {}
204 return std::move(*
this);
213 return std::move(*
this);
222 return std::move(*
this);
230 return std::move(*
this);
238 return std::move(*
this);
246 return std::move(*
this);
262 return std::move(*
this);
278 return std::move(*
this);
291 return std::move(*
this);
305 return std::move(*
this);
318 return std::move(*
this);
342 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:90
AggregationPolicy
Component: Policy for aggregation of multiple scalar plot values.
Definition aggregation_policy.hpp:28
InterpolationMode
Component: Specifies how values between data points are interpolated in time series.
Definition interpolation_mode.hpp:24
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:26
Arrow-encoded data of a single batch of components together with a component descriptor.
Definition component_batch.hpp:28
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: One or more scalar measurements, each with a variance and a unit.
Definition measurements.hpp:81
static constexpr auto Descriptor_units
ComponentDescriptor for the units field.
Definition measurements.hpp:150
static Measurements clear_fields()
Clear all the fields of a Measurements.
static constexpr auto Descriptor_names
ComponentDescriptor for the names field.
Definition measurements.hpp:163
std::optional< ComponentBatch > widths
Stroke width for the corresponding series.
Definition measurements.hpp:104
std::optional< ComponentBatch > units
Units of the measurements, shown in the legend and in tooltips.
Definition measurements.hpp:94
Measurements with_colors(const Collection< rerun::components::Color > &_colors) &&
Color for the corresponding series.
Definition measurements.hpp:228
static constexpr auto Descriptor_variances
ComponentDescriptor for the variances field.
Definition measurements.hpp:145
std::optional< ComponentBatch > variances
Variances of the measurements (σ², in the units of values squared).
Definition measurements.hpp:88
std::optional< ComponentBatch > colors
Color for the corresponding series.
Definition measurements.hpp:99
Collection< ComponentColumn > columns(const Collection< uint32_t > &lengths_)
Partitions the component data into multiple sub-batches.
std::optional< ComponentBatch > aggregation_policy
Configures the zoom-dependent scalar aggregation.
Definition measurements.hpp:127
std::optional< ComponentBatch > visible_series
Which series are visible.
Definition measurements.hpp:118
Measurements with_interpolation_mode(const rerun::components::InterpolationMode &_interpolation_mode) &&
Specifies how values between data points are interpolated.
Definition measurements.hpp:299
static constexpr auto Descriptor_interpolation_mode
ComponentDescriptor for the interpolation_mode field.
Definition measurements.hpp:177
Measurements with_variances(const Collection< rerun::components::Variance > &_variances) &&
Variances of the measurements (σ², in the units of values squared).
Definition measurements.hpp:210
static Measurements update_fields()
Update only some specific fields of a Measurements.
Definition measurements.hpp:194
static constexpr const char ArchetypeName[]
The name of the archetype as used in ComponentDescriptors.
Definition measurements.hpp:138
static constexpr auto Descriptor_colors
ComponentDescriptor for the colors field.
Definition measurements.hpp:154
Measurements with_aggregation_policy(const rerun::components::AggregationPolicy &_aggregation_policy) &&
Configures the zoom-dependent scalar aggregation.
Definition measurements.hpp:272
std::optional< ComponentBatch > values
The measured scalar values.
Definition measurements.hpp:83
Collection< ComponentColumn > columns()
Partitions the component data into unit-length sub-batches.
Measurements with_widths(const Collection< rerun::components::StrokeWidth > &_widths) &&
Stroke width for the corresponding series.
Definition measurements.hpp:236
static constexpr auto Descriptor_values
ComponentDescriptor for the values field.
Definition measurements.hpp:141
Measurements with_many_interpolation_mode(const Collection< rerun::components::InterpolationMode > &_interpolation_mode) &&
This method makes it possible to pack multiple interpolation_mode in a single component batch.
Definition measurements.hpp:312
Measurements with_names(const Collection< rerun::components::Name > &_names) &&
Display name of the series.
Definition measurements.hpp:244
Measurements with_units(const Collection< rerun::components::Unit > &_units) &&
Units of the measurements, shown in the legend and in tooltips.
Definition measurements.hpp:220
static constexpr auto Descriptor_aggregation_policy
ComponentDescriptor for the aggregation_policy field.
Definition measurements.hpp:172
Measurements with_many_aggregation_policy(const Collection< rerun::components::AggregationPolicy > &_aggregation_policy) &&
This method makes it possible to pack multiple aggregation_policy in a single component batch.
Definition measurements.hpp:285
Measurements with_visible_series(const Collection< rerun::components::Visible > &_visible_series) &&
Which series are visible.
Definition measurements.hpp:256
static constexpr auto Descriptor_visible_series
ComponentDescriptor for the visible_series field.
Definition measurements.hpp:167
static constexpr auto Descriptor_widths
ComponentDescriptor for the widths field.
Definition measurements.hpp:158
std::optional< ComponentBatch > names
Display name of the series.
Definition measurements.hpp:109
Measurements with_values(const Collection< rerun::components::Scalar > &_values) &&
The measured scalar values.
Definition measurements.hpp:202
std::optional< ComponentBatch > interpolation_mode
Specifies how values between data points are interpolated.
Definition measurements.hpp:134