Rerun C++ SDK
Loading...
Searching...
No Matches
interpolation_mode.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_sdk_types/definitions/rerun/components/interpolation_mode.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::components {
23 /// **Component**: Specifies how values between data points are interpolated in time series.
24 enum class InterpolationMode : uint8_t {
25
26 /// Connect data points with straight line segments.
27 Linear = 1,
28
29 /// Hold the previous value until the next data point, then jump.
30 ///
31 /// The step occurs at the end of the interval.
32 StepAfter = 2,
33
34 /// Jump to the new value immediately, then hold until the next data point.
35 ///
36 /// The step occurs at the beginning of the interval.
37 StepBefore = 3,
38
39 /// Hold the previous value until the midpoint between data points, then jump to the new value.
40 ///
41 /// The step occurs at the midpoint of the interval.
42 StepMid = 4,
43 };
44} // namespace rerun::components
45
46namespace rerun {
47 template <typename T>
48 struct Loggable;
49
50 /// \private
51 template <>
52 struct Loggable<components::InterpolationMode> {
53 static constexpr std::string_view ComponentType = "rerun.components.InterpolationMode";
54
55 /// Returns the arrow data type this type corresponds to.
56 static const std::shared_ptr<arrow::DataType>& arrow_datatype();
57
58 /// Serializes an array of `rerun::components::InterpolationMode` into an arrow array.
59 static Result<std::shared_ptr<arrow::Array>> to_arrow(
60 const components::InterpolationMode* instances, size_t num_instances
61 );
62
63 /// Fills an arrow array builder with an array of this type.
64 static rerun::Error fill_arrow_array_builder(
65 arrow::UInt8Builder* builder, const components::InterpolationMode* elements,
66 size_t num_elements
67 );
68 };
69} // namespace rerun
Status outcome object (success or error) returned for fallible operations.
Definition error.hpp:103
All built-in components. See Types in the Rerun manual.
Definition rerun.hpp:79
InterpolationMode
Component: Specifies how values between data points are interpolated in time series.
Definition interpolation_mode.hpp:24
@ Linear
Connect data points with straight line segments.
@ StepBefore
Jump to the new value immediately, then hold until the next data point.
@ StepAfter
Hold the previous value until the next data point, then jump.
@ StepMid
Hold the previous value until the midpoint between data points, then jump to the new value.
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:23