6#include "../../blueprint/components/column_type.hpp"
7#include "../../blueprint/components/editable.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;
57 static constexpr const char ArchetypeName[] =
"rerun.blueprint.archetypes.TableColumn";
99 return std::move(*
this);
110 return std::move(*
this);
120 return std::move(*
this);
132 return std::move(*
this);
156 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
static constexpr const char ArchetypeName[]
The name of the archetype as used in ComponentDescriptors.
Definition table_column.hpp:57
TableColumn with_visible(const rerun::components::Visible &_visible) &&
Whether the column is visible in this layout.
Definition table_column.hpp:118
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 > column_type
Overrides the component the column's values are shown as.
Definition table_column.hpp:53
static constexpr auto Descriptor_column_type
ComponentDescriptor for the column_type field.
Definition table_column.hpp:74
static constexpr auto Descriptor_editable
ComponentDescriptor for the editable field.
Definition table_column.hpp:64
TableColumn with_editable(const rerun::blueprint::components::Editable &_editable) &&
Whether the column's values can be edited.
Definition table_column.hpp:107
static TableColumn update_fields()
Update only some specific fields of a TableColumn.
Definition table_column.hpp:87
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:97
static constexpr auto Descriptor_name
ComponentDescriptor for the name field.
Definition table_column.hpp:60
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:128
static constexpr auto Descriptor_visible
ComponentDescriptor for the visible field.
Definition table_column.hpp:69
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