Rerun C++ SDK
Loading...
Searching...
No Matches
geo_line_string.hpp
1// DO NOT EDIT! This file was auto-generated by crates/build/re_types_builder/src/codegen/cpp/mod.rs
2// Based on "crates/store/re_types/definitions/rerun/components/geo_line_string.fbs".
3
4#pragma once
5
6#include "../collection.hpp"
7#include "../component_descriptor.hpp"
8#include "../datatypes/dvec2d.hpp"
9#include "../result.hpp"
10
11#include <cstdint>
12#include <memory>
13
14namespace arrow {
15 class Array;
16 class DataType;
17 class ListBuilder;
18} // namespace arrow
19
20namespace rerun::components {
21 /// **Component**: A geospatial line string expressed in [EPSG:4326](https://epsg.io/4326) latitude and longitude (North/East-positive degrees).
24
25 public: // START of extensions from geo_line_string_ext.cpp:
26 /// Creates a new GeoLineString object based on [EPSG:4326](https://epsg.io/4326) latitude and longitude (North/East-positive degrees).
28 GeoLineString line_string;
29 line_string.lat_lon = std::move(lat_lon_);
30 return line_string;
31 }
32
33 // END of extensions from geo_line_string_ext.cpp, start of generated code:
34
35 public:
36 GeoLineString() = default;
37 };
38} // namespace rerun::components
39
40namespace rerun {
41 template <typename T>
42 struct Loggable;
43
44 /// \private
45 template <>
46 struct Loggable<components::GeoLineString> {
47 static constexpr ComponentDescriptor Descriptor = "rerun.components.GeoLineString";
48
49 /// Returns the arrow data type this type corresponds to.
50 static const std::shared_ptr<arrow::DataType>& arrow_datatype();
51
52 /// Serializes an array of `rerun::components::GeoLineString` into an arrow array.
53 static Result<std::shared_ptr<arrow::Array>> to_arrow(
54 const components::GeoLineString* instances, size_t num_instances
55 );
56
57 /// Fills an arrow array builder with an array of this type.
58 static rerun::Error fill_arrow_array_builder(
59 arrow::ListBuilder* builder, const components::GeoLineString* elements,
60 size_t num_elements
61 );
62 };
63} // namespace rerun
Generic collection of elements that are roughly contiguous in memory.
Definition collection.hpp:49
Status outcome object (success or error) returned for fallible operations.
Definition error.hpp:95
All built-in components. See Types in the Rerun manual.
Definition rerun.hpp:80
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:23
Component: A geospatial line string expressed in EPSG:4326 latitude and longitude (North/East-positiv...
Definition geo_line_string.hpp:22
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