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 >
std::optional< ComponentBatch > line_strings
The line strings, expressed in EPSG:4326 coordinates (North/East-positive degrees).
std::optional< ComponentBatch > radii
Optional radii for the line strings.
std::optional< ComponentBatch > colors
Optional colors for the line strings.
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_colors(const Collection< rerun::components::Color > &_colors) &&
Optional colors for the line strings.
Definition geo_line_strings.hpp:129
GeoLineStrings with_radii(const Collection< rerun::components::Radius > &_radii) &&
Optional radii for the line strings.
Definition geo_line_strings.hpp:123
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 ).
◆ columns() [1/2]
◆ columns() [2/2]
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.
◆ radii
std::optional<ComponentBatch > 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[]
static constexpr
Initial value: =
"rerun.components.GeoLineStringsIndicator"
◆ Descriptor_line_strings
constexpr auto rerun::archetypes::GeoLineStrings::Descriptor_line_strings
static constexpr
Initial value: = ComponentDescriptor(
Loggable<rerun::components::GeoLineString>::Descriptor.component_name
)
static constexpr const char ArchetypeName[]
The name of the archetype as used in ComponentDescriptors.
Definition geo_line_strings.hpp:73
ComponentDescriptor
for the line_strings
field.
◆ Descriptor_radii
constexpr auto rerun::archetypes::GeoLineStrings::Descriptor_radii
static constexpr
Initial value: = ComponentDescriptor(
ArchetypeName ,
"radii" , Loggable<rerun::components::Radius>::Descriptor.component_name
)
ComponentDescriptor
for the radii
field.
◆ Descriptor_colors
constexpr auto rerun::archetypes::GeoLineStrings::Descriptor_colors
static constexpr
Initial value: = ComponentDescriptor(
ArchetypeName ,
"colors" , Loggable<rerun::components::Color>::Descriptor.component_name
)
ComponentDescriptor
for the colors
field.
The documentation for this struct was generated from the following file: