Rerun C++ SDK
Loading...
Searching...
No Matches
rerun::archetypes::GeoPoints Struct Reference

Archetype: Geospatial points with positions expressed in EPSG:4326 latitude and longitude (North/East-positive degrees), and optional colors and radii. More...

#include <rerun/archetypes/geo_points.hpp>

Public Types

using IndicatorComponent = rerun::components::IndicatorComponent< IndicatorComponentName >
 Indicator component, used to identify the archetype when converting to a list of components.
 

Public Member Functions

 GeoPoints (GeoPoints &&other)=default
 
 GeoPoints (const GeoPoints &other)=default
 
GeoPointsoperator= (const GeoPoints &other)=default
 
GeoPointsoperator= (GeoPoints &&other)=default
 
 GeoPoints (Collection< rerun::components::LatLon > _positions)
 
GeoPoints with_positions (const Collection< rerun::components::LatLon > &_positions) &&
 The EPSG:4326 coordinates for the points (North/East-positive degrees).
 
GeoPoints with_radii (const Collection< rerun::components::Radius > &_radii) &&
 Optional radii for the points, effectively turning them into circles.
 
GeoPoints with_colors (const Collection< rerun::components::Color > &_colors) &&
 Optional colors for the points.
 
GeoPoints with_class_ids (const Collection< rerun::components::ClassId > &_class_ids) &&
 Optional class Ids for the points.
 
Collection< ComponentColumncolumns (const Collection< uint32_t > &lengths_)
 Partitions the component data into multiple sub-batches.
 
Collection< ComponentColumncolumns ()
 Partitions the component data into unit-length sub-batches.
 

Static Public Member Functions

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).
 
static GeoPoints update_fields ()
 Update only some specific fields of a GeoPoints.
 
static GeoPoints clear_fields ()
 Clear all the fields of a GeoPoints.
 

Public Attributes

std::optional< ComponentBatchpositions
 The EPSG:4326 coordinates for the points (North/East-positive degrees).
 
std::optional< ComponentBatchradii
 Optional radii for the points, effectively turning them into circles.
 
std::optional< ComponentBatchcolors
 Optional colors for the points.
 
std::optional< ComponentBatchclass_ids
 Optional class Ids for the points.
 

Static Public Attributes

static constexpr const char IndicatorComponentName []
 
static constexpr const char ArchetypeName [] = "rerun.archetypes.GeoPoints"
 The name of the archetype as used in ComponentDescriptors.
 
static constexpr auto Descriptor_positions
 ComponentDescriptor for the positions field.
 
static constexpr auto Descriptor_radii
 ComponentDescriptor for the radii field.
 
static constexpr auto Descriptor_colors
 ComponentDescriptor for the colors field.
 
static constexpr auto Descriptor_class_ids
 ComponentDescriptor for the class_ids field.
 

Detailed Description

Archetype: Geospatial points with positions expressed in EPSG:4326 latitude and longitude (North/East-positive degrees), and optional colors and radii.

Example

Log a geospatial point

image

#include <rerun.hpp>
int main() {
const auto rec = rerun::RecordingStream("rerun_example_geo_points");
rec.spawn().exit_on_failure();
rec.log(
"rerun_hq",
rerun::GeoPoints::from_lat_lon({{59.319221, 18.075631}})
);
}
A RecordingStream handles everything related to logging data into Rerun.
Definition recording_stream.hpp:60
GeoPoints with_radii(const Collection< rerun::components::Radius > &_radii) &&
Optional radii for the points, effectively turning them into circles.
Definition geo_points.hpp:126
GeoPoints with_colors(const Collection< rerun::components::Color > &_colors) &&
Optional colors for the points.
Definition geo_points.hpp:132
Component: An RGBA color with unmultiplied/separate alpha, in sRGB gamma space with linear alpha.
Definition color.hpp:18
static Radius ui_points(float radius_in_ui_points)
Creates a new radius in ui points.
Definition radius.hpp:36

Member Function Documentation

◆ with_radii()

GeoPoints rerun::archetypes::GeoPoints::with_radii ( const Collection< rerun::components::Radius > &  _radii) &&
inline

Optional radii for the points, effectively turning them into circles.

Note: scene units radiii are interpreted as meters.

◆ with_class_ids()

GeoPoints rerun::archetypes::GeoPoints::with_class_ids ( const Collection< rerun::components::ClassId > &  _class_ids) &&
inline

Optional class Ids for the points.

The components::ClassId provides colors if not specified explicitly.

◆ columns() [1/2]

Collection< ComponentColumn > rerun::archetypes::GeoPoints::columns ( const Collection< uint32_t > &  lengths_)

Partitions the component data into multiple sub-batches.

Specifically, this transforms the existing ComponentBatch data into ComponentColumns instead, via ComponentBatch::partitioned.

This makes it possible to use RecordingStream::send_columns to send columnar data directly into Rerun.

The specified lengths must sum to the total length of the component batch.

◆ columns() [2/2]

Collection< ComponentColumn > rerun::archetypes::GeoPoints::columns ( )

Partitions the component data into unit-length sub-batches.

This is semantically similar to calling columns with std::vector<uint32_t>(n, 1), where n is automatically guessed.

Member Data Documentation

◆ radii

std::optional<ComponentBatch> rerun::archetypes::GeoPoints::radii

Optional radii for the points, effectively turning them into circles.

Note: scene units radiii are interpreted as meters.

◆ class_ids

std::optional<ComponentBatch> rerun::archetypes::GeoPoints::class_ids

Optional class Ids for the points.

The components::ClassId provides colors if not specified explicitly.

◆ IndicatorComponentName

constexpr const char rerun::archetypes::GeoPoints::IndicatorComponentName[]
staticconstexpr
Initial value:
=
"rerun.components.GeoPointsIndicator"

◆ Descriptor_positions

constexpr auto rerun::archetypes::GeoPoints::Descriptor_positions
staticconstexpr
Initial value:
= ComponentDescriptor(
ArchetypeName, "positions",
Loggable<rerun::components::LatLon>::Descriptor.component_name
)
static constexpr const char ArchetypeName[]
The name of the archetype as used in ComponentDescriptors.
Definition geo_points.hpp:68

ComponentDescriptor for the positions field.

◆ Descriptor_radii

constexpr auto rerun::archetypes::GeoPoints::Descriptor_radii
staticconstexpr
Initial value:
= ComponentDescriptor(
ArchetypeName, "radii", Loggable<rerun::components::Radius>::Descriptor.component_name
)

ComponentDescriptor for the radii field.

◆ Descriptor_colors

constexpr auto rerun::archetypes::GeoPoints::Descriptor_colors
staticconstexpr
Initial value:
= ComponentDescriptor(
ArchetypeName, "colors", Loggable<rerun::components::Color>::Descriptor.component_name
)

ComponentDescriptor for the colors field.

◆ Descriptor_class_ids

constexpr auto rerun::archetypes::GeoPoints::Descriptor_class_ids
staticconstexpr
Initial value:
= ComponentDescriptor(
ArchetypeName, "class_ids",
Loggable<rerun::components::ClassId>::Descriptor.component_name
)

ComponentDescriptor for the class_ids field.


The documentation for this struct was generated from the following file: