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 (Collection< rerun::components::LatLon > _positions)
 
GeoPoints with_radii (Collection< rerun::components::Radius > _radii) &&
 Optional radii for the points, effectively turning them into circles.
 
GeoPoints with_colors (Collection< rerun::components::Color > _colors) &&
 Optional colors for the points.
 
GeoPoints with_class_ids (Collection< rerun::components::ClassId > _class_ids) &&
 Optional class Ids for the points.
 

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).
 

Public Attributes

Collection< rerun::components::LatLonpositions
 The EPSG:4326 coordinates for the points (North/East-positive degrees).
 
std::optional< Collection< rerun::components::Radius > > radii
 Optional radii for the points, effectively turning them into circles.
 
std::optional< Collection< rerun::components::Color > > colors
 Optional colors for the points.
 
std::optional< Collection< rerun::components::ClassId > > class_ids
 Optional class Ids for the points.
 

Static Public Attributes

static constexpr const char IndicatorComponentName []
 

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(Collection< rerun::components::Radius > _radii) &&
Optional radii for the points, effectively turning them into circles.
Definition geo_points.hpp:88
GeoPoints with_colors(Collection< rerun::components::Color > _colors) &&
Optional colors for the points.
Definition geo_points.hpp:95
Component: An RGBA color with unmultiplied/separate alpha, in sRGB gamma space with linear alpha.
Definition color.hpp:17
static Radius ui_points(float radius_in_ui_points)
Creates a new radius in ui points.
Definition radius.hpp:35

Member Function Documentation

◆ with_radii()

GeoPoints rerun::archetypes::GeoPoints::with_radii ( 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 ( Collection< rerun::components::ClassId _class_ids) &&
inline

Optional class Ids for the points.

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

Member Data Documentation

◆ radii

std::optional<Collection<rerun::components::Radius> > 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<Collection<rerun::components::ClassId> > 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"

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