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/show_labels.hpp"
18#include "../components/text.hpp"
19#include "../indicator_component.hpp"
20#include "../result.hpp"
76 std::optional<Collection<rerun::components::PoseTranslation3D>>
centers;
88 std::optional<Collection<rerun::components::PoseRotationQuat>>
quaternions;
91 std::optional<Collection<rerun::components::Color>>
colors;
94 std::optional<Collection<rerun::components::Radius>>
radii;
97 std::optional<rerun::components::FillMode>
fill_mode;
103 std::optional<Collection<rerun::components::Text>>
labels;
111 std::optional<Collection<rerun::components::ClassId>>
class_ids;
114 static constexpr const char IndicatorComponentName[] =
"rerun.components.Boxes3DIndicator";
153 const std::vector<datatypes::Vec3D>& sizes
167 const std::vector<datatypes::Vec3D>& mins,
const std::vector<datatypes::Vec3D>& sizes
183 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
195 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
205 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
210 colors = std::move(_colors);
212 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
217 radii = std::move(_radii);
219 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
226 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
234 labels = std::move(_labels);
236 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
243 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
252 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
260 template <
typename T>
265 struct AsComponents<archetypes::Boxes3D> {
267 static Result<std::vector<ComponentBatch>> serialize(
const archetypes::Boxes3D& 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
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 boxes with half-extents and optional center, rotations, colors etc.
Definition boxes3d.hpp:68
std::optional< rerun::components::ShowLabels > show_labels
Optional choice of whether the text labels should be shown by default.
Definition boxes3d.hpp:106
std::optional< Collection< rerun::components::PoseRotationAxisAngle > > rotation_axis_angles
Rotations via axis + angle.
Definition boxes3d.hpp:82
std::optional< Collection< rerun::components::ClassId > > class_ids
Optional components::ClassIds for the boxes.
Definition boxes3d.hpp:111
std::optional< Collection< rerun::components::Text > > labels
Optional text labels for the boxes.
Definition boxes3d.hpp:103
Boxes3D with_colors(Collection< rerun::components::Color > _colors) &&
Optional colors for the boxes.
Definition boxes3d.hpp:209
static Boxes3D from_sizes(const std::vector< datatypes::Vec3D > &sizes)
Creates new Boxes3D with half_sizes created from (full) sizes.
Boxes3D with_fill_mode(rerun::components::FillMode _fill_mode) &&
Optionally choose whether the boxes are drawn with lines or solid.
Definition boxes3d.hpp:223
static Boxes3D from_half_sizes(Collection< components::HalfSize3D > half_sizes)
Creates new Boxes3D with half_sizes centered around the local origin.
Definition boxes3d.hpp:121
std::optional< Collection< rerun::components::PoseRotationQuat > > quaternions
Rotations via quaternion.
Definition boxes3d.hpp:88
Boxes3D with_labels(Collection< rerun::components::Text > _labels) &&
Optional text labels for the boxes.
Definition boxes3d.hpp:233
static Boxes3D from_centers_and_half_sizes(Collection< components::PoseTranslation3D > centers, Collection< components::HalfSize3D > half_sizes)
Creates new Boxes3D with centers and half_sizes.
Definition boxes3d.hpp:128
Boxes3D with_show_labels(rerun::components::ShowLabels _show_labels) &&
Optional choice of whether the text labels should be shown by default.
Definition boxes3d.hpp:240
Collection< rerun::components::HalfSize3D > half_sizes
All half-extents that make up the batch of boxes.
Definition boxes3d.hpp:70
static Boxes3D from_centers_and_sizes(Collection< components::PoseTranslation3D > centers, const std::vector< datatypes::Vec3D > &sizes)
Creates new Boxes3D with centers and half_sizes created from centers and (full) sizes.
Definition boxes3d.hpp:151
Boxes3D with_quaternions(Collection< rerun::components::PoseRotationQuat > _quaternions) &&
Rotations via quaternion.
Definition boxes3d.hpp:202
Boxes3D with_centers(Collection< rerun::components::PoseTranslation3D > _centers) &&
Optional center positions of the boxes.
Definition boxes3d.hpp:180
Boxes3D with_rotation_axis_angles(Collection< rerun::components::PoseRotationAxisAngle > _rotation_axis_angles) &&
Rotations via axis + angle.
Definition boxes3d.hpp:190
std::optional< Collection< rerun::components::Radius > > radii
Optional radii for the lines that make up the boxes.
Definition boxes3d.hpp:94
std::optional< rerun::components::FillMode > fill_mode
Optionally choose whether the boxes are drawn with lines or solid.
Definition boxes3d.hpp:97
std::optional< Collection< rerun::components::Color > > colors
Optional colors for the boxes.
Definition boxes3d.hpp:91
Boxes3D with_class_ids(Collection< rerun::components::ClassId > _class_ids) &&
Optional components::ClassIds for the boxes.
Definition boxes3d.hpp:249
Boxes3D with_radii(Collection< rerun::components::Radius > _radii) &&
Optional radii for the lines that make up the boxes.
Definition boxes3d.hpp:216
std::optional< Collection< rerun::components::PoseTranslation3D > > centers
Optional center positions of the boxes.
Definition boxes3d.hpp:76
static Boxes3D from_mins_and_sizes(const std::vector< datatypes::Vec3D > &mins, const std::vector< datatypes::Vec3D > &sizes)
Creates new Boxes3D with half_sizes and centers created from minimums and (full) sizes.
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