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/lat_lon.hpp"
12#include "../components/radius.hpp"
13#include "../indicator_component.hpp"
14#include "../result.hpp"
51 std::optional<ComponentBatch>
radii;
54 std::optional<ComponentBatch>
colors;
62 static constexpr const char IndicatorComponentName[] =
63 "rerun.components.GeoPointsIndicator";
68 static constexpr const char ArchetypeName[] =
"rerun.archetypes.GeoPoints";
106 .value_or_throw()) {}
120 return std::move(*
this);
128 return std::move(*
this);
134 return std::move(*
this);
143 return std::move(*
this);
167 template <
typename T>
172 struct AsComponents<archetypes::
GeoPoints> {
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:76
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:23
Arrow-encoded data of a single batch of components together with a component descriptor.
Definition component_batch.hpp:28
static Result< ComponentBatch > from_loggable(const rerun::Collection< T > &components, const ComponentDescriptor &descriptor=rerun::Loggable< T >::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:14
The Loggable trait is used by all built-in implementation of rerun::AsComponents to serialize a colle...
Definition loggable.hpp:11
Archetype: Geospatial points with positions expressed in EPSG:4326 latitude and longitude (North/East...
Definition geo_points.hpp:44
Collection< ComponentColumn > columns(const Collection< uint32_t > &lengths_)
Partitions the component data into multiple sub-batches.
GeoPoints with_positions(const Collection< rerun::components::LatLon > &_positions) &&
The EPSG:4326 coordinates for the points (North/East-positive degrees).
Definition geo_points.hpp:117
std::optional< ComponentBatch > radii
Optional radii for the points, effectively turning them into circles.
Definition geo_points.hpp:51
GeoPoints with_class_ids(const Collection< rerun::components::ClassId > &_class_ids) &&
Optional class Ids for the points.
Definition geo_points.hpp:140
std::optional< ComponentBatch > class_ids
Optional class Ids for the points.
Definition geo_points.hpp:59
static constexpr auto Descriptor_radii
ComponentDescriptor for the radii field.
Definition geo_points.hpp:76
static constexpr auto Descriptor_class_ids
ComponentDescriptor for the class_ids field.
Definition geo_points.hpp:84
static constexpr const char ArchetypeName[]
The name of the archetype as used in ComponentDescriptors.
Definition geo_points.hpp:68
static GeoPoints update_fields()
Update only some specific fields of a GeoPoints.
Definition geo_points.hpp:109
GeoPoints with_radii(const Collection< rerun::components::Radius > &_radii) &&
Optional radii for the points, effectively turning them into circles.
Definition geo_points.hpp:126
static constexpr auto Descriptor_colors
ComponentDescriptor for the colors field.
Definition geo_points.hpp:80
static GeoPoints from_lat_lon(Collection< components::LatLon > positions_)
Creates a new GeoPoints object based on EPSG:4326 latitude and longitude (North/East-positive degrees...
Definition geo_points.hpp:91
std::optional< ComponentBatch > positions
The EPSG:4326 coordinates for the points (North/East-positive degrees).
Definition geo_points.hpp:46
GeoPoints with_colors(const Collection< rerun::components::Color > &_colors) &&
Optional colors for the points.
Definition geo_points.hpp:132
static GeoPoints clear_fields()
Clear all the fields of a GeoPoints.
std::optional< ComponentBatch > colors
Optional colors for the points.
Definition geo_points.hpp:54
Collection< ComponentColumn > columns()
Partitions the component data into unit-length sub-batches.
static constexpr auto Descriptor_positions
ComponentDescriptor for the positions field.
Definition geo_points.hpp:71
Indicator component used by archetypes when converting them to component lists.
Definition indicator_component.hpp:32