6#include "../collection.hpp"
7#include "../component_batch.hpp"
8#include "../component_column.hpp"
9#include "../components/text.hpp"
10#include "../result.hpp"
53 std::optional<ComponentBatch>
state;
57 static constexpr const char ArchetypeName[] =
"rerun.archetypes.StateChange";
82 return std::move(*
this);
91 return std::move(*
this);
115 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 built-in archetypes. See Types in the Rerun manual.
Definition rerun.hpp:81
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:23
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: A state change, representing a transition of an entity into a new state.
Definition state_change.hpp:51
static StateChange clear_fields()
Clear all the fields of a StateChange.
Collection< ComponentColumn > columns(const Collection< uint32_t > &lengths_)
Partitions the component data into multiple sub-batches.
StateChange with_state(const rerun::components::Text &_state) &&
The new state value. A null state is ignored, it can be used to partially update a multi-instance sta...
Definition state_change.hpp:80
static StateChange update_fields()
Update only some specific fields of a StateChange.
Definition state_change.hpp:72
StateChange with_many_state(const Collection< rerun::components::Text > &_state) &&
This method makes it possible to pack multiple state in a single component batch.
Definition state_change.hpp:89
static constexpr auto Descriptor_state
ComponentDescriptor for the state field.
Definition state_change.hpp:60
static constexpr const char ArchetypeName[]
The name of the archetype as used in ComponentDescriptors.
Definition state_change.hpp:57
std::optional< ComponentBatch > state
The new state value. A null state is ignored, it can be used to partially update a multi-instance sta...
Definition state_change.hpp:53
Collection< ComponentColumn > columns()
Partitions the component data into unit-length sub-batches.
Component: A string of text, e.g. for labels and text documents.
Definition text.hpp:16