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/fill_mode.hpp"
12#include "../components/half_size3d.hpp"
13#include "../components/pose_rotation_axis_angle.hpp"
14#include "../components/pose_rotation_quat.hpp"
15#include "../components/pose_translation3d.hpp"
16#include "../components/radius.hpp"
17#include "../components/text.hpp"
18#include "../indicator_component.hpp"
19#include "../result.hpp"
46 std::optional<Collection<rerun::components::PoseTranslation3D>>
centers;
58 std::optional<Collection<rerun::components::PoseRotationQuat>>
quaternions;
61 std::optional<Collection<rerun::components::Color>>
colors;
64 std::optional<Collection<rerun::components::Radius>>
line_radii;
67 std::optional<rerun::components::FillMode>
fill_mode;
70 std::optional<Collection<rerun::components::Text>>
labels;
75 std::optional<Collection<rerun::components::ClassId>>
class_ids;
78 static constexpr const char IndicatorComponentName[] =
79 "rerun.components.Ellipsoids3DIndicator";
95 const std::vector<datatypes::Vec3D>&
centers,
const std::vector<float>& radii
129 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
141 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
152 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
157 colors = std::move(_colors);
159 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
166 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
173 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
178 labels = std::move(_labels);
180 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
189 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
197 template <
typename T>
202 struct AsComponents<archetypes::Ellipsoids3D> {
204 static Result<std::vector<ComponentBatch>> serialize(
205 const archetypes::Ellipsoids3D& 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:72
FillMode
Component: How a geometric shape is drawn and colored.
Definition fill_mode.hpp:24
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:22
Archetype: 3D ellipsoids or spheres.
Definition ellipsoids3d.hpp:36
Collection< rerun::components::HalfSize3D > half_sizes
For each ellipsoid, half of its size on its three axes.
Definition ellipsoids3d.hpp:40
std::optional< Collection< rerun::components::PoseTranslation3D > > centers
Optional center positions of the ellipsoids.
Definition ellipsoids3d.hpp:46
static Ellipsoids3D from_centers_and_radii(const std::vector< datatypes::Vec3D > ¢ers, const std::vector< float > &radii)
Creates new Ellipsoids3D that are spheres, with half_sizes and centers created from centers and radii...
std::optional< Collection< rerun::components::ClassId > > class_ids
Optional class ID for the ellipsoids.
Definition ellipsoids3d.hpp:75
std::optional< Collection< rerun::components::Text > > labels
Optional text labels for the ellipsoids.
Definition ellipsoids3d.hpp:70
Ellipsoids3D with_rotation_axis_angles(Collection< rerun::components::PoseRotationAxisAngle > _rotation_axis_angles) &&
Rotations via axis + angle.
Definition ellipsoids3d.hpp:136
std::optional< rerun::components::FillMode > fill_mode
Optionally choose whether the ellipsoids are drawn with lines or solid.
Definition ellipsoids3d.hpp:67
Ellipsoids3D with_labels(Collection< rerun::components::Text > _labels) &&
Optional text labels for the ellipsoids.
Definition ellipsoids3d.hpp:177
Ellipsoids3D with_colors(Collection< rerun::components::Color > _colors) &&
Optional colors for the ellipsoids.
Definition ellipsoids3d.hpp:156
Ellipsoids3D with_centers(Collection< rerun::components::PoseTranslation3D > _centers) &&
Optional center positions of the ellipsoids.
Definition ellipsoids3d.hpp:126
Ellipsoids3D with_fill_mode(rerun::components::FillMode _fill_mode) &&
Optionally choose whether the ellipsoids are drawn with lines or solid.
Definition ellipsoids3d.hpp:170
static Ellipsoids3D from_centers_and_half_sizes(Collection< components::PoseTranslation3D > centers, Collection< components::HalfSize3D > half_sizes)
Creates new Ellipsoids3D with centers and half_sizes.
Definition ellipsoids3d.hpp:106
static Ellipsoids3D from_radii(const std::vector< float > &sizes)
Creates new Ellipsoids3D that are spheres, with half_sizes created from radii.
std::optional< Collection< rerun::components::PoseRotationAxisAngle > > rotation_axis_angles
Rotations via axis + angle.
Definition ellipsoids3d.hpp:52
Ellipsoids3D with_quaternions(Collection< rerun::components::PoseRotationQuat > _quaternions) &&
Rotations via quaternion.
Definition ellipsoids3d.hpp:148
Ellipsoids3D with_class_ids(Collection< rerun::components::ClassId > _class_ids) &&
Optional class ID for the ellipsoids.
Definition ellipsoids3d.hpp:186
static Ellipsoids3D from_half_sizes(Collection< components::HalfSize3D > half_sizes)
Creates new Ellipsoids3D with half_sizes centered around the local origin.
Definition ellipsoids3d.hpp:99
std::optional< Collection< rerun::components::Radius > > line_radii
Optional radii for the lines used when the ellipsoid is rendered as a wireframe.
Definition ellipsoids3d.hpp:64
std::optional< Collection< rerun::components::Color > > colors
Optional colors for the ellipsoids.
Definition ellipsoids3d.hpp:61
std::optional< Collection< rerun::components::PoseRotationQuat > > quaternions
Rotations via quaternion.
Definition ellipsoids3d.hpp:58
Ellipsoids3D with_line_radii(Collection< rerun::components::Radius > _line_radii) &&
Optional radii for the lines used when the ellipsoid is rendered as a wireframe.
Definition ellipsoids3d.hpp:163
Indicator component used by archetypes when converting them to component lists.
Definition indicator_component.hpp:30