6#include "../../blueprint/components/play_state.hpp"
7#include "../../blueprint/components/playback_speed.hpp"
8#include "../../blueprint/components/timeline_fraction.hpp"
9#include "../../blueprint/components/timeline_name.hpp"
10#include "../../collection.hpp"
11#include "../../component_batch.hpp"
12#include "../../component_column.hpp"
13#include "../../result.hpp"
20namespace rerun::blueprint::archetypes {
52 static constexpr const char ArchetypeName[] =
"rerun.blueprint.archetypes.PreviewsConfig";
97 return std::move(*
this);
108 return std::move(*
this);
120 return std::move(*
this);
132 return std::move(*
this);
156 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:26
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: Shared configuration for every preview cell in a table blueprint.
Definition previews_config.hpp:27
static PreviewsConfig update_fields()
Update only some specific fields of a PreviewsConfig.
Definition previews_config.hpp:83
static constexpr auto Descriptor_start_point
ComponentDescriptor for the start_point field.
Definition previews_config.hpp:70
Collection< ComponentColumn > columns()
Partitions the component data into unit-length sub-batches.
std::optional< ComponentBatch > start_point
Where every preview cell starts, as a fraction of the recording's time range.
Definition previews_config.hpp:48
PreviewsConfig with_start_point(const rerun::blueprint::components::TimelineFraction &_start_point) &&
Where every preview cell starts, as a fraction of the recording's time range.
Definition previews_config.hpp:127
Collection< ComponentColumn > columns(const Collection< uint32_t > &lengths_)
Partitions the component data into multiple sub-batches.
static constexpr auto Descriptor_timeline
ComponentDescriptor for the timeline field.
Definition previews_config.hpp:55
static PreviewsConfig clear_fields()
Clear all the fields of a PreviewsConfig.
static constexpr auto Descriptor_play_state
ComponentDescriptor for the play_state field.
Definition previews_config.hpp:60
PreviewsConfig with_playback_speed(const rerun::blueprint::components::PlaybackSpeed &_playback_speed) &&
Playback speed of every preview cell.
Definition previews_config.hpp:114
static constexpr auto Descriptor_playback_speed
ComponentDescriptor for the playback_speed field.
Definition previews_config.hpp:65
std::optional< ComponentBatch > play_state
Whether every preview cell plays.
Definition previews_config.hpp:37
std::optional< ComponentBatch > timeline
The timeline used by every preview cell.
Definition previews_config.hpp:31
PreviewsConfig with_play_state(const rerun::blueprint::components::PlayState &_play_state) &&
Whether every preview cell plays.
Definition previews_config.hpp:104
static constexpr const char ArchetypeName[]
The name of the archetype as used in ComponentDescriptors.
Definition previews_config.hpp:52
PreviewsConfig with_timeline(const rerun::blueprint::components::TimelineName &_timeline) &&
The timeline used by every preview cell.
Definition previews_config.hpp:93
std::optional< ComponentBatch > playback_speed
Playback speed of every preview cell.
Definition previews_config.hpp:42
Component: A playback speed which determines how fast time progresses.
Definition playback_speed.hpp:17
Component: A position on a timeline, as a fraction of its time range.
Definition timeline_fraction.hpp:19
Component: A timeline identified by its name.
Definition timeline_name.hpp:22