6#include "../../archetype_utils.hpp"
7#include "../../blueprint/components/column_type.hpp"
8#include "../../blueprint/components/editable.hpp"
9#include "../../collection.hpp"
10#include "../../component_batch.hpp"
11#include "../../component_column.hpp"
12#include "../../components/name.hpp"
13#include "../../components/visible.hpp"
14#include "../../result.hpp"
21namespace rerun::blueprint::archetypes {
33 std::optional<ComponentBatch>
name;
58 static constexpr const char ArchetypeName[] =
"rerun.blueprint.archetypes.TableColumn";
100 return std::move(*
this);
111 return std::move(*
this);
121 return std::move(*
this);
133 return std::move(*
this);
154 return detail::partition_batches_of_unit_length(
165 template <
typename T>
170 struct AsComponents<blueprint::archetypes::TableColumn> {
175 return detail::collect_batches(
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: Blueprint for a column used by a table or card layout.
Definition table_column.hpp:29
Collection< ComponentColumn > columns(const Collection< uint32_t > &lengths_)
Partitions the component data into multiple sub-batches.
Definition table_column.hpp:144
std::optional< ComponentBatch > visible
Whether the column is visible in this layout.
Definition table_column.hpp:47
static constexpr const char ArchetypeName[]
The name of the archetype as used in ComponentDescriptors.
Definition table_column.hpp:58
TableColumn with_visible(const rerun::components::Visible &_visible) &&
Whether the column is visible in this layout.
Definition table_column.hpp:119
static TableColumn clear_fields()
Clear all the fields of a TableColumn.
std::optional< ComponentBatch > editable
Whether the column's values can be edited.
Definition table_column.hpp:40
Collection< ComponentColumn > columns()
Partitions the component data into unit-length sub-batches.
Definition table_column.hpp:153
std::optional< ComponentBatch > column_type
Overrides the component the column's values are shown as.
Definition table_column.hpp:54
static constexpr auto Descriptor_column_type
ComponentDescriptor for the column_type field.
Definition table_column.hpp:75
static constexpr auto Descriptor_editable
ComponentDescriptor for the editable field.
Definition table_column.hpp:65
TableColumn with_editable(const rerun::blueprint::components::Editable &_editable) &&
Whether the column's values can be edited.
Definition table_column.hpp:108
static TableColumn update_fields()
Update only some specific fields of a TableColumn.
Definition table_column.hpp:88
std::optional< ComponentBatch > name
The name shown for the column.
Definition table_column.hpp:33
TableColumn with_name(const rerun::components::Name &_name) &&
The name shown for the column.
Definition table_column.hpp:98
static constexpr auto Descriptor_name
ComponentDescriptor for the name field.
Definition table_column.hpp:61
TableColumn with_column_type(const rerun::blueprint::components::ColumnType &_column_type) &&
Overrides the component the column's values are shown as.
Definition table_column.hpp:129
static constexpr auto Descriptor_visible
ComponentDescriptor for the visible field.
Definition table_column.hpp:70
Component: Overrides the component a table column's values are shown as.
Definition column_type.hpp:18
Component: Whether a table column's values can be edited.
Definition editable.hpp:17
Component: A display name, typically for an entity or a item like a plot series.
Definition name.hpp:19
Component: Whether the container, view, entity or instance is currently visible.
Definition visible.hpp:14