6#include "../collection.hpp"
7#include "../component_batch.hpp"
8#include "../component_column.hpp"
9#include "../components/class_id.hpp"
10#include "../components/color.hpp"
11#include "../components/draw_order.hpp"
12#include "../components/half_size2d.hpp"
13#include "../components/position2d.hpp"
14#include "../components/radius.hpp"
15#include "../components/show_labels.hpp"
16#include "../components/text.hpp"
17#include "../result.hpp"
79 std::optional<ComponentBatch>
colors;
88 std::optional<ComponentBatch>
labels;
109 static constexpr const char ArchetypeName[] =
"rerun.archetypes.Ellipses2D";
188 return std::move(*
this);
194 return std::move(*
this);
200 return std::move(*
this);
207 return std::move(*
this);
216 return std::move(*
this);
226 return std::move(*
this);
238 return std::move(*
this);
248 return std::move(*
this);
259 return std::move(*
this);
268 return std::move(*
this);
292 template <
typename T>
Generic collection of elements that are roughly contiguous in memory.
Definition collection.hpp:49
A class for representing either a usable value, or an error.
Definition result.hpp:14
All built-in archetypes. See Types in the Rerun manual.
Definition rerun.hpp:81
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:23
static Result< ComponentBatch > from_loggable(const rerun::Collection< T > &components, const ComponentDescriptor &descriptor)
Creates a new component batch from a collection of component instances.
Definition component_batch.hpp:46
A ComponentDescriptor fully describes the semantics of a column of data.
Definition component_descriptor.hpp:16
The Loggable trait is used by all built-in implementation of rerun::AsComponents to serialize a colle...
Definition loggable.hpp:11
Archetype: 2D ellipses with half-extents (semi-axes) and optional center, colors etc.
Definition ellipses2d.hpp:71
static constexpr auto Descriptor_draw_order
ComponentDescriptor for the draw_order field.
Definition ellipses2d.hpp:140
static constexpr auto Descriptor_half_sizes
ComponentDescriptor for the half_sizes field.
Definition ellipses2d.hpp:112
Ellipses2D with_draw_order(const rerun::components::DrawOrder &_draw_order) &&
An optional floating point value that specifies the 2D drawing order.
Definition ellipses2d.hpp:245
Ellipses2D with_half_sizes(const Collection< rerun::components::HalfSize2D > &_half_sizes) &&
All half-extents (semi-axes) that make up the batch of ellipses.
Definition ellipses2d.hpp:184
std::optional< ComponentBatch > line_radii
Optional radii for the lines that make up the ellipses.
Definition ellipses2d.hpp:82
Ellipses2D with_many_draw_order(const Collection< rerun::components::DrawOrder > &_draw_order) &&
This method makes it possible to pack multiple draw_order in a single component batch.
Definition ellipses2d.hpp:255
static Ellipses2D from_centers_and_half_sizes(Collection< components::Position2D > centers, Collection< components::HalfSize2D > half_sizes)
Creates new Ellipses2D with centers and half_sizes.
Definition ellipses2d.hpp:157
std::optional< ComponentBatch > class_ids
Optional components::ClassIds for the ellipses.
Definition ellipses2d.hpp:105
Ellipses2D with_centers(const Collection< rerun::components::Position2D > &_centers) &&
Optional center positions of the ellipses.
Definition ellipses2d.hpp:192
Collection< ComponentColumn > columns(const Collection< uint32_t > &lengths_)
Partitions the component data into multiple sub-batches.
Ellipses2D with_line_radii(const Collection< rerun::components::Radius > &_line_radii) &&
Optional radii for the lines that make up the ellipses.
Definition ellipses2d.hpp:204
static constexpr auto Descriptor_labels
ComponentDescriptor for the labels field.
Definition ellipses2d.hpp:131
std::optional< ComponentBatch > labels
Optional text labels for the ellipses.
Definition ellipses2d.hpp:88
static Ellipses2D from_half_sizes(Collection< components::HalfSize2D > half_sizes)
Creates new Ellipses2D with half_sizes centered around the local origin.
Definition ellipses2d.hpp:152
std::optional< ComponentBatch > show_labels
Whether the text labels should be shown.
Definition ellipses2d.hpp:94
static Ellipses2D update_fields()
Update only some specific fields of a Ellipses2D.
Definition ellipses2d.hpp:176
std::optional< ComponentBatch > centers
Optional center positions of the ellipses.
Definition ellipses2d.hpp:76
Ellipses2D with_colors(const Collection< rerun::components::Color > &_colors) &&
Optional colors for the ellipses.
Definition ellipses2d.hpp:198
std::optional< ComponentBatch > draw_order
An optional floating point value that specifies the 2D drawing order.
Definition ellipses2d.hpp:100
std::optional< ComponentBatch > half_sizes
All half-extents (semi-axes) that make up the batch of ellipses.
Definition ellipses2d.hpp:73
static constexpr auto Descriptor_class_ids
ComponentDescriptor for the class_ids field.
Definition ellipses2d.hpp:145
Ellipses2D with_many_show_labels(const Collection< rerun::components::ShowLabels > &_show_labels) &&
This method makes it possible to pack multiple show_labels in a single component batch.
Definition ellipses2d.hpp:233
std::optional< ComponentBatch > colors
Optional colors for the ellipses.
Definition ellipses2d.hpp:79
Ellipses2D with_labels(const Collection< rerun::components::Text > &_labels) &&
Optional text labels for the ellipses.
Definition ellipses2d.hpp:214
Collection< ComponentColumn > columns()
Partitions the component data into unit-length sub-batches.
static constexpr auto Descriptor_centers
ComponentDescriptor for the centers field.
Definition ellipses2d.hpp:117
static constexpr const char ArchetypeName[]
The name of the archetype as used in ComponentDescriptors.
Definition ellipses2d.hpp:109
static constexpr auto Descriptor_colors
ComponentDescriptor for the colors field.
Definition ellipses2d.hpp:122
static Ellipses2D clear_fields()
Clear all the fields of a Ellipses2D.
Ellipses2D with_show_labels(const rerun::components::ShowLabels &_show_labels) &&
Whether the text labels should be shown.
Definition ellipses2d.hpp:223
Ellipses2D with_class_ids(const Collection< rerun::components::ClassId > &_class_ids) &&
Optional components::ClassIds for the ellipses.
Definition ellipses2d.hpp:265
static constexpr auto Descriptor_line_radii
ComponentDescriptor for the line_radii field.
Definition ellipses2d.hpp:126
static constexpr auto Descriptor_show_labels
ComponentDescriptor for the show_labels field.
Definition ellipses2d.hpp:135
Component: Draw order of 2D elements.
Definition draw_order.hpp:19
Component: Whether the entity's components::Text label is shown.
Definition show_labels.hpp:18