6#include "../../blueprint/components/points_display.hpp"
7#include "../../blueprint/components/tooltip_mode.hpp"
8#include "../../collection.hpp"
9#include "../../component_batch.hpp"
10#include "../../component_column.hpp"
11#include "../../result.hpp"
18namespace rerun::blueprint::archetypes {
32 static constexpr const char ArchetypeName[] =
"rerun.blueprint.archetypes.PlotInteraction";
62 const rerun::blueprint::components::TooltipMode& _tooltip_mode
66 return std::move(*
this);
71 const rerun::blueprint::components::PointsDisplay& _points_display
76 return std::move(*
this);
100 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: Configuration for plot interaction behavior.
Definition plot_interaction.hpp:23
static constexpr auto Descriptor_tooltip_mode
ComponentDescriptor for the tooltip_mode field.
Definition plot_interaction.hpp:35
std::optional< ComponentBatch > tooltip_mode
How the tooltip behaves when hovering over the plot.
Definition plot_interaction.hpp:25
PlotInteraction with_tooltip_mode(const rerun::blueprint::components::TooltipMode &_tooltip_mode) &&
How the tooltip behaves when hovering over the plot.
Definition plot_interaction.hpp:61
Collection< ComponentColumn > columns(const Collection< uint32_t > &lengths_)
Partitions the component data into multiple sub-batches.
static constexpr const char ArchetypeName[]
The name of the archetype as used in ComponentDescriptors.
Definition plot_interaction.hpp:32
std::optional< ComponentBatch > points_display
When data point markers are displayed on line series.
Definition plot_interaction.hpp:28
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:40
Collection< ComponentColumn > columns()
Partitions the component data into unit-length sub-batches.
PlotInteraction with_points_display(const rerun::blueprint::components::PointsDisplay &_points_display) &&
When data point markers are displayed on line series.
Definition plot_interaction.hpp:70
static PlotInteraction update_fields()
Update only some specific fields of a PlotInteraction.
Definition plot_interaction.hpp:53