6#include "../../blueprint/components/editable.hpp"
7#include "../../blueprint/components/table_cell_kind.hpp"
8#include "../../collection.hpp"
9#include "../../component_batch.hpp"
10#include "../../component_column.hpp"
11#include "../../components/name.hpp"
12#include "../../components/visible.hpp"
13#include "../../result.hpp"
20namespace rerun::blueprint::archetypes {
32 std::optional<ComponentBatch>
name;
55 static constexpr const char ArchetypeName[] =
"rerun.blueprint.archetypes.TableColumn";
97 return std::move(*
this);
108 return std::move(*
this);
118 return std::move(*
this);
128 return std::move(*
this);
152 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: Blueprint for a column used by a table or card layout.
Definition table_column.hpp:28
Collection< ComponentColumn > columns(const Collection< uint32_t > &lengths_)
Partitions the component data into multiple sub-batches.
std::optional< ComponentBatch > visible
Whether the column is visible in this layout.
Definition table_column.hpp:46
TableColumn with_cell_kind(const rerun::blueprint::components::TableCellKind &_cell_kind) &&
How to render the column's values.
Definition table_column.hpp:124
static constexpr const char ArchetypeName[]
The name of the archetype as used in ComponentDescriptors.
Definition table_column.hpp:55
TableColumn with_visible(const rerun::components::Visible &_visible) &&
Whether the column is visible in this layout.
Definition table_column.hpp:116
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:39
Collection< ComponentColumn > columns()
Partitions the component data into unit-length sub-batches.
std::optional< ComponentBatch > cell_kind
How to render the column's values.
Definition table_column.hpp:51
static constexpr auto Descriptor_cell_kind
ComponentDescriptor for the cell_kind field.
Definition table_column.hpp:72
static constexpr auto Descriptor_editable
ComponentDescriptor for the editable field.
Definition table_column.hpp:62
TableColumn with_editable(const rerun::blueprint::components::Editable &_editable) &&
Whether the column's values can be edited.
Definition table_column.hpp:105
static TableColumn update_fields()
Update only some specific fields of a TableColumn.
Definition table_column.hpp:85
std::optional< ComponentBatch > name
The name shown for the column.
Definition table_column.hpp:32
TableColumn with_name(const rerun::components::Name &_name) &&
The name shown for the column.
Definition table_column.hpp:95
static constexpr auto Descriptor_name
ComponentDescriptor for the name field.
Definition table_column.hpp:58
static constexpr auto Descriptor_visible
ComponentDescriptor for the visible field.
Definition table_column.hpp:67
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