6#include "../../blueprint/components/lock_range_during_zoom.hpp"
7#include "../../collection.hpp"
8#include "../../component_batch.hpp"
9#include "../../component_column.hpp"
10#include "../../components/range1d.hpp"
11#include "../../result.hpp"
18namespace rerun::blueprint::archetypes {
27 std::optional<ComponentBatch>
range;
34 static constexpr const char ArchetypeName[] =
"rerun.blueprint.archetypes.ScalarAxis";
66 return std::move(*
this);
75 return std::move(*
this);
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: Configuration for the scalar (Y) axis of a plot.
Definition scalar_axis.hpp:23
Collection< ComponentColumn > columns()
Partitions the component data into unit-length sub-batches.
Collection< ComponentColumn > columns(const Collection< uint32_t > &lengths_)
Partitions the component data into multiple sub-batches.
ScalarAxis with_range(const rerun::components::Range1D &_range) &&
The range of the axis.
Definition scalar_axis.hpp:64
std::optional< ComponentBatch > zoom_lock
If enabled, the Y axis range will remain locked to the specified range when zooming.
Definition scalar_axis.hpp:30
static constexpr auto Descriptor_zoom_lock
ComponentDescriptor for the zoom_lock field.
Definition scalar_axis.hpp:41
std::optional< ComponentBatch > range
The range of the axis.
Definition scalar_axis.hpp:27
static ScalarAxis clear_fields()
Clear all the fields of a ScalarAxis.
ScalarAxis with_zoom_lock(const rerun::blueprint::components::LockRangeDuringZoom &_zoom_lock) &&
If enabled, the Y axis range will remain locked to the specified range when zooming.
Definition scalar_axis.hpp:70
static constexpr const char ArchetypeName[]
The name of the archetype as used in ComponentDescriptors.
Definition scalar_axis.hpp:34
static constexpr auto Descriptor_range
ComponentDescriptor for the range field.
Definition scalar_axis.hpp:37
static ScalarAxis update_fields()
Update only some specific fields of a ScalarAxis.
Definition scalar_axis.hpp:54
Component: Indicate whether the range should be locked when zooming in on the data.
Definition lock_range_during_zoom.hpp:19
Component: A 1D range, specifying a lower and upper bound.
Definition range1d.hpp:15