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 "../datatypes/dvec2d.hpp"
8#include "../result.hpp"
9
10#include <cstdint>
11#include <memory>
12
13namespace arrow {
14 class Array;
15 class DataType;
16 class ListBuilder;
17} // namespace arrow
18
19namespace rerun::components {
20 /// **Component**: A geospatial line string expressed in [EPSG:4326](https://epsg.io/4326) latitude and longitude (North/East-positive degrees).
23
24 public: // START of extensions from geo_line_string_ext.cpp:
25 /// Creates a new GeoLineString object based on [EPSG:4326](https://epsg.io/4326) latitude and longitude (North/East-positive degrees).
27 GeoLineString line_string;
28 line_string.lat_lon = std::move(lat_lon_);
29 return line_string;
30 }
31
32 // END of extensions from geo_line_string_ext.cpp, start of generated code:
33
34 public:
35 GeoLineString() = default;
36 };
37} // namespace rerun::components
38
39namespace rerun {
40 template <typename T>
41 struct Loggable;
42
43 /// \private
44 template <>
45 struct Loggable<components::GeoLineString> {
46 static constexpr const char Name[] = "rerun.components.GeoLineString";
47
48 /// Returns the arrow data type this type corresponds to.
49 static const std::shared_ptr<arrow::DataType>& arrow_datatype();
50
51 /// Serializes an array of `rerun::components::GeoLineString` into an arrow array.
52 static Result<std::shared_ptr<arrow::Array>> to_arrow(
53 const components::GeoLineString* instances, size_t num_instances
54 );
55
56 /// Fills an arrow array builder with an array of this type.
57 static rerun::Error fill_arrow_array_builder(
58 arrow::ListBuilder* builder, const components::GeoLineString* elements,
59 size_t num_elements
60 );
61 };
62} // 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:79
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:22
Component: A geospatial line string expressed in EPSG:4326 latitude and longitude (North/East-positiv...
Definition geo_line_string.hpp:21
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