Rerun C++ SDK
Loading...
Searching...
No Matches
magnification_filter.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/magnification_filter.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**: Filter used when magnifying an image/texture such that a single pixel/texel is displayed as multiple pixels on screen.
24 enum class MagnificationFilter : uint8_t {
25
26 /// Show the nearest pixel value.
27 ///
28 /// This will give a blocky appearance when zooming in.
29 /// Used as default when rendering 2D images.
30 Nearest = 1,
31
32 /// Linearly interpolate the nearest neighbors, creating a smoother look when zooming in.
33 ///
34 /// Used as default for mesh rendering.
35 Linear = 2,
36 };
37} // namespace rerun::components
38
39namespace rerun {
40 template <typename T>
41 struct Loggable;
42
43 /// \private
44 template <>
45 struct Loggable<components::MagnificationFilter> {
46 static constexpr const char Name[] = "rerun.components.MagnificationFilter";
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::MagnificationFilter` into an arrow array.
52 static Result<std::shared_ptr<arrow::Array>> to_arrow(
53 const components::MagnificationFilter* 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::UInt8Builder* builder, const components::MagnificationFilter* elements,
59 size_t num_elements
60 );
61 };
62} // namespace rerun
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:76
MagnificationFilter
Component: Filter used when magnifying an image/texture such that a single pixel/texel is displayed a...
Definition magnification_filter.hpp:24
@ Linear
Linearly interpolate the nearest neighbors, creating a smoother look when zooming in.
@ Nearest
Show the nearest pixel value.
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:22