Rerun C++ SDK
Loading...
Searching...
No Matches
tensor_view_fit.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/archetypes/tensor_view_fit.fbs".
3
4#pragma once
5
6#include "../../blueprint/components/view_fit.hpp"
7#include "../../collection.hpp"
8#include "../../compiler_utils.hpp"
9#include "../../component_batch.hpp"
10#include "../../indicator_component.hpp"
11#include "../../result.hpp"
12
13#include <cstdint>
14#include <optional>
15#include <utility>
16#include <vector>
17
18namespace rerun::blueprint::archetypes {
19 /// **Archetype**: Configures how a selected tensor slice is shown on screen.
21 /// How the image is scaled to fit the view.
22 std::optional<rerun::blueprint::components::ViewFit> scaling;
23
24 public:
25 static constexpr const char IndicatorComponentName[] =
26 "rerun.blueprint.components.TensorViewFitIndicator";
27
28 /// Indicator component, used to identify the archetype when converting to a list of components.
30
31 public:
32 TensorViewFit() = default;
33 TensorViewFit(TensorViewFit&& other) = default;
34
35 /// How the image is scaled to fit the view.
36 TensorViewFit with_scaling(rerun::blueprint::components::ViewFit _scaling) && {
37 scaling = std::move(_scaling);
38 // See: https://github.com/rerun-io/rerun/issues/4027
39 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(return std::move(*this);)
40 }
41 };
42
43} // namespace rerun::blueprint::archetypes
44
45namespace rerun {
46 /// \private
47 template <typename T>
48 struct AsComponents;
49
50 /// \private
51 template <>
52 struct AsComponents<blueprint::archetypes::TensorViewFit> {
53 /// Serialize all set component batches.
54 static Result<std::vector<ComponentBatch>> serialize(
56 );
57 };
58} // namespace rerun
A class for representing either a usable value, or an error.
Definition result.hpp:14
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:22
Archetype: Configures how a selected tensor slice is shown on screen.
Definition tensor_view_fit.hpp:20
std::optional< rerun::blueprint::components::ViewFit > scaling
How the image is scaled to fit the view.
Definition tensor_view_fit.hpp:22
TensorViewFit with_scaling(rerun::blueprint::components::ViewFit _scaling) &&
How the image is scaled to fit the view.
Definition tensor_view_fit.hpp:36
Indicator component used by archetypes when converting them to component lists.
Definition indicator_component.hpp:30