6#include "../archetype_utils.hpp"
7#include "../collection.hpp"
8#include "../component_batch.hpp"
9#include "../component_column.hpp"
10#include "../components/color.hpp"
11#include "../components/geo_line_string.hpp"
12#include "../components/radius.hpp"
13#include "../result.hpp"
61 std::optional<ComponentBatch>
radii;
64 std::optional<ComponentBatch>
colors;
68 static constexpr const char ArchetypeName[] =
"rerun.archetypes.GeoLineStrings";
113 return std::move(*
this);
122 return std::move(*
this);
128 return std::move(*
this);
158 template <
typename T>
163 struct AsComponents<archetypes::GeoLineStrings> {
165 static Result<Collection<ComponentBatch>> as_batches(
166 const archetypes::GeoLineStrings& archetype
168 return detail::collect_batches(
169 {&archetype.line_strings, &archetype.radii, &archetype.colors}
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:90
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:26
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 line strings with positions expressed in EPSG:4326 latitude and longitude (Nort...
Definition geo_line_strings.hpp:53
Collection< ComponentColumn > columns(const Collection< uint32_t > &lengths_)
Partitions the component data into multiple sub-batches.
Definition geo_line_strings.hpp:139
static GeoLineStrings clear_fields()
Clear all the fields of a GeoLineStrings.
static constexpr auto Descriptor_radii
ComponentDescriptor for the radii field.
Definition geo_line_strings.hpp:76
static constexpr auto Descriptor_line_strings
ComponentDescriptor for the line_strings field.
Definition geo_line_strings.hpp:71
std::optional< ComponentBatch > line_strings
The line strings, expressed in EPSG:4326 coordinates (North/East-positive degrees).
Definition geo_line_strings.hpp:55
static constexpr auto Descriptor_colors
ComponentDescriptor for the colors field.
Definition geo_line_strings.hpp:81
static constexpr const char ArchetypeName[]
The name of the archetype as used in ComponentDescriptors.
Definition geo_line_strings.hpp:68
GeoLineStrings with_line_strings(const Collection< rerun::components::GeoLineString > &_line_strings) &&
The line strings, expressed in EPSG:4326 coordinates (North/East-positive degrees).
Definition geo_line_strings.hpp:108
std::optional< ComponentBatch > colors
Optional colors for the line strings. Each color applies to one line string, not to an individual ver...
Definition geo_line_strings.hpp:64
GeoLineStrings with_colors(const Collection< rerun::components::Color > &_colors) &&
Optional colors for the line strings. Each color applies to one line string, not to an individual ver...
Definition geo_line_strings.hpp:126
GeoLineStrings with_radii(const Collection< rerun::components::Radius > &_radii) &&
Optional radii for the line strings.
Definition geo_line_strings.hpp:120
std::optional< ComponentBatch > radii
Optional radii for the line strings.
Definition geo_line_strings.hpp:61
static GeoLineStrings update_fields()
Update only some specific fields of a GeoLineStrings.
Definition geo_line_strings.hpp:100
Collection< ComponentColumn > columns()
Partitions the component data into unit-length sub-batches.
Definition geo_line_strings.hpp:148