Rerun C++ SDK
Loading...
Searching...
No Matches
mesh_properties.hpp
1// DO NOT EDIT! This file was auto-generated by crates/re_types_builder/src/codegen/cpp/mod.rs
2// Based on "crates/re_types/definitions/rerun/datatypes/mesh_properties.fbs".
3
4#pragma once
5
6#include "../collection.hpp"
7#include "../result.hpp"
8
9#include <cstdint>
10#include <memory>
11#include <optional>
12#include <utility>
13
14namespace arrow {
15 class Array;
16 class DataType;
17 class StructBuilder;
18} // namespace arrow
19
20namespace rerun::datatypes {
21 /// **Datatype**: Optional triangle indices for a mesh.
23 /// A flattened array of vertex indices that describe the mesh's triangles.
24 ///
25 /// Its length must be divisible by 3.
26 std::optional<rerun::Collection<uint32_t>> indices;
27
28 public:
29 MeshProperties() = default;
30
31 MeshProperties(std::optional<rerun::Collection<uint32_t>> indices_)
32 : indices(std::move(indices_)) {}
33
34 MeshProperties& operator=(std::optional<rerun::Collection<uint32_t>> indices_) {
35 indices = std::move(indices_);
36 return *this;
37 }
38 };
39} // namespace rerun::datatypes
40
41namespace rerun {
42 template <typename T>
43 struct Loggable;
44
45 /// \private
46 template <>
47 struct Loggable<datatypes::MeshProperties> {
48 static constexpr const char Name[] = "rerun.datatypes.MeshProperties";
49
50 /// Returns the arrow data type this type corresponds to.
51 static const std::shared_ptr<arrow::DataType>& arrow_datatype();
52
53 /// Fills an arrow array builder with an array of this type.
54 static rerun::Error fill_arrow_array_builder(
55 arrow::StructBuilder* builder, const datatypes::MeshProperties* elements,
56 size_t num_elements
57 );
58
59 /// Serializes an array of `rerun::datatypes::MeshProperties` into an arrow array.
60 static Result<std::shared_ptr<arrow::Array>> to_arrow(
61 const datatypes::MeshProperties* instances, size_t num_instances
62 );
63 };
64} // namespace rerun
Generic collection of elements that are roughly contiguous in memory.
Definition collection.hpp:47
Status outcome object (success or error) returned for fallible operations.
Definition error.hpp:87
All built-in datatypes. See Types in the Rerun manual.
Definition rerun.hpp:72
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:20
Datatype: Optional triangle indices for a mesh.
Definition mesh_properties.hpp:22
std::optional< rerun::Collection< uint32_t > > indices
A flattened array of vertex indices that describe the mesh's triangles.
Definition mesh_properties.hpp:26