6#include "../../blueprint/components/enabled.hpp"
7#include "../../blueprint/components/view_class.hpp"
8#include "../../blueprint/components/view_origin.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 {
58 static constexpr const char ArchetypeName[] =
"rerun.blueprint.archetypes.ViewBlueprint";
114 return std::move(*
this);
121 return std::move(*
this);
138 return std::move(*
this);
146 return std::move(*
this);
157 return std::move(*
this);
181 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
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)
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: The description of a single view.
Definition view_blueprint.hpp:26
static constexpr auto Descriptor_titlebar
ComponentDescriptor for the titlebar field.
Definition view_blueprint.hpp:81
ViewBlueprint with_space_origin(const rerun::blueprint::components::ViewOrigin &_space_origin) &&
The "anchor point" of this view.
Definition view_blueprint.hpp:133
ViewBlueprint with_display_name(const rerun::components::Name &_display_name) &&
The name of the view.
Definition view_blueprint.hpp:118
ViewBlueprint with_visible(const rerun::components::Visible &_visible) &&
Whether this view is visible.
Definition view_blueprint.hpp:144
Collection< ComponentColumn > columns()
Partitions the component data into unit-length sub-batches.
ViewBlueprint with_titlebar(const rerun::blueprint::components::Enabled &_titlebar) &&
Whether this view shows its title bar.
Definition view_blueprint.hpp:154
std::optional< ComponentBatch > display_name
The name of the view.
Definition view_blueprint.hpp:31
ViewBlueprint with_class_identifier(const rerun::blueprint::components::ViewClass &_class_identifier) &&
The class of the view.
Definition view_blueprint.hpp:108
std::optional< ComponentBatch > class_identifier
The class of the view.
Definition view_blueprint.hpp:28
std::optional< ComponentBatch > titlebar
Whether this view shows its title bar.
Definition view_blueprint.hpp:54
std::optional< ComponentBatch > visible
Whether this view is visible.
Definition view_blueprint.hpp:47
static ViewBlueprint update_fields()
Update only some specific fields of a ViewBlueprint.
Definition view_blueprint.hpp:100
static constexpr auto Descriptor_space_origin
ComponentDescriptor for the space_origin field.
Definition view_blueprint.hpp:71
static constexpr const char ArchetypeName[]
The name of the archetype as used in ComponentDescriptors.
Definition view_blueprint.hpp:58
Collection< ComponentColumn > columns(const Collection< uint32_t > &lengths_)
Partitions the component data into multiple sub-batches.
static constexpr auto Descriptor_visible
ComponentDescriptor for the visible field.
Definition view_blueprint.hpp:76
static ViewBlueprint clear_fields()
Clear all the fields of a ViewBlueprint.
static constexpr auto Descriptor_display_name
ComponentDescriptor for the display_name field.
Definition view_blueprint.hpp:66
std::optional< ComponentBatch > space_origin
The "anchor point" of this view.
Definition view_blueprint.hpp:42
static constexpr auto Descriptor_class_identifier
ComponentDescriptor for the class_identifier field.
Definition view_blueprint.hpp:61
Component: Whether a procedure is enabled.
Definition enabled.hpp:17
Component: The class identifier of view, e.g.
Definition view_class.hpp:19
Component: The origin of a view.
Definition view_origin.hpp:19
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