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/keypoint_id.hpp"
12#include "../components/position3d.hpp"
13#include "../components/radius.hpp"
14#include "../components/text.hpp"
15#include "../data_cell.hpp"
16#include "../indicator_component.hpp"
17#include "../result.hpp"
72 std::optional<Collection<rerun::components::Radius>>
radii;
75 std::optional<Collection<rerun::components::Color>>
colors;
78 std::optional<Collection<rerun::components::Text>>
labels;
83 std::optional<Collection<rerun::components::ClassId>>
class_ids;
93 std::optional<Collection<rerun::components::KeypointId>>
keypoint_ids;
96 std::optional<Collection<rerun::components::InstanceKey>>
instance_keys;
99 static constexpr const char IndicatorComponentName[] =
"rerun.components.Points3DIndicator";
113 radii = std::move(_radii);
115 RERUN_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
120 colors = std::move(_colors);
122 RERUN_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
127 labels = std::move(_labels);
129 RERUN_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
138 RERUN_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
152 RERUN_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
159 RERUN_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
172 template <
typename T>
177 struct AsComponents<archetypes::Points3D> {
179 static Result<std::vector<DataCell>> serialize(
const archetypes::Points3D& 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: A 3D point cloud with positions and optional colors, radii, labels, etc.
Definition points3d.hpp:67
Points3D with_radii(Collection< rerun::components::Radius > _radii) &&
Optional radii for the points, effectively turning them into circles.
Definition points3d.hpp:112
std::optional< Collection< rerun::components::Text > > labels
Optional text labels for the points.
Definition points3d.hpp:78
Points3D with_instance_keys(Collection< rerun::components::InstanceKey > _instance_keys) &&
Unique identifiers for each individual point in the batch.
Definition points3d.hpp:156
Points3D with_keypoint_ids(Collection< rerun::components::KeypointId > _keypoint_ids) &&
Optional keypoint IDs for the points, identifying them within a class.
Definition points3d.hpp:149
Points3D with_labels(Collection< rerun::components::Text > _labels) &&
Optional text labels for the points.
Definition points3d.hpp:126
std::optional< Collection< rerun::components::InstanceKey > > instance_keys
Unique identifiers for each individual point in the batch.
Definition points3d.hpp:96
size_t num_instances() const
Returns the number of primary instances of this archetype.
Definition points3d.hpp:163
std::optional< Collection< rerun::components::Radius > > radii
Optional radii for the points, effectively turning them into circles.
Definition points3d.hpp:72
Points3D with_colors(Collection< rerun::components::Color > _colors) &&
Optional colors for the points.
Definition points3d.hpp:119
Collection< rerun::components::Position3D > positions
All the 3D positions at which the point cloud shows points.
Definition points3d.hpp:69
std::optional< Collection< rerun::components::KeypointId > > keypoint_ids
Optional keypoint IDs for the points, identifying them within a class.
Definition points3d.hpp:93
Points3D with_class_ids(Collection< rerun::components::ClassId > _class_ids) &&
Optional class Ids for the points.
Definition points3d.hpp:135
std::optional< Collection< rerun::components::Color > > colors
Optional colors for the points.
Definition points3d.hpp:75
std::optional< Collection< rerun::components::ClassId > > class_ids
Optional class Ids for the points.
Definition points3d.hpp:83
Indicator component used by archetypes when converting them to component lists.
Definition indicator_component.hpp:23