Rerun C++ SDK
Loading...
Searching...
No Matches
eye3d_kind.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/blueprint/components/eye3d_kind.fbs".
3
4#pragma once
5
6#include "../../result.hpp"
7
8#include <cstdint>
9#include <memory>
10
11namespace arrow {
12 /// \private
13 template <typename T>
14 class NumericBuilder;
15
16 class Array;
17 class DataType;
18 class UInt8Type;
19 using UInt8Builder = NumericBuilder<UInt8Type>;
20} // namespace arrow
21
22namespace rerun::blueprint::components {
23 /// **Component**: The kind of the 3D eye to view a scene in a `views::Spatial3DView`.
24 ///
25 /// This is used to specify how the controls of the view react to user input (such as mouse gestures).
26 enum class Eye3DKind : uint8_t {
27
28 /// First person point of view.
29 ///
30 /// The camera perspective as if one is seeing it through the eyes of a person as popularized by first-person games.
31 /// The center of rotation is the position of the eye (the camera).
32 /// Dragging the mouse on the spatial 3D view, will rotation the scene as if one is moving
33 /// their head around.
34 FirstPerson = 1,
35
36 /// Orbital eye.
37 ///
38 /// The center of rotation is located to a center location in front of the eye (it is different from the eye
39 /// location itself), as if the eye was orbiting around the scene.
40 Orbital = 2,
41 };
42} // namespace rerun::blueprint::components
43
44namespace rerun {
45 template <typename T>
46 struct Loggable;
47
48 /// \private
49 template <>
50 struct Loggable<blueprint::components::Eye3DKind> {
51 static constexpr std::string_view ComponentType = "rerun.blueprint.components.Eye3DKind";
52
53 /// Returns the arrow data type this type corresponds to.
54 static const std::shared_ptr<arrow::DataType>& arrow_datatype();
55
56 /// Serializes an array of `rerun::blueprint:: components::Eye3DKind` into an arrow array.
57 static Result<std::shared_ptr<arrow::Array>> to_arrow(
58 const blueprint::components::Eye3DKind* instances, size_t num_instances
59 );
60
61 /// Fills an arrow array builder with an array of this type.
62 static rerun::Error fill_arrow_array_builder(
63 arrow::UInt8Builder* builder, const blueprint::components::Eye3DKind* elements,
64 size_t num_elements
65 );
66 };
67} // namespace rerun
Status outcome object (success or error) returned for fallible operations.
Definition error.hpp:99
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:23