|
Rerun C++ SDK
|
Archetype: A status update, representing a change in the status of an entity. More...
#include <rerun/archetypes/status.hpp>
Public Member Functions | |
| Status (Status &&other)=default | |
| Status (const Status &other)=default | |
| Status & | operator= (const Status &other)=default |
| Status & | operator= (Status &&other)=default |
| Status | with_status (const rerun::components::Text &_status) && |
The new status value. A null status is ignored, it can be used to partially update a multi-instance status array. | |
| Status | with_many_status (const Collection< rerun::components::Text > &_status) && |
This method makes it possible to pack multiple status 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 Status | update_fields () |
Update only some specific fields of a Status. | |
| static Status | clear_fields () |
Clear all the fields of a Status. | |
Public Attributes | |
| std::optional< ComponentBatch > | status |
The new status value. A null status is ignored, it can be used to partially update a multi-instance status array. | |
Static Public Attributes | |
| static constexpr const char | ArchetypeName [] = "rerun.archetypes.Status" |
The name of the archetype as used in ComponentDescriptors. | |
| static constexpr auto | Descriptor_status |
ComponentDescriptor for the status field. | |
Archetype: A status update, representing a change in the status of an entity.
Useful for representing discrete state machines, mode transitions, or status changes over time. Each logged archetypes::Status marks a new status at the given time. A null status is ignored by the Status view.
The Status view displays these as horizontal colored lanes over time.

⚠ This type is unstable and may change significantly in a way that the data won't be backwards compatible.
|
inline |
This method makes it possible to pack multiple status in a single component batch.
This only makes sense when used in conjunction with columns. with_status should be used when logging a single row's worth of data.
| Collection< ComponentColumn > rerun::archetypes::Status::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::Status::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 status field.