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 "../component_descriptor.hpp"
7#include "../result.hpp"
8
9#include <cstdint>
10#include <memory>
11
12namespace arrow {
13 /// \private
14 template <typename T>
15 class NumericBuilder;
16
17 class Array;
18 class DataType;
19 class UInt8Type;
20 using UInt8Builder = NumericBuilder<UInt8Type>;
21} // namespace arrow
22
23namespace rerun::components {
24 /// **Component**: Filter used when magnifying an image/texture such that a single pixel/texel is displayed as multiple pixels on screen.
25 enum class MagnificationFilter : uint8_t {
26
27 /// Show the nearest pixel value.
28 ///
29 /// This will give a blocky appearance when zooming in.
30 /// Used as default when rendering 2D images.
31 Nearest = 1,
32
33 /// Linearly interpolate the nearest neighbors, creating a smoother look when zooming in.
34 ///
35 /// Used as default for mesh rendering.
36 Linear = 2,
37 };
38} // namespace rerun::components
39
40namespace rerun {
41 template <typename T>
42 struct Loggable;
43
44 /// \private
45 template <>
46 struct Loggable<components::MagnificationFilter> {
47 static constexpr ComponentDescriptor Descriptor = "rerun.components.MagnificationFilter";
48
49 /// Returns the arrow data type this type corresponds to.
50 static const std::shared_ptr<arrow::DataType>& arrow_datatype();
51
52 /// Serializes an array of `rerun::components::MagnificationFilter` into an arrow array.
53 static Result<std::shared_ptr<arrow::Array>> to_arrow(
54 const components::MagnificationFilter* instances, size_t num_instances
55 );
56
57 /// Fills an arrow array builder with an array of this type.
58 static rerun::Error fill_arrow_array_builder(
59 arrow::UInt8Builder* builder, const components::MagnificationFilter* elements,
60 size_t num_elements
61 );
62 };
63} // 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:80
MagnificationFilter
Component: Filter used when magnifying an image/texture such that a single pixel/texel is displayed a...
Definition magnification_filter.hpp:25
@ 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:23