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 "../result.hpp"
50 std::optional<ComponentBatch>
radii;
53 std::optional<ComponentBatch>
colors;
62 static constexpr const char ArchetypeName[] =
"rerun.archetypes.GeoPoints";
113 return std::move(*
this);
121 return std::move(*
this);
127 return std::move(*
this);
136 return std::move(*
this);
160 template <
typename T>
165 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)
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: Geospatial points with positions expressed in EPSG:4326 latitude and longitude (North/East...
Definition geo_points.hpp:43
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:110
std::optional< ComponentBatch > radii
Optional radii for the points, effectively turning them into circles.
Definition geo_points.hpp:50
GeoPoints with_class_ids(const Collection< rerun::components::ClassId > &_class_ids) &&
Optional class Ids for the points.
Definition geo_points.hpp:133
std::optional< ComponentBatch > class_ids
Optional class Ids for the points.
Definition geo_points.hpp:58
static constexpr auto Descriptor_radii
ComponentDescriptor for the radii field.
Definition geo_points.hpp:69
static constexpr auto Descriptor_class_ids
ComponentDescriptor for the class_ids field.
Definition geo_points.hpp:77
static constexpr const char ArchetypeName[]
The name of the archetype as used in ComponentDescriptors.
Definition geo_points.hpp:62
static GeoPoints update_fields()
Update only some specific fields of a GeoPoints.
Definition geo_points.hpp:102
GeoPoints with_radii(const Collection< rerun::components::Radius > &_radii) &&
Optional radii for the points, effectively turning them into circles.
Definition geo_points.hpp:119
static constexpr auto Descriptor_colors
ComponentDescriptor for the colors field.
Definition geo_points.hpp:73
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:84
std::optional< ComponentBatch > positions
The EPSG:4326 coordinates for the points (North/East-positive degrees).
Definition geo_points.hpp:45
GeoPoints with_colors(const Collection< rerun::components::Color > &_colors) &&
Optional colors for the points.
Definition geo_points.hpp:125
static GeoPoints clear_fields()
Clear all the fields of a GeoPoints.
std::optional< ComponentBatch > colors
Optional colors for the points.
Definition geo_points.hpp:53
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:65