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/keypoint_id.hpp"
12#include "../components/position2d.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"
74 std::optional<Collection<rerun::components::Radius>>
radii;
77 std::optional<Collection<rerun::components::Color>>
colors;
80 std::optional<Collection<rerun::components::Text>>
labels;
90 std::optional<Collection<rerun::components::ClassId>>
class_ids;
103 static constexpr const char IndicatorComponentName[] =
"rerun.components.Points2DIndicator";
117 radii = std::move(_radii);
119 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
124 colors = std::move(_colors);
126 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
131 labels = std::move(_labels);
133 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
142 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
151 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
165 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
173 template <
typename T>
178 struct AsComponents<archetypes::Points2D> {
180 static Result<std::vector<DataCell>> serialize(
const archetypes::Points2D& 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 2D point cloud with positions and optional colors, radii, labels, etc.
Definition points2d.hpp:69
std::optional< Collection< rerun::components::Radius > > radii
Optional radii for the points, effectively turning them into circles.
Definition points2d.hpp:74
std::optional< Collection< rerun::components::Color > > colors
Optional colors for the points.
Definition points2d.hpp:77
Points2D with_keypoint_ids(Collection< rerun::components::KeypointId > _keypoint_ids) &&
Optional keypoint IDs for the points, identifying them within a class.
Definition points2d.hpp:162
Collection< rerun::components::Position2D > positions
All the 2D positions at which the point cloud shows points.
Definition points2d.hpp:71
Points2D with_class_ids(Collection< rerun::components::ClassId > _class_ids) &&
Optional class Ids for the points.
Definition points2d.hpp:148
Points2D with_labels(Collection< rerun::components::Text > _labels) &&
Optional text labels for the points.
Definition points2d.hpp:130
std::optional< Collection< rerun::components::KeypointId > > keypoint_ids
Optional keypoint IDs for the points, identifying them within a class.
Definition points2d.hpp:100
std::optional< Collection< rerun::components::ClassId > > class_ids
Optional class Ids for the points.
Definition points2d.hpp:90
Points2D with_draw_order(rerun::components::DrawOrder _draw_order) &&
An optional floating point value that specifies the 2D drawing order.
Definition points2d.hpp:139
std::optional< rerun::components::DrawOrder > draw_order
An optional floating point value that specifies the 2D drawing order.
Definition points2d.hpp:85
std::optional< Collection< rerun::components::Text > > labels
Optional text labels for the points.
Definition points2d.hpp:80
Points2D with_radii(Collection< rerun::components::Radius > _radii) &&
Optional radii for the points, effectively turning them into circles.
Definition points2d.hpp:116
Points2D with_colors(Collection< rerun::components::Color > _colors) &&
Optional colors for the points.
Definition points2d.hpp:123
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