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/length.hpp"
12#include "../components/pose_rotation_axis_angle.hpp"
13#include "../components/pose_rotation_quat.hpp"
14#include "../components/pose_translation3d.hpp"
15#include "../components/radius.hpp"
16#include "../components/show_labels.hpp"
17#include "../components/text.hpp"
18#include "../indicator_component.hpp"
19#include "../result.hpp"
87 std::optional<Collection<rerun::components::PoseTranslation3D>>
translations;
99 std::optional<Collection<rerun::components::PoseRotationQuat>>
quaternions;
102 std::optional<Collection<rerun::components::Color>>
colors;
105 std::optional<Collection<rerun::components::Text>>
labels;
113 std::optional<Collection<rerun::components::ClassId>>
class_ids;
116 static constexpr const char IndicatorComponentName[] =
117 "rerun.components.Capsules3DIndicator";
131 const std::vector<float>&
lengths,
const std::vector<float>&
radii
139 // TODO(andreas): This should not take an std::vector.
141 static Capsules3D from_endpoints_and_radii(
142 const std::vector<datatypes::Vec3D>& start_points,
143 const std::vector<datatypes::Vec3D>& end_points,
144 const std::vector<float>& radii
162 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
174 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
185 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
190 colors = std::move(_colors);
192 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
197 labels = std::move(_labels);
199 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
206 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
215 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
223 template <
typename T>
228 struct AsComponents<archetypes::Capsules3D> {
230 static Result<std::vector<ComponentBatch>> serialize(
const archetypes::Capsules3D& 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 capsules; cylinders with hemispherical caps.
Definition capsules3d.hpp:76
Capsules3D with_translations(Collection< rerun::components::PoseTranslation3D > _translations) &&
Optional translations of the capsules.
Definition capsules3d.hpp:158
Capsules3D with_labels(Collection< rerun::components::Text > _labels) &&
Optional text labels for the capsules, which will be located at their centers.
Definition capsules3d.hpp:196
Collection< rerun::components::Radius > radii
Radii of the capsules.
Definition capsules3d.hpp:81
Capsules3D with_quaternions(Collection< rerun::components::PoseRotationQuat > _quaternions) &&
Rotations via quaternion.
Definition capsules3d.hpp:181
std::optional< rerun::components::ShowLabels > show_labels
Optional choice of whether the text labels should be shown by default.
Definition capsules3d.hpp:108
static Capsules3D from_lengths_and_radii(const std::vector< float > &lengths, const std::vector< float > &radii)
Creates a new Capsules3D with the given axis-aligned lengths and radii.
Capsules3D with_class_ids(Collection< rerun::components::ClassId > _class_ids) &&
Optional class ID for the ellipsoids.
Definition capsules3d.hpp:212
std::optional< Collection< rerun::components::ClassId > > class_ids
Optional class ID for the ellipsoids.
Definition capsules3d.hpp:113
std::optional< Collection< rerun::components::PoseRotationAxisAngle > > rotation_axis_angles
Rotations via axis + angle.
Definition capsules3d.hpp:93
std::optional< Collection< rerun::components::Text > > labels
Optional text labels for the capsules, which will be located at their centers.
Definition capsules3d.hpp:105
std::optional< Collection< rerun::components::PoseTranslation3D > > translations
Optional translations of the capsules.
Definition capsules3d.hpp:87
Capsules3D with_colors(Collection< rerun::components::Color > _colors) &&
Optional colors for the capsules.
Definition capsules3d.hpp:189
std::optional< Collection< rerun::components::Color > > colors
Optional colors for the capsules.
Definition capsules3d.hpp:102
std::optional< Collection< rerun::components::PoseRotationQuat > > quaternions
Rotations via quaternion.
Definition capsules3d.hpp:99
Capsules3D with_rotation_axis_angles(Collection< rerun::components::PoseRotationAxisAngle > _rotation_axis_angles) &&
Rotations via axis + angle.
Definition capsules3d.hpp:169
Collection< rerun::components::Length > lengths
Lengths of the capsules, defined as the distance between the centers of the endcaps.
Definition capsules3d.hpp:78
Capsules3D with_show_labels(rerun::components::ShowLabels _show_labels) &&
Optional choice of whether the text labels should be shown by default.
Definition capsules3d.hpp:203
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