6#include "../archetype_utils.hpp"
7#include "../collection.hpp"
8#include "../component_batch.hpp"
9#include "../component_column.hpp"
10#include "../components/axis_length.hpp"
11#include "../components/show_labels.hpp"
12#include "../result.hpp"
72 static constexpr const char ArchetypeName[] =
"rerun.archetypes.TransformAxes3D";
113 return std::move(*
this);
125 return std::move(*
this);
132 return std::move(*
this);
144 return std::move(*
this);
174 template <
typename T>
179 struct AsComponents<archetypes::TransformAxes3D> {
181 static Result<Collection<ComponentBatch>> as_batches(
182 const archetypes::TransformAxes3D& archetype
184 return detail::collect_batches({&archetype.axis_length, &archetype.show_frame});
Generic collection of elements that are roughly contiguous in memory.
Definition collection.hpp:49
All built-in archetypes. See Types in the Rerun manual.
Definition rerun.hpp:90
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
Component: The length of an axis in local units of the space.
Definition axis_length.hpp:14
Component: Whether the entity's components::Text label is shown.
Definition show_labels.hpp:18