6#include "../collection.hpp"
7#include "../compiler_utils.hpp"
8#include "../components/class_id.hpp"
9#include "../components/color.hpp"
10#include "../components/keypoint_id.hpp"
11#include "../components/position3d.hpp"
12#include "../components/radius.hpp"
13#include "../components/text.hpp"
14#include "../data_cell.hpp"
15#include "../indicator_component.hpp"
16#include "../result.hpp"
106 std::optional<Collection<rerun::components::Radius>>
radii;
109 std::optional<Collection<rerun::components::Color>>
colors;
115 std::optional<Collection<rerun::components::Text>>
labels;
120 std::optional<Collection<rerun::components::ClassId>>
class_ids;
133 static constexpr const char IndicatorComponentName[] =
"rerun.components.Points3DIndicator";
147 radii = std::move(_radii);
149 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
154 colors = std::move(_colors);
156 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
164 labels = std::move(_labels);
166 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
175 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::Points3D> {
204 static Result<std::vector<DataCell>> serialize(
const archetypes::Points3D& archetype);
Generic collection of elements that are roughly contiguous in memory.
Definition collection.hpp:46
All built-in archetypes. See Types in the Rerun manual.
Definition rerun.hpp:72
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:21
Archetype: A 3D point cloud with positions and optional colors, radii, labels, etc.
Definition points3d.hpp:101
Points3D with_radii(Collection< rerun::components::Radius > _radii) &&
Optional radii for the points, effectively turning them into circles.
Definition points3d.hpp:146
std::optional< Collection< rerun::components::Text > > labels
Optional text labels for the points.
Definition points3d.hpp:115
Points3D with_keypoint_ids(Collection< rerun::components::KeypointId > _keypoint_ids) &&
Optional keypoint IDs for the points, identifying them within a class.
Definition points3d.hpp:186
Points3D with_labels(Collection< rerun::components::Text > _labels) &&
Optional text labels for the points.
Definition points3d.hpp:163
std::optional< Collection< rerun::components::Radius > > radii
Optional radii for the points, effectively turning them into circles.
Definition points3d.hpp:106
Points3D with_colors(Collection< rerun::components::Color > _colors) &&
Optional colors for the points.
Definition points3d.hpp:153
Collection< rerun::components::Position3D > positions
All the 3D positions at which the point cloud shows points.
Definition points3d.hpp:103
std::optional< Collection< rerun::components::KeypointId > > keypoint_ids
Optional keypoint IDs for the points, identifying them within a class.
Definition points3d.hpp:130
Points3D with_class_ids(Collection< rerun::components::ClassId > _class_ids) &&
Optional class Ids for the points.
Definition points3d.hpp:172
std::optional< Collection< rerun::components::Color > > colors
Optional colors for the points.
Definition points3d.hpp:109
std::optional< Collection< rerun::components::ClassId > > class_ids
Optional class Ids for the points.
Definition points3d.hpp:120
Indicator component used by archetypes when converting them to component lists.
Definition indicator_component.hpp:23