Rerun C++ SDK
|
Archetype: The description of a container. More...
#include <rerun/blueprint/archetypes/container_blueprint.hpp>
Public Types | |
using | IndicatorComponent = rerun::components::IndicatorComponent< IndicatorComponentName > |
Indicator component, used to identify the archetype when converting to a list of components. | |
Public Member Functions | |
ContainerBlueprint (ContainerBlueprint &&other)=default | |
ContainerBlueprint (const ContainerBlueprint &other)=default | |
ContainerBlueprint & | operator= (const ContainerBlueprint &other)=default |
ContainerBlueprint & | operator= (ContainerBlueprint &&other)=default |
ContainerBlueprint (rerun::blueprint::components::ContainerKind _container_kind) | |
ContainerBlueprint | with_container_kind (const rerun::blueprint::components::ContainerKind &_container_kind) && |
The class of the view. | |
ContainerBlueprint | with_display_name (const rerun::components::Name &_display_name) && |
The name of the container. | |
ContainerBlueprint | with_contents (const Collection< rerun::blueprint::components::IncludedContent > &_contents) && |
ContainerId s or ViewId s that are children of this container. | |
ContainerBlueprint | with_col_shares (const Collection< rerun::blueprint::components::ColumnShare > &_col_shares) && |
The layout shares of each column in the container. | |
ContainerBlueprint | with_row_shares (const Collection< rerun::blueprint::components::RowShare > &_row_shares) && |
The layout shares of each row of the container. | |
ContainerBlueprint | with_active_tab (const rerun::blueprint::components::ActiveTab &_active_tab) && |
Which tab is active. | |
ContainerBlueprint | with_visible (const rerun::components::Visible &_visible) && |
Whether this container is visible. | |
ContainerBlueprint | with_grid_columns (const rerun::blueprint::components::GridColumns &_grid_columns) && |
How many columns this grid should have. | |
Collection< ComponentColumn > | columns (const Collection< uint32_t > &lengths_) |
Partitions the component data into multiple sub-batches. | |
Collection< ComponentColumn > | columns () |
Partitions the component data into unit-length sub-batches. | |
Static Public Member Functions | |
static ContainerBlueprint | update_fields () |
Update only some specific fields of a ContainerBlueprint . | |
static ContainerBlueprint | clear_fields () |
Clear all the fields of a ContainerBlueprint . | |
Public Attributes | |
std::optional< ComponentBatch > | container_kind |
The class of the view. | |
std::optional< ComponentBatch > | display_name |
The name of the container. | |
std::optional< ComponentBatch > | contents |
ContainerId s or ViewId s that are children of this container. | |
std::optional< ComponentBatch > | col_shares |
The layout shares of each column in the container. | |
std::optional< ComponentBatch > | row_shares |
The layout shares of each row of the container. | |
std::optional< ComponentBatch > | active_tab |
Which tab is active. | |
std::optional< ComponentBatch > | visible |
Whether this container is visible. | |
std::optional< ComponentBatch > | grid_columns |
How many columns this grid should have. | |
Static Public Attributes | |
static constexpr const char | IndicatorComponentName [] |
static constexpr const char | ArchetypeName [] |
The name of the archetype as used in ComponentDescriptor s. | |
static constexpr auto | Descriptor_container_kind |
ComponentDescriptor for the container_kind field. | |
static constexpr auto | Descriptor_display_name |
ComponentDescriptor for the display_name field. | |
static constexpr auto | Descriptor_contents |
ComponentDescriptor for the contents field. | |
static constexpr auto | Descriptor_col_shares |
ComponentDescriptor for the col_shares field. | |
static constexpr auto | Descriptor_row_shares |
ComponentDescriptor for the row_shares field. | |
static constexpr auto | Descriptor_active_tab |
ComponentDescriptor for the active_tab field. | |
static constexpr auto | Descriptor_visible |
ComponentDescriptor for the visible field. | |
static constexpr auto | Descriptor_grid_columns |
ComponentDescriptor for the grid_columns field. | |
Archetype: The description of a container.
⚠ This type is unstable and may change significantly in a way that the data won't be backwards compatible.
|
inline |
The layout shares of each column in the container.
For components::ContainerKind::Horizontal
containers, the length of this list should always match the number of contents.
Ignored for components::ContainerKind::Vertical
containers.
|
inline |
The layout shares of each row of the container.
For components::ContainerKind::Vertical
containers, the length of this list should always match the number of contents.
Ignored for components::ContainerKind::Horizontal
containers.
|
inline |
Which tab is active.
Only applies to Tabs
containers.
|
inline |
Whether this container is visible.
Defaults to true if not specified.
|
inline |
How many columns this grid should have.
If unset, the grid layout will be auto.
Ignored for components::ContainerKind::Horizontal
/components::ContainerKind::Vertical
containers.
Collection< ComponentColumn > rerun::blueprint::archetypes::ContainerBlueprint::columns | ( | const Collection< uint32_t > & | lengths_ | ) |
Partitions the component data into multiple sub-batches.
Specifically, this transforms the existing ComponentBatch
data into ComponentColumn
s instead, via ComponentBatch::partitioned
.
This makes it possible to use RecordingStream::send_columns
to send columnar data directly into Rerun.
The specified lengths
must sum to the total length of the component batch.
Collection< ComponentColumn > rerun::blueprint::archetypes::ContainerBlueprint::columns | ( | ) |
Partitions the component data into unit-length sub-batches.
This is semantically similar to calling columns
with std::vector<uint32_t>(n, 1)
, where n
is automatically guessed.
std::optional<ComponentBatch> rerun::blueprint::archetypes::ContainerBlueprint::col_shares |
The layout shares of each column in the container.
For components::ContainerKind::Horizontal
containers, the length of this list should always match the number of contents.
Ignored for components::ContainerKind::Vertical
containers.
std::optional<ComponentBatch> rerun::blueprint::archetypes::ContainerBlueprint::row_shares |
The layout shares of each row of the container.
For components::ContainerKind::Vertical
containers, the length of this list should always match the number of contents.
Ignored for components::ContainerKind::Horizontal
containers.
std::optional<ComponentBatch> rerun::blueprint::archetypes::ContainerBlueprint::active_tab |
Which tab is active.
Only applies to Tabs
containers.
std::optional<ComponentBatch> rerun::blueprint::archetypes::ContainerBlueprint::visible |
Whether this container is visible.
Defaults to true if not specified.
std::optional<ComponentBatch> rerun::blueprint::archetypes::ContainerBlueprint::grid_columns |
How many columns this grid should have.
If unset, the grid layout will be auto.
Ignored for components::ContainerKind::Horizontal
/components::ContainerKind::Vertical
containers.
|
staticconstexpr |
|
staticconstexpr |
The name of the archetype as used in ComponentDescriptor
s.
|
staticconstexpr |
ComponentDescriptor
for the container_kind
field.
|
staticconstexpr |
ComponentDescriptor
for the display_name
field.
|
staticconstexpr |
ComponentDescriptor
for the contents
field.
|
staticconstexpr |
ComponentDescriptor
for the col_shares
field.
|
staticconstexpr |
ComponentDescriptor
for the row_shares
field.
|
staticconstexpr |
ComponentDescriptor
for the active_tab
field.
|
staticconstexpr |
ComponentDescriptor
for the visible
field.
|
staticconstexpr |
ComponentDescriptor
for the grid_columns
field.