6#include "../../blueprint/components/fps.hpp"
7#include "../../blueprint/components/panel_state.hpp"
8#include "../../blueprint/components/playback_speed.hpp"
9#include "../../blueprint/components/time_int.hpp"
10#include "../../blueprint/components/timeline_name.hpp"
11#include "../../collection.hpp"
12#include "../../component_batch.hpp"
13#include "../../component_column.hpp"
14#include "../../result.hpp"
21namespace rerun::blueprint::archetypes {
28 std::optional<ComponentBatch>
state;
34 std::optional<ComponentBatch>
time;
40 std::optional<ComponentBatch>
fps;
45 "rerun.blueprint.archetypes.TimePanelBlueprint";
91 return std::move(*
this);
99 return std::move(*
this);
105 return std::move(*
this);
115 return std::move(*
this);
121 return std::move(*
this);
145 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 Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:23
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: Time panel specific state.
Definition time_panel_blueprint.hpp:26
static constexpr auto Descriptor_timeline
ComponentDescriptor for the timeline field.
Definition time_panel_blueprint.hpp:53
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 constexpr auto Descriptor_state
ComponentDescriptor for the state field.
Definition time_panel_blueprint.hpp:48
std::optional< ComponentBatch > timeline
What timeline the panel is on.
Definition time_panel_blueprint.hpp:31
std::optional< ComponentBatch > playback_speed
A time playback speed multiplier.
Definition time_panel_blueprint.hpp:37
std::optional< ComponentBatch > state
Current state of the panel.
Definition time_panel_blueprint.hpp:28
static constexpr auto Descriptor_fps
ComponentDescriptor for the fps field.
Definition time_panel_blueprint.hpp:68
TimePanelBlueprint with_fps(const rerun::blueprint::components::Fps &_fps) &&
Frames per second. Only applicable for sequence timelines.
Definition time_panel_blueprint.hpp:119
static constexpr const char ArchetypeName[]
The name of the archetype as used in ComponentDescriptors.
Definition time_panel_blueprint.hpp:44
TimePanelBlueprint with_time(const rerun::blueprint::components::TimeInt &_time) &&
What time the time cursor should be on.
Definition time_panel_blueprint.hpp:103
static constexpr auto Descriptor_playback_speed
ComponentDescriptor for the playback_speed field.
Definition time_panel_blueprint.hpp:63
TimePanelBlueprint with_timeline(const rerun::blueprint::components::TimelineName &_timeline) &&
What timeline the panel is on.
Definition time_panel_blueprint.hpp:95
TimePanelBlueprint with_state(const rerun::blueprint::components::PanelState &_state) &&
Current state of the panel.
Definition time_panel_blueprint.hpp:89
static constexpr auto Descriptor_time
ComponentDescriptor for the time field.
Definition time_panel_blueprint.hpp:58
std::optional< ComponentBatch > fps
Frames per second. Only applicable for sequence timelines.
Definition time_panel_blueprint.hpp:40
static TimePanelBlueprint clear_fields()
Clear all the fields of a TimePanelBlueprint.
TimePanelBlueprint with_playback_speed(const rerun::blueprint::components::PlaybackSpeed &_playback_speed) &&
A time playback speed multiplier.
Definition time_panel_blueprint.hpp:109
std::optional< ComponentBatch > time
What time the time cursor should be on.
Definition time_panel_blueprint.hpp:34
static TimePanelBlueprint update_fields()
Update only some specific fields of a TimePanelBlueprint.
Definition time_panel_blueprint.hpp:81
Component: Frames per second for a sequence timeline.
Definition fps.hpp:17
Component: A playback speed which determines how fast time progresses.
Definition playback_speed.hpp:17
Component: A reference to a time.
Definition time_int.hpp:17
Component: A timeline identified by its name.
Definition timeline_name.hpp:19