6#include "../../archetype_utils.hpp"
7#include "../../blueprint/components/link_axis.hpp"
8#include "../../blueprint/components/lock_range_during_zoom.hpp"
9#include "../../blueprint/components/time_range.hpp"
10#include "../../collection.hpp"
11#include "../../component_batch.hpp"
12#include "../../component_column.hpp"
13#include "../../result.hpp"
20namespace rerun::blueprint::archetypes {
29 std::optional<ComponentBatch>
link;
39 static constexpr const char ArchetypeName[] =
"rerun.blueprint.archetypes.TimeAxis";
77 return std::move(*
this);
84 return std::move(*
this);
92 return std::move(*
this);
122 template <
typename T>
127 struct AsComponents<blueprint::archetypes::TimeAxis> {
132 return detail::collect_batches(
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: Configuration for the horizontal time axis of time series and state timeline views.
Definition time_axis.hpp:25
static TimeAxis update_fields()
Update only some specific fields of a TimeAxis.
Definition time_axis.hpp:65
TimeAxis with_link(const rerun::blueprint::components::LinkAxis &_link) &&
How should the horizontal time axis be linked across multiple views?
Definition time_axis.hpp:75
static constexpr auto Descriptor_view_range
ComponentDescriptor for the view_range field.
Definition time_axis.hpp:47
static constexpr auto Descriptor_zoom_lock
ComponentDescriptor for the zoom_lock field.
Definition time_axis.hpp:52
std::optional< ComponentBatch > zoom_lock
If enabled, the X axis range will remain locked to the specified range when zooming.
Definition time_axis.hpp:35
std::optional< ComponentBatch > link
How should the horizontal time axis be linked across multiple views?
Definition time_axis.hpp:29
TimeAxis with_zoom_lock(const rerun::blueprint::components::LockRangeDuringZoom &_zoom_lock) &&
If enabled, the X axis range will remain locked to the specified range when zooming.
Definition time_axis.hpp:88
Collection< ComponentColumn > columns()
Partitions the component data into unit-length sub-batches.
Definition time_axis.hpp:112
Collection< ComponentColumn > columns(const Collection< uint32_t > &lengths_)
Partitions the component data into multiple sub-batches.
Definition time_axis.hpp:103
static TimeAxis clear_fields()
Clear all the fields of a TimeAxis.
static constexpr const char ArchetypeName[]
The name of the archetype as used in ComponentDescriptors.
Definition time_axis.hpp:39
TimeAxis with_view_range(const rerun::blueprint::components::TimeRange &_view_range) &&
The view range of the horizontal/X/time axis.
Definition time_axis.hpp:81
static constexpr auto Descriptor_link
ComponentDescriptor for the link field.
Definition time_axis.hpp:42
std::optional< ComponentBatch > view_range
The view range of the horizontal/X/time axis.
Definition time_axis.hpp:32
Component: Indicate whether the range should be locked when zooming in on the data.
Definition lock_range_during_zoom.hpp:19
Component: A time range on an unspecified timeline using either relative or absolute boundaries.
Definition time_range.hpp:17