|
Rerun C++ SDK
|
Archetype: One or more scalar measurements, each with a variance and a unit. More...
#include <rerun/archetypes/measurements.hpp>
Public Member Functions | |
| Measurements (Measurements &&other)=default | |
| Measurements (const Measurements &other)=default | |
| Measurements & | operator= (const Measurements &other)=default |
| Measurements & | operator= (Measurements &&other)=default |
| Measurements (Collection< rerun::components::Scalar > _values) | |
| Measurements | with_values (const Collection< rerun::components::Scalar > &_values) && |
| The measured scalar values. | |
| Measurements | with_variances (const Collection< rerun::components::Variance > &_variances) && |
Variances of the measurements (σ², in the units of values squared). | |
| Measurements | with_units (const Collection< rerun::components::Unit > &_units) && |
| Units of the measurements, shown in the legend and in tooltips. | |
| Measurements | with_colors (const Collection< rerun::components::Color > &_colors) && |
| Color for the corresponding series. | |
| Measurements | with_widths (const Collection< rerun::components::StrokeWidth > &_widths) && |
| Stroke width for the corresponding series. | |
| Measurements | with_names (const Collection< rerun::components::Name > &_names) && |
| Display name of the series. | |
| Measurements | with_visible_series (const Collection< rerun::components::Visible > &_visible_series) && |
| Which series are visible. | |
| Measurements | with_aggregation_policy (const rerun::components::AggregationPolicy &_aggregation_policy) && |
| Configures the zoom-dependent scalar aggregation. | |
| 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. | |
| Measurements | with_interpolation_mode (const rerun::components::InterpolationMode &_interpolation_mode) && |
| Specifies how values between data points are interpolated. | |
| 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. | |
| Collection< ComponentColumn > | columns (const Collection< uint32_t > &lengths_) |
| Partitions the component data into multiple sub-batches. | |
| Collection< ComponentColumn > | columns () |
| Partitions the component data into unit-length sub-batches. | |
Static Public Member Functions | |
| static Measurements | update_fields () |
Update only some specific fields of a Measurements. | |
| static Measurements | clear_fields () |
Clear all the fields of a Measurements. | |
Public Attributes | |
| std::optional< ComponentBatch > | values |
| The measured scalar values. | |
| std::optional< ComponentBatch > | variances |
Variances of the measurements (σ², in the units of values squared). | |
| std::optional< ComponentBatch > | units |
| Units of the measurements, shown in the legend and in tooltips. | |
| std::optional< ComponentBatch > | colors |
| Color for the corresponding series. | |
| std::optional< ComponentBatch > | widths |
| Stroke width for the corresponding series. | |
| std::optional< ComponentBatch > | names |
| Display name of the series. | |
| std::optional< ComponentBatch > | visible_series |
| Which series are visible. | |
| std::optional< ComponentBatch > | aggregation_policy |
| Configures the zoom-dependent scalar aggregation. | |
| std::optional< ComponentBatch > | interpolation_mode |
| Specifies how values between data points are interpolated. | |
Static Public Attributes | |
| static constexpr const char | ArchetypeName [] = "rerun.archetypes.Measurements" |
The name of the archetype as used in ComponentDescriptors. | |
| static constexpr auto | Descriptor_values |
ComponentDescriptor for the values field. | |
| static constexpr auto | Descriptor_variances |
ComponentDescriptor for the variances field. | |
| static constexpr auto | Descriptor_units |
ComponentDescriptor for the units field. | |
| static constexpr auto | Descriptor_colors |
ComponentDescriptor for the colors field. | |
| static constexpr auto | Descriptor_widths |
ComponentDescriptor for the widths field. | |
| static constexpr auto | Descriptor_names |
ComponentDescriptor for the names field. | |
| static constexpr auto | Descriptor_visible_series |
ComponentDescriptor for the visible_series field. | |
| static constexpr auto | Descriptor_aggregation_policy |
ComponentDescriptor for the aggregation_policy field. | |
| static constexpr auto | Descriptor_interpolation_mode |
ComponentDescriptor for the interpolation_mode field. | |
Archetype: One or more scalar measurements, each with a variance and a unit.
Use this for sensors that report a value together with its uncertainty: pressure, temperature, illuminance, relative humidity, range, and so on.
In a views::TimeSeriesView each series is drawn as a line with a translucent band around it, one standard deviation (the square root of the variance) wide in each direction. Leave variances unset if the uncertainty is unknown.
The current timeline value is used for the time/X-axis, so measurements should not be static. Number of values per timestamp is expected to be the same over time.
Unlike archetypes::Scalars, this archetype carries its own styling, so values and style are logged together. Changes over time are supported for most but not all styling fields (see respective fields for details).

⚠ This type is unstable and may change significantly in a way that the data won't be backwards compatible.
|
inline |
Variances of the measurements (σ², in the units of values squared).
When set, length is expected to match values.
|
inline |
Units of the measurements, shown in the legend and in tooltips.
When set, length is expected to match values. Expected to be unchanging over time.
|
inline |
Color for the corresponding series.
May change over time, but can cause discontinuities in the line.
|
inline |
Stroke width for the corresponding series.
May change over time, but can cause discontinuities in the line.
|
inline |
Display name of the series.
Used in the legend. Expected to be unchanging over time.
|
inline |
Which series are visible.
If not set, all series on this entity are visible. Unlike with the regular visibility property of the entire entity, any series that is hidden via this property will still be visible in the legend.
May change over time, but can cause discontinuities in the line.
|
inline |
Configures the zoom-dependent scalar aggregation.
This is done only if steps on the X axis go below a single pixel, i.e. a single pixel covers more than one tick worth of data. It can greatly improve performance (and readability) in such situations as it prevents overdraw.
Expected to be unchanging over time.
|
inline |
This method makes it possible to pack multiple aggregation_policy in a single component batch.
This only makes sense when used in conjunction with columns. with_aggregation_policy should be used when logging a single row's worth of data.
|
inline |
Specifies how values between data points are interpolated.
Defaults to linear interpolation. Use one of the Step* variants for a stepped (staircase) line.
Expected to be unchanging over time.
|
inline |
This method makes it possible to pack multiple interpolation_mode in a single component batch.
This only makes sense when used in conjunction with columns. with_interpolation_mode should be used when logging a single row's worth of data.
| Collection< ComponentColumn > rerun::archetypes::Measurements::columns | ( | const Collection< uint32_t > & | lengths_ | ) |
Partitions the component data into multiple sub-batches.
Specifically, this transforms the existing ComponentBatch data into ComponentColumns instead, via ComponentBatch::partitioned.
This makes it possible to use RecordingStream::send_columns to send columnar data directly into Rerun.
The specified lengths must sum to the total length of the component batch.
| Collection< ComponentColumn > rerun::archetypes::Measurements::columns | ( | ) |
Partitions the component data into unit-length sub-batches.
This is semantically similar to calling columns with std::vector<uint32_t>(n, 1), where n is automatically guessed.
| std::optional<ComponentBatch> rerun::archetypes::Measurements::variances |
Variances of the measurements (σ², in the units of values squared).
When set, length is expected to match values.
| std::optional<ComponentBatch> rerun::archetypes::Measurements::units |
Units of the measurements, shown in the legend and in tooltips.
When set, length is expected to match values. Expected to be unchanging over time.
| std::optional<ComponentBatch> rerun::archetypes::Measurements::colors |
Color for the corresponding series.
May change over time, but can cause discontinuities in the line.
| std::optional<ComponentBatch> rerun::archetypes::Measurements::widths |
Stroke width for the corresponding series.
May change over time, but can cause discontinuities in the line.
| std::optional<ComponentBatch> rerun::archetypes::Measurements::names |
Display name of the series.
Used in the legend. Expected to be unchanging over time.
| std::optional<ComponentBatch> rerun::archetypes::Measurements::visible_series |
Which series are visible.
If not set, all series on this entity are visible. Unlike with the regular visibility property of the entire entity, any series that is hidden via this property will still be visible in the legend.
May change over time, but can cause discontinuities in the line.
| std::optional<ComponentBatch> rerun::archetypes::Measurements::aggregation_policy |
Configures the zoom-dependent scalar aggregation.
This is done only if steps on the X axis go below a single pixel, i.e. a single pixel covers more than one tick worth of data. It can greatly improve performance (and readability) in such situations as it prevents overdraw.
Expected to be unchanging over time.
| std::optional<ComponentBatch> rerun::archetypes::Measurements::interpolation_mode |
Specifies how values between data points are interpolated.
Defaults to linear interpolation. Use one of the Step* variants for a stepped (staircase) line.
Expected to be unchanging over time.
|
staticconstexpr |
ComponentDescriptor for the values field.
|
staticconstexpr |
ComponentDescriptor for the variances field.
|
staticconstexpr |
ComponentDescriptor for the units field.
|
staticconstexpr |
ComponentDescriptor for the colors field.
|
staticconstexpr |
ComponentDescriptor for the widths field.
|
staticconstexpr |
ComponentDescriptor for the names field.
|
staticconstexpr |
ComponentDescriptor for the visible_series field.
|
staticconstexpr |
ComponentDescriptor for the aggregation_policy field.
|
staticconstexpr |
ComponentDescriptor for the interpolation_mode field.