6#include "../collection.hpp"
7#include "../compiler_utils.hpp"
8#include "../components/class_id.hpp"
9#include "../components/color.hpp"
10#include "../components/draw_order.hpp"
11#include "../components/instance_key.hpp"
12#include "../components/keypoint_id.hpp"
13#include "../components/position2d.hpp"
14#include "../components/radius.hpp"
15#include "../components/text.hpp"
16#include "../data_cell.hpp"
17#include "../indicator_component.hpp"
18#include "../result.hpp"
76 std::optional<Collection<rerun::components::Radius>>
radii;
79 std::optional<Collection<rerun::components::Color>>
colors;
82 std::optional<Collection<rerun::components::Text>>
labels;
92 std::optional<Collection<rerun::components::ClassId>>
class_ids;
108 static constexpr const char IndicatorComponentName[] =
"rerun.components.Points2DIndicator";
122 radii = std::move(_radii);
124 RERUN_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
129 colors = std::move(_colors);
131 RERUN_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
136 labels = std::move(_labels);
138 RERUN_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
147 RERUN_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
156 RERUN_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
170 RERUN_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
177 RERUN_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
190 template <
typename T>
195 struct AsComponents<archetypes::Points2D> {
197 static Result<std::vector<DataCell>> serialize(
const archetypes::Points2D& 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 2D point cloud with positions and optional colors, radii, labels, etc.
Definition points2d.hpp:71
Points2D with_instance_keys(Collection< rerun::components::InstanceKey > _instance_keys) &&
Unique identifiers for each individual point in the batch.
Definition points2d.hpp:174
std::optional< Collection< rerun::components::Radius > > radii
Optional radii for the points, effectively turning them into circles.
Definition points2d.hpp:76
std::optional< Collection< rerun::components::Color > > colors
Optional colors for the points.
Definition points2d.hpp:79
Points2D with_keypoint_ids(Collection< rerun::components::KeypointId > _keypoint_ids) &&
Optional keypoint IDs for the points, identifying them within a class.
Definition points2d.hpp:167
Collection< rerun::components::Position2D > positions
All the 2D positions at which the point cloud shows points.
Definition points2d.hpp:73
Points2D with_class_ids(Collection< rerun::components::ClassId > _class_ids) &&
Optional class Ids for the points.
Definition points2d.hpp:153
Points2D with_labels(Collection< rerun::components::Text > _labels) &&
Optional text labels for the points.
Definition points2d.hpp:135
std::optional< Collection< rerun::components::InstanceKey > > instance_keys
Unique identifiers for each individual point in the batch.
Definition points2d.hpp:105
std::optional< Collection< rerun::components::KeypointId > > keypoint_ids
Optional keypoint IDs for the points, identifying them within a class.
Definition points2d.hpp:102
std::optional< Collection< rerun::components::ClassId > > class_ids
Optional class Ids for the points.
Definition points2d.hpp:92
size_t num_instances() const
Returns the number of primary instances of this archetype.
Definition points2d.hpp:181
Points2D with_draw_order(rerun::components::DrawOrder _draw_order) &&
An optional floating point value that specifies the 2D drawing order.
Definition points2d.hpp:144
std::optional< rerun::components::DrawOrder > draw_order
An optional floating point value that specifies the 2D drawing order.
Definition points2d.hpp:87
std::optional< Collection< rerun::components::Text > > labels
Optional text labels for the points.
Definition points2d.hpp:82
Points2D with_radii(Collection< rerun::components::Radius > _radii) &&
Optional radii for the points, effectively turning them into circles.
Definition points2d.hpp:121
Points2D with_colors(Collection< rerun::components::Color > _colors) &&
Optional colors for the points.
Definition points2d.hpp:128
Component: Draw order used for the display order of 2D elements.
Definition draw_order.hpp:30
Indicator component used by archetypes when converting them to component lists.
Definition indicator_component.hpp:23