Rerun C++ SDK
|
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 Member Functions | |
GeoLineStrings (GeoLineStrings &&other)=default | |
GeoLineStrings (const GeoLineStrings &other)=default | |
GeoLineStrings & | operator= (const GeoLineStrings &other)=default |
GeoLineStrings & | operator= (GeoLineStrings &&other)=default |
GeoLineStrings (Collection< rerun::components::GeoLineString > _line_strings) | |
GeoLineStrings | with_line_strings (const Collection< rerun::components::GeoLineString > &_line_strings) && |
The line strings, expressed in EPSG:4326 coordinates (North/East-positive degrees). | |
GeoLineStrings | with_radii (const Collection< rerun::components::Radius > &_radii) && |
Optional radii for the line strings. | |
GeoLineStrings | with_colors (const Collection< rerun::components::Color > &_colors) && |
Optional colors for the line strings. | |
Collection< ComponentColumn > | columns (const Collection< uint32_t > &lengths_) |
Partitions the component data into multiple sub-batches. | |
Collection< ComponentColumn > | columns () |
Partitions the component data into unit-length sub-batches. | |
Static Public Member Functions | |
static GeoLineStrings | update_fields () |
Update only some specific fields of a GeoLineStrings . | |
static GeoLineStrings | clear_fields () |
Clear all the fields of a GeoLineStrings . | |
Public Attributes | |
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. | |
Static Public Attributes | |
static constexpr const char | ArchetypeName [] = "rerun.archetypes.GeoLineStrings" |
The name of the archetype as used in ComponentDescriptor s. | |
static constexpr auto | Descriptor_line_strings |
ComponentDescriptor for the line_strings field. | |
static constexpr auto | Descriptor_radii |
ComponentDescriptor for the radii field. | |
static constexpr auto | Descriptor_colors |
ComponentDescriptor for the colors field. | |
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".
|
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).
Collection< ComponentColumn > rerun::archetypes::GeoLineStrings::columns | ( | const Collection< uint32_t > & | lengths_ | ) |
Partitions the component data into multiple sub-batches.
Specifically, this transforms the existing ComponentBatch
data into ComponentColumn
s 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.
Collection< ComponentColumn > rerun::archetypes::GeoLineStrings::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.
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).
|
staticconstexpr |
ComponentDescriptor
for the line_strings
field.
|
staticconstexpr |
ComponentDescriptor
for the radii
field.
|
staticconstexpr |
ComponentDescriptor
for the colors
field.