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

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

#include <rerun/archetypes/geo_line_strings.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

 GeoLineStrings (GeoLineStrings &&other)=default
 
 GeoLineStrings (Collection< rerun::components::GeoLineString > _line_strings)
 
GeoLineStrings with_radii (Collection< rerun::components::Radius > _radii) &&
 Optional radii for the line strings.
 
GeoLineStrings with_colors (Collection< rerun::components::Color > _colors) &&
 Optional colors for the line strings.
 

Public Attributes

Collection< rerun::components::GeoLineStringline_strings
 The line strings, expressed in EPSG:4326 coordinates (North/East-positive degrees).
 
std::optional< Collection< rerun::components::Radius > > radii
 Optional radii for the line strings.
 
std::optional< Collection< rerun::components::Color > > colors
 Optional colors for the line strings.
 

Static Public Attributes

static constexpr const char IndicatorComponentName []
 

Detailed Description

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

Also known as "line strips" or "polylines".

Example

Log a geospatial line string

image

#include <rerun.hpp>
int main() {
const auto rec = rerun::RecordingStream("rerun_example_geo_line_strings");
rec.spawn().exit_on_failure();
{{41.0000, -109.0452},
{41.0000, -102.0415},
{36.9931, -102.0415},
{36.9931, -109.0452},
{41.0000, -109.0452}}
);
rec.log(
"colorado",
rerun::GeoLineStrings(line_string)
);
}
A RecordingStream handles everything related to logging data into Rerun.
Definition recording_stream.hpp:60
Archetype: Geospatial line strings with positions expressed in EPSG:4326 altitude and longitude (Nort...
Definition geo_line_strings.hpp:53
GeoLineStrings with_radii(Collection< rerun::components::Radius > _radii) &&
Optional radii for the line strings.
Definition geo_line_strings.hpp:84
GeoLineStrings with_colors(Collection< rerun::components::Color > _colors) &&
Optional colors for the line strings.
Definition geo_line_strings.hpp:91
Component: An RGBA color with unmultiplied/separate alpha, in sRGB gamma space with linear alpha.
Definition color.hpp:17
static GeoLineString from_lat_lon(Collection< datatypes::DVec2D > lat_lon_)
Creates a new GeoLineString object based on EPSG:4326 latitude and longitude (North/East-positive deg...
Definition geo_line_string.hpp:26
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()

GeoLineStrings rerun::archetypes::GeoLineStrings::with_radii ( Collection< rerun::components::Radius _radii) &&
inline

Optional radii for the line strings.

Note: scene units radiii are interpreted as meters. Currently, the display scale only considers the latitude of the first vertex of each line string (see this issue).

Member Data Documentation

◆ radii

std::optional<Collection<rerun::components::Radius> > rerun::archetypes::GeoLineStrings::radii

Optional radii for the line strings.

Note: scene units radiii are interpreted as meters. Currently, the display scale only considers the latitude of the first vertex of each line string (see this issue).

◆ IndicatorComponentName

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

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