|
Rerun C++ SDK
|
Archetype: One or more double-precision scalar values, e.g. More...
#include <rerun/archetypes/scalars.hpp>
Public Member Functions | |
| Scalars (Scalars &&other)=default | |
| Scalars (const Scalars &other)=default | |
| Scalars & | operator= (const Scalars &other)=default |
| Scalars & | operator= (Scalars &&other)=default |
| Scalars (Collection< rerun::components::Scalar > _scalars) | |
| Scalars | with_scalars (const Collection< rerun::components::Scalar > &_scalars) && |
| The scalar values to log. | |
| 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 Scalars | update_fields () |
Update only some specific fields of a Scalars. | |
| static Scalars | clear_fields () |
Clear all the fields of a Scalars. | |
Public Attributes | |
| std::optional< ComponentBatch > | scalars |
| The scalar values to log. | |
Static Public Attributes | |
| static constexpr const char | ArchetypeName [] = "rerun.archetypes.Scalars" |
The name of the archetype as used in ComponentDescriptors. | |
| static constexpr auto | Descriptor_scalars |
ComponentDescriptor for the scalars field. | |
Archetype: One or more double-precision scalar values, e.g.
for use for time-series plots.
The current timeline value will be used for the time/X-axis, hence scalars should not be static. Number of scalars per timestamp is expected to be the same over time.
When used to produce a plot, this archetype is used to provide the data that is referenced by archetypes::SeriesLines or archetypes::SeriesPoints. You can do this by logging both archetypes to the same path, or alternatively configuring the plot-specific archetypes through the blueprint.


| Collection< ComponentColumn > rerun::archetypes::Scalars::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::Scalars::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.
|
staticconstexpr |
ComponentDescriptor for the scalars field.