6#include "../../blueprint/components/view_class.hpp"
7#include "../../blueprint/components/view_origin.hpp"
8#include "../../blueprint/components/visible.hpp"
9#include "../../collection.hpp"
10#include "../../component_batch.hpp"
11#include "../../component_column.hpp"
12#include "../../components/name.hpp"
13#include "../../indicator_component.hpp"
14#include "../../result.hpp"
21namespace rerun::blueprint::archetypes {
45 static constexpr const char IndicatorComponentName[] =
46 "rerun.blueprint.components.ViewBlueprintIndicator";
51 static constexpr const char ArchetypeName[] =
"rerun.blueprint.archetypes.ViewBlueprint";
102 return std::move(*
this);
109 return std::move(*
this);
124 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:23
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=rerun::Loggable< T >::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:14
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:23
ViewBlueprint with_space_origin(const rerun::blueprint::components::ViewOrigin &_space_origin) &&
The "anchor point" of this view.
Definition view_blueprint.hpp:119
ViewBlueprint with_display_name(const rerun::components::Name &_display_name) &&
The name of the view.
Definition view_blueprint.hpp:106
Collection< ComponentColumn > columns()
Partitions the component data into unit-length sub-batches.
std::optional< ComponentBatch > display_name
The name of the view.
Definition view_blueprint.hpp:28
ViewBlueprint with_class_identifier(const rerun::blueprint::components::ViewClass &_class_identifier) &&
The class of the view.
Definition view_blueprint.hpp:96
std::optional< ComponentBatch > class_identifier
The class of the view.
Definition view_blueprint.hpp:25
std::optional< ComponentBatch > visible
Whether this view is visible.
Definition view_blueprint.hpp:42
static ViewBlueprint update_fields()
Update only some specific fields of a ViewBlueprint.
Definition view_blueprint.hpp:88
static constexpr auto Descriptor_space_origin
ComponentDescriptor for the space_origin field.
Definition view_blueprint.hpp:64
static constexpr const char ArchetypeName[]
The name of the archetype as used in ComponentDescriptors.
Definition view_blueprint.hpp:51
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:69
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:59
std::optional< ComponentBatch > space_origin
The "anchor point" of this view.
Definition view_blueprint.hpp:37
static constexpr auto Descriptor_class_identifier
ComponentDescriptor for the class_identifier field.
Definition view_blueprint.hpp:54
ViewBlueprint with_visible(const rerun::blueprint::components::Visible &_visible) &&
Whether this view is visible.
Definition view_blueprint.hpp:130
Component: The class identifier of view, e.g. "2D", "TextLog", ….
Definition view_class.hpp:17
Component: The origin of a view.
Definition view_origin.hpp:17
Component: Whether the container, view, entity or instance is currently visible.
Definition visible.hpp:15
Indicator component used by archetypes when converting them to component lists.
Definition indicator_component.hpp:32
Component: A display name, typically for an entity or a item like a plot series.
Definition name.hpp:17