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>
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
#include <rerun.hpp>
int main() {
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",
);
}
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:18
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:27
static Radius ui_points(float radius_in_ui_points)
Creates a new radius in ui points.
Definition radius.hpp:36
◆ with_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).
◆ 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: