|
Rerun C++ SDK
|
Archetype: Time panel specific state. More...
#include <rerun/blueprint/archetypes/time_panel_blueprint.hpp>
Public Member Functions | |
| TimePanelBlueprint (TimePanelBlueprint &&other)=default | |
| TimePanelBlueprint (const TimePanelBlueprint &other)=default | |
| TimePanelBlueprint & | operator= (const TimePanelBlueprint &other)=default |
| TimePanelBlueprint & | operator= (TimePanelBlueprint &&other)=default |
| TimePanelBlueprint | with_state (const rerun::blueprint::components::PanelState &_state) && |
| Current state of the panel. | |
| TimePanelBlueprint | with_timeline (const rerun::blueprint::components::TimelineName &_timeline) && |
| What timeline the panel is on. | |
| TimePanelBlueprint | with_playback_speed (const rerun::blueprint::components::PlaybackSpeed &_playback_speed) && |
| A time playback speed multiplier. | |
| TimePanelBlueprint | with_fps (const rerun::blueprint::components::Fps &_fps) && |
| Frames per second. Only applicable for sequence timelines. | |
| TimePanelBlueprint | with_play_state (const rerun::blueprint::components::PlayState &_play_state) && |
| If the time is currently paused, playing, or following. | |
| TimePanelBlueprint | with_loop_mode (const rerun::blueprint::components::LoopMode &_loop_mode) && |
| How the time should loop. | |
| TimePanelBlueprint | with_time_selection (const rerun::blueprint::components::AbsoluteTimeRange &_time_selection) && |
| Selects a range of time on the time panel. | |
| 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 TimePanelBlueprint | update_fields () |
Update only some specific fields of a TimePanelBlueprint. | |
| static TimePanelBlueprint | clear_fields () |
Clear all the fields of a TimePanelBlueprint. | |
Public Attributes | |
| std::optional< ComponentBatch > | state |
| Current state of the panel. | |
| std::optional< ComponentBatch > | timeline |
| What timeline the panel is on. | |
| std::optional< ComponentBatch > | playback_speed |
| A time playback speed multiplier. | |
| std::optional< ComponentBatch > | fps |
| Frames per second. Only applicable for sequence timelines. | |
| std::optional< ComponentBatch > | play_state |
| If the time is currently paused, playing, or following. | |
| std::optional< ComponentBatch > | loop_mode |
| How the time should loop. | |
| std::optional< ComponentBatch > | time_selection |
| Selects a range of time on the time panel. | |
Static Public Attributes | |
| static constexpr const char | ArchetypeName [] |
The name of the archetype as used in ComponentDescriptors. | |
| static constexpr auto | Descriptor_state |
ComponentDescriptor for the state field. | |
| static constexpr auto | Descriptor_timeline |
ComponentDescriptor for the timeline field. | |
| static constexpr auto | Descriptor_playback_speed |
ComponentDescriptor for the playback_speed field. | |
| static constexpr auto | Descriptor_fps |
ComponentDescriptor for the fps field. | |
| static constexpr auto | Descriptor_play_state |
ComponentDescriptor for the play_state field. | |
| static constexpr auto | Descriptor_loop_mode |
ComponentDescriptor for the loop_mode field. | |
| static constexpr auto | Descriptor_time_selection |
ComponentDescriptor for the time_selection field. | |
Archetype: Time panel specific state.
⚠ This type is unstable and may change significantly in a way that the data won't be backwards compatible.
|
inline |
If the time is currently paused, playing, or following.
Defaults to either playing or following, depending on the data source.
|
inline |
How the time should loop.
A selection loop only works if there is also a time_selection passed.
Defaults to off.
| Collection< ComponentColumn > rerun::blueprint::archetypes::TimePanelBlueprint::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::blueprint::archetypes::TimePanelBlueprint::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::blueprint::archetypes::TimePanelBlueprint::play_state |
If the time is currently paused, playing, or following.
Defaults to either playing or following, depending on the data source.
| std::optional<ComponentBatch> rerun::blueprint::archetypes::TimePanelBlueprint::loop_mode |
How the time should loop.
A selection loop only works if there is also a time_selection passed.
Defaults to off.
|
staticconstexpr |
The name of the archetype as used in ComponentDescriptors.
|
staticconstexpr |
ComponentDescriptor for the state field.
|
staticconstexpr |
ComponentDescriptor for the timeline field.
|
staticconstexpr |
ComponentDescriptor for the playback_speed field.
|
staticconstexpr |
ComponentDescriptor for the fps field.
|
staticconstexpr |
ComponentDescriptor for the play_state field.
|
staticconstexpr |
ComponentDescriptor for the loop_mode field.
|
staticconstexpr |
ComponentDescriptor for the time_selection field.