6#include "../../blueprint/components/active_tab.hpp"
7#include "../../blueprint/components/column_share.hpp"
8#include "../../blueprint/components/container_kind.hpp"
9#include "../../blueprint/components/grid_columns.hpp"
10#include "../../blueprint/components/included_content.hpp"
11#include "../../blueprint/components/row_share.hpp"
12#include "../../collection.hpp"
13#include "../../component_batch.hpp"
14#include "../../component_column.hpp"
15#include "../../components/name.hpp"
16#include "../../components/visible.hpp"
17#include "../../indicator_component.hpp"
18#include "../../result.hpp"
25namespace rerun::blueprint::archetypes {
72 static constexpr const char IndicatorComponentName[] =
73 "rerun.blueprint.components.ContainerBlueprintIndicator";
79 "rerun.blueprint.archetypes.ContainerBlueprint";
129 explicit ContainerBlueprint(rerun::blueprint::components::ContainerKind _container_kind)
133 .value_or_throw()) {}
145 const rerun::blueprint::components::ContainerKind& _container_kind
150 return std::move(*
this);
157 return std::move(*
this);
166 return std::move(*
this);
179 return std::move(*
this);
192 return std::move(*
this);
203 return std::move(*
this);
211 return std::move(*
this);
224 return std::move(*
this);
248 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: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: The description of a container.
Definition container_blueprint.hpp:30
static constexpr auto Descriptor_display_name
ComponentDescriptor for the display_name field.
Definition container_blueprint.hpp:87
ContainerBlueprint with_col_shares(const Collection< rerun::blueprint::components::ColumnShare > &_col_shares) &&
The layout shares of each column in the container.
Definition container_blueprint.hpp:174
std::optional< ComponentBatch > active_tab
Which tab is active.
Definition container_blueprint.hpp:57
static constexpr const char ArchetypeName[]
The name of the archetype as used in ComponentDescriptors.
Definition container_blueprint.hpp:78
std::optional< ComponentBatch > display_name
The name of the container.
Definition container_blueprint.hpp:35
ContainerBlueprint with_container_kind(const rerun::blueprint::components::ContainerKind &_container_kind) &&
The class of the view.
Definition container_blueprint.hpp:144
static constexpr auto Descriptor_grid_columns
ComponentDescriptor for the grid_columns field.
Definition container_blueprint.hpp:117
ContainerBlueprint with_visible(const rerun::components::Visible &_visible) &&
Whether this container is visible.
Definition container_blueprint.hpp:209
std::optional< ComponentBatch > container_kind
The class of the view.
Definition container_blueprint.hpp:32
static constexpr auto Descriptor_contents
ComponentDescriptor for the contents field.
Definition container_blueprint.hpp:92
ContainerBlueprint with_grid_columns(const rerun::blueprint::components::GridColumns &_grid_columns) &&
How many columns this grid should have.
Definition container_blueprint.hpp:219
ContainerBlueprint with_display_name(const rerun::components::Name &_display_name) &&
The name of the container.
Definition container_blueprint.hpp:154
std::optional< ComponentBatch > row_shares
The layout shares of each row of the container.
Definition container_blueprint.hpp:52
std::optional< ComponentBatch > contents
ContainerIds or ViewIds that are children of this container.
Definition container_blueprint.hpp:38
static constexpr auto Descriptor_container_kind
ComponentDescriptor for the container_kind field.
Definition container_blueprint.hpp:82
Collection< ComponentColumn > columns()
Partitions the component data into unit-length sub-batches.
ContainerBlueprint with_contents(const Collection< rerun::blueprint::components::IncludedContent > &_contents) &&
ContainerIds or ViewIds that are children of this container.
Definition container_blueprint.hpp:161
ContainerBlueprint with_row_shares(const Collection< rerun::blueprint::components::RowShare > &_row_shares) &&
The layout shares of each row of the container.
Definition container_blueprint.hpp:187
Collection< ComponentColumn > columns(const Collection< uint32_t > &lengths_)
Partitions the component data into multiple sub-batches.
static constexpr auto Descriptor_active_tab
ComponentDescriptor for the active_tab field.
Definition container_blueprint.hpp:107
static ContainerBlueprint clear_fields()
Clear all the fields of a ContainerBlueprint.
std::optional< ComponentBatch > col_shares
The layout shares of each column in the container.
Definition container_blueprint.hpp:45
static constexpr auto Descriptor_row_shares
ComponentDescriptor for the row_shares field.
Definition container_blueprint.hpp:102
std::optional< ComponentBatch > visible
Whether this container is visible.
Definition container_blueprint.hpp:62
static constexpr auto Descriptor_col_shares
ComponentDescriptor for the col_shares field.
Definition container_blueprint.hpp:97
static ContainerBlueprint update_fields()
Update only some specific fields of a ContainerBlueprint.
Definition container_blueprint.hpp:136
ContainerBlueprint with_active_tab(const rerun::blueprint::components::ActiveTab &_active_tab) &&
Which tab is active.
Definition container_blueprint.hpp:198
static constexpr auto Descriptor_visible
ComponentDescriptor for the visible field.
Definition container_blueprint.hpp:112
std::optional< ComponentBatch > grid_columns
How many columns this grid should have.
Definition container_blueprint.hpp:69
Component: The active tab in a tabbed container.
Definition active_tab.hpp:20
Component: How many columns a grid container should have.
Definition grid_columns.hpp:18
Indicator component used by archetypes when converting them to component lists.
Definition indicator_component.hpp:32
Component: A display name, typically for an entity or a item like a plot series.
Definition name.hpp:17
Component: Whether the container, view, entity or instance is currently visible.
Definition visible.hpp:15