6#include "../../blueprint/components/lock_range_during_zoom.hpp"
7#include "../../collection.hpp"
8#include "../../compiler_utils.hpp"
9#include "../../component_batch.hpp"
10#include "../../components/range1d.hpp"
11#include "../../indicator_component.hpp"
12#include "../../result.hpp"
19namespace rerun::blueprint::archetypes {
25 std::optional<rerun::components::Range1D>
range;
28 std::optional<rerun::blueprint::components::LockRangeDuringZoom>
zoom_lock;
31 static constexpr const char IndicatorComponentName[] =
32 "rerun.blueprint.components.ScalarAxisIndicator";
45 range = std::move(_range);
47 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
54 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
67 struct AsComponents<blueprint::archetypes::ScalarAxis> {
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
Archetype: Configuration for the scalar axis of a plot.
Definition scalar_axis.hpp:21
std::optional< 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:28
ScalarAxis with_zoom_lock(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:51
ScalarAxis with_range(rerun::components::Range1D _range) &&
The range of the axis.
Definition scalar_axis.hpp:44
std::optional< rerun::components::Range1D > range
The range of the axis.
Definition scalar_axis.hpp:25
Component: Indicate whether the range should be locked when zooming in on the data.
Definition lock_range_during_zoom.hpp:17
Indicator component used by archetypes when converting them to component lists.
Definition indicator_component.hpp:32
Component: A 1D range, specifying a lower and upper bound.
Definition range1d.hpp:16