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/draw_order.hpp"
12#include "../components/keypoint_id.hpp"
13#include "../components/position2d.hpp"
14#include "../components/radius.hpp"
15#include "../components/show_labels.hpp"
16#include "../components/text.hpp"
17#include "../indicator_component.hpp"
18#include "../result.hpp"
112 std::optional<Collection<rerun::components::Radius>>
radii;
115 std::optional<Collection<rerun::components::Color>>
colors;
121 std::optional<Collection<rerun::components::Text>>
labels;
134 std::optional<Collection<rerun::components::ClassId>>
class_ids;
147 static constexpr const char IndicatorComponentName[] =
"rerun.components.Points2DIndicator";
161 radii = std::move(_radii);
163 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
168 colors = std::move(_colors);
170 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
178 labels = std::move(_labels);
180 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
187 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
196 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
205 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
219 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
227 template <
typename T>
232 struct AsComponents<archetypes::Points2D> {
234 static Result<std::vector<ComponentBatch>> serialize(
const archetypes::Points2D& 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:77
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:23
Archetype: A 2D point cloud with positions and optional colors, radii, labels, etc.
Definition points2d.hpp:107
std::optional< Collection< rerun::components::Radius > > radii
Optional radii for the points, effectively turning them into circles.
Definition points2d.hpp:112
std::optional< Collection< rerun::components::Color > > colors
Optional colors for the points.
Definition points2d.hpp:115
Points2D with_show_labels(rerun::components::ShowLabels _show_labels) &&
Optional choice of whether the text labels should be shown by default.
Definition points2d.hpp:184
Points2D with_keypoint_ids(Collection< rerun::components::KeypointId > _keypoint_ids) &&
Optional keypoint IDs for the points, identifying them within a class.
Definition points2d.hpp:216
Collection< rerun::components::Position2D > positions
All the 2D positions at which the point cloud shows points.
Definition points2d.hpp:109
Points2D with_class_ids(Collection< rerun::components::ClassId > _class_ids) &&
Optional class Ids for the points.
Definition points2d.hpp:202
Points2D with_labels(Collection< rerun::components::Text > _labels) &&
Optional text labels for the points.
Definition points2d.hpp:177
std::optional< Collection< rerun::components::KeypointId > > keypoint_ids
Optional keypoint IDs for the points, identifying them within a class.
Definition points2d.hpp:144
std::optional< Collection< rerun::components::ClassId > > class_ids
Optional class Ids for the points.
Definition points2d.hpp:134
std::optional< rerun::components::ShowLabels > show_labels
Optional choice of whether the text labels should be shown by default.
Definition points2d.hpp:124
Points2D with_draw_order(rerun::components::DrawOrder _draw_order) &&
An optional floating point value that specifies the 2D drawing order.
Definition points2d.hpp:193
std::optional< rerun::components::DrawOrder > draw_order
An optional floating point value that specifies the 2D drawing order.
Definition points2d.hpp:129
std::optional< Collection< rerun::components::Text > > labels
Optional text labels for the points.
Definition points2d.hpp:121
Points2D with_radii(Collection< rerun::components::Radius > _radii) &&
Optional radii for the points, effectively turning them into circles.
Definition points2d.hpp:160
Points2D with_colors(Collection< rerun::components::Color > _colors) &&
Optional colors for the points.
Definition points2d.hpp:167
Component: Draw order of 2D elements.
Definition draw_order.hpp:20
Indicator component used by archetypes when converting them to component lists.
Definition indicator_component.hpp:32
Component: Whether the entity's components::Text label is shown.
Definition show_labels.hpp:19