6#include "../collection.hpp"
7#include "../compiler_utils.hpp"
8#include "../components/class_id.hpp"
9#include "../components/color.hpp"
10#include "../components/instance_key.hpp"
11#include "../components/position3d.hpp"
12#include "../components/radius.hpp"
13#include "../components/text.hpp"
14#include "../components/vector3d.hpp"
15#include "../data_cell.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;
84 std::optional<Collection<rerun::components::Text>>
labels;
89 std::optional<Collection<rerun::components::ClassId>>
class_ids;
92 std::optional<Collection<rerun::components::InstanceKey>>
instance_keys;
95 static constexpr const char IndicatorComponentName[] =
"rerun.components.Arrows3DIndicator";
107 arrows.
vectors = std::move(vectors_);
121 RERUN_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
129 radii = std::move(_radii);
131 RERUN_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
136 colors = std::move(_colors);
138 RERUN_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
143 labels = std::move(_labels);
145 RERUN_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
154 RERUN_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
161 RERUN_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
174 template <
typename T>
179 struct AsComponents<archetypes::Arrows3D> {
181 static Result<std::vector<DataCell>> serialize(
const archetypes::Arrows3D& archetype);
Generic collection of elements that are roughly contiguous in memory.
Definition collection.hpp:47
size_t size() const
Returns the number of instances in this collection.
Definition collection.hpp:254
All built-in archetypes. See Types in the Rerun manual.
Definition rerun.hpp:66
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:20
Archetype: 3D arrows with optional colors, radii, labels, etc.
Definition arrows3d.hpp:65
std::optional< Collection< rerun::components::ClassId > > class_ids
Optional class Ids for the points.
Definition arrows3d.hpp:89
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:84
std::optional< Collection< rerun::components::Color > > colors
Optional colors for the points.
Definition arrows3d.hpp:81
Arrows3D with_radii(Collection< rerun::components::Radius > _radii) &&
Optional radii for the arrows.
Definition arrows3d.hpp:128
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:105
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:118
std::optional< Collection< rerun::components::InstanceKey > > instance_keys
Unique identifiers for each individual point in the batch.
Definition arrows3d.hpp:92
size_t num_instances() const
Returns the number of primary instances of this archetype.
Definition arrows3d.hpp:165
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:151
Arrows3D with_colors(Collection< rerun::components::Color > _colors) &&
Optional colors for the points.
Definition arrows3d.hpp:135
Arrows3D with_instance_keys(Collection< rerun::components::InstanceKey > _instance_keys) &&
Unique identifiers for each individual point in the batch.
Definition arrows3d.hpp:158
Arrows3D with_labels(Collection< rerun::components::Text > _labels) &&
Optional text labels for the arrows.
Definition arrows3d.hpp:142
Indicator component used by archetypes when converting them to component lists.
Definition indicator_component.hpp:23