6#include "../../blueprint/components/background_kind.hpp"
7#include "../../collection.hpp"
8#include "../../component_batch.hpp"
9#include "../../component_column.hpp"
10#include "../../components/color.hpp"
11#include "../../indicator_component.hpp"
12#include "../../result.hpp"
19namespace rerun::blueprint::archetypes {
23 std::optional<ComponentBatch>
kind;
26 std::optional<ComponentBatch>
color;
29 static constexpr const char IndicatorComponentName[] =
30 "rerun.blueprint.components.BackgroundIndicator";
35 static constexpr const char ArchetypeName[] =
"rerun.blueprint.archetypes.Background";
54 explicit Background(rerun::blueprint::components::BackgroundKind _kind)
69 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
Arrow-encoded data of a single batch of components together with a component descriptor.
Definition component_batch.hpp:28
static Result< ComponentBatch > from_loggable(const rerun::Collection< T > &components, const ComponentDescriptor &descriptor=rerun::Loggable< T >::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:14
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 background of a view.
Definition background.hpp:21
Background with_kind(const rerun::blueprint::components::BackgroundKind &_kind) &&
The type of the background.
Definition background.hpp:67
Background with_color(const rerun::components::Color &_color) &&
Color used for the solid background type.
Definition background.hpp:73
static constexpr auto Descriptor_color
ComponentDescriptor for the color field.
Definition background.hpp:43
static Background clear_fields()
Clear all the fields of a Background.
static constexpr auto Descriptor_kind
ComponentDescriptor for the kind field.
Definition background.hpp:38
Collection< ComponentColumn > columns(const Collection< uint32_t > &lengths_)
Partitions the component data into multiple sub-batches.
std::optional< ComponentBatch > kind
The type of the background.
Definition background.hpp:23
Collection< ComponentColumn > columns()
Partitions the component data into unit-length sub-batches.
static Background update_fields()
Update only some specific fields of a Background.
Definition background.hpp:59
static constexpr const char ArchetypeName[]
The name of the archetype as used in ComponentDescriptors.
Definition background.hpp:35
std::optional< ComponentBatch > color
Color used for the solid background type.
Definition background.hpp:26
Component: An RGBA color with unmultiplied/separate alpha, in sRGB gamma space with linear alpha.
Definition color.hpp:18
Indicator component used by archetypes when converting them to component lists.
Definition indicator_component.hpp:32