6#include "../../archetype_utils.hpp"
7#include "../../blueprint/components/points_display.hpp"
8#include "../../blueprint/components/tooltip_mode.hpp"
9#include "../../collection.hpp"
10#include "../../component_batch.hpp"
11#include "../../component_column.hpp"
12#include "../../result.hpp"
19namespace rerun::blueprint::archetypes {
33 static constexpr const char ArchetypeName[] =
"rerun.blueprint.archetypes.PlotInteraction";
63 const rerun::blueprint::components::TooltipMode& _tooltip_mode
67 return std::move(*
this);
72 const rerun::blueprint::components::PointsDisplay& _points_display
77 return std::move(*
this);
107 template <
typename T>
112 struct AsComponents<blueprint::archetypes::PlotInteraction> {
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 plot interaction behavior.
Definition plot_interaction.hpp:24
static constexpr auto Descriptor_tooltip_mode
ComponentDescriptor for the tooltip_mode field.
Definition plot_interaction.hpp:36
std::optional< ComponentBatch > tooltip_mode
How the tooltip behaves when hovering over the plot.
Definition plot_interaction.hpp:26
PlotInteraction with_tooltip_mode(const rerun::blueprint::components::TooltipMode &_tooltip_mode) &&
How the tooltip behaves when hovering over the plot.
Definition plot_interaction.hpp:62
Collection< ComponentColumn > columns(const Collection< uint32_t > &lengths_)
Partitions the component data into multiple sub-batches.
Definition plot_interaction.hpp:88
static constexpr const char ArchetypeName[]
The name of the archetype as used in ComponentDescriptors.
Definition plot_interaction.hpp:33
std::optional< ComponentBatch > points_display
When data point markers are displayed on line series.
Definition plot_interaction.hpp:29
static PlotInteraction clear_fields()
Clear all the fields of a PlotInteraction.
static constexpr auto Descriptor_points_display
ComponentDescriptor for the points_display field.
Definition plot_interaction.hpp:41
Collection< ComponentColumn > columns()
Partitions the component data into unit-length sub-batches.
Definition plot_interaction.hpp:97
PlotInteraction with_points_display(const rerun::blueprint::components::PointsDisplay &_points_display) &&
When data point markers are displayed on line series.
Definition plot_interaction.hpp:71
static PlotInteraction update_fields()
Update only some specific fields of a PlotInteraction.
Definition plot_interaction.hpp:54