6#include "../collection.hpp"
7#include "../compiler_utils.hpp"
8#include "../component_batch.hpp"
9#include "../components/class_id.hpp"
10#include "../components/color.hpp"
11#include "../components/position3d.hpp"
12#include "../components/radius.hpp"
13#include "../components/show_labels.hpp"
14#include "../components/text.hpp"
15#include "../components/vector3d.hpp"
16#include "../indicator_component.hpp"
17#include "../result.hpp"
72 std::optional<Collection<rerun::components::Position3D>>
origins;
78 std::optional<Collection<rerun::components::Radius>>
radii;
81 std::optional<Collection<rerun::components::Color>>
colors;
87 std::optional<Collection<rerun::components::Text>>
labels;
95 std::optional<Collection<rerun::components::ClassId>>
class_ids;
98 static constexpr const char IndicatorComponentName[] =
"rerun.components.Arrows3DIndicator";
108 arrows.
vectors = std::move(vectors_);
124 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
132 radii = std::move(_radii);
134 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
139 colors = std::move(_colors);
141 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
149 labels = std::move(_labels);
151 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
158 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
167 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
175 template <
typename T>
180 struct AsComponents<archetypes::Arrows3D> {
182 static Result<std::vector<ComponentBatch>> serialize(
const archetypes::Arrows3D& archetype);
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:76
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:22
Archetype: 3D arrows with optional colors, radii, labels, etc.
Definition arrows3d.hpp:65
Arrows3D with_show_labels(rerun::components::ShowLabels _show_labels) &&
Optional choice of whether the text labels should be shown by default.
Definition arrows3d.hpp:155
std::optional< Collection< rerun::components::ClassId > > class_ids
Optional class Ids for the points.
Definition arrows3d.hpp:95
Collection< rerun::components::Vector3D > vectors
All the vectors for each arrow in the batch.
Definition arrows3d.hpp:67
std::optional< Collection< rerun::components::Text > > labels
Optional text labels for the arrows.
Definition arrows3d.hpp:87
std::optional< Collection< rerun::components::Color > > colors
Optional colors for the points.
Definition arrows3d.hpp:81
std::optional< rerun::components::ShowLabels > show_labels
Optional choice of whether the text labels should be shown by default.
Definition arrows3d.hpp:90
Arrows3D with_radii(Collection< rerun::components::Radius > _radii) &&
Optional radii for the arrows.
Definition arrows3d.hpp:131
static Arrows3D from_vectors(Collection< components::Vector3D > vectors_)
Creates new 3D arrows pointing in the given directions, with a base at the origin (0,...
Definition arrows3d.hpp:106
std::optional< Collection< rerun::components::Position3D > > origins
All the origin (base) positions for each arrow in the batch.
Definition arrows3d.hpp:72
Arrows3D with_origins(Collection< rerun::components::Position3D > _origins) &&
All the origin (base) positions for each arrow in the batch.
Definition arrows3d.hpp:121
std::optional< Collection< rerun::components::Radius > > radii
Optional radii for the arrows.
Definition arrows3d.hpp:78
Arrows3D with_class_ids(Collection< rerun::components::ClassId > _class_ids) &&
Optional class Ids for the points.
Definition arrows3d.hpp:164
Arrows3D with_colors(Collection< rerun::components::Color > _colors) &&
Optional colors for the points.
Definition arrows3d.hpp:138
Arrows3D with_labels(Collection< rerun::components::Text > _labels) &&
Optional text labels for the arrows.
Definition arrows3d.hpp:148
Indicator component used by archetypes when converting them to component lists.
Definition indicator_component.hpp:30
Component: Whether the entity's components::Text label is shown.
Definition show_labels.hpp:18