6#include "../../blueprint/components/tensor_dimension_index_slider.hpp"
7#include "../../collection.hpp"
8#include "../../compiler_utils.hpp"
9#include "../../component_batch.hpp"
10#include "../../components/tensor_dimension_index_selection.hpp"
11#include "../../components/tensor_height_dimension.hpp"
12#include "../../components/tensor_width_dimension.hpp"
13#include "../../indicator_component.hpp"
14#include "../../result.hpp"
21namespace rerun::blueprint::archetypes {
27 std::optional<rerun::components::TensorWidthDimension>
width;
32 std::optional<rerun::components::TensorHeightDimension>
height;
37 std::optional<Collection<rerun::components::TensorDimensionIndexSelection>>
indices;
44 std::optional<Collection<rerun::blueprint::components::TensorDimensionIndexSlider>>
slider;
47 static constexpr const char IndicatorComponentName[] =
48 "rerun.blueprint.components.TensorSliceSelectionIndicator";
61 width = std::move(_width);
63 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
70 height = std::move(_height);
72 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
83 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
94 slider = std::move(_slider);
96 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
104 template <
typename T>
109 struct AsComponents<blueprint::archetypes::TensorSliceSelection> {
Generic collection of elements that are roughly contiguous in memory.
Definition collection.hpp:49
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:23
Archetype: Specifies a 2D slice of a tensor.
Definition tensor_slice_selection.hpp:23
std::optional< rerun::components::TensorWidthDimension > width
Which dimension to map to width.
Definition tensor_slice_selection.hpp:27
std::optional< Collection< rerun::blueprint::components::TensorDimensionIndexSlider > > slider
Any dimension listed here will have a slider for the index.
Definition tensor_slice_selection.hpp:44
std::optional< rerun::components::TensorHeightDimension > height
Which dimension to map to height.
Definition tensor_slice_selection.hpp:32
TensorSliceSelection with_width(rerun::components::TensorWidthDimension _width) &&
Which dimension to map to width.
Definition tensor_slice_selection.hpp:60
TensorSliceSelection with_slider(Collection< rerun::blueprint::components::TensorDimensionIndexSlider > _slider) &&
Any dimension listed here will have a slider for the index.
Definition tensor_slice_selection.hpp:91
TensorSliceSelection with_height(rerun::components::TensorHeightDimension _height) &&
Which dimension to map to height.
Definition tensor_slice_selection.hpp:69
TensorSliceSelection with_indices(Collection< rerun::components::TensorDimensionIndexSelection > _indices) &&
Selected indices for all other dimensions.
Definition tensor_slice_selection.hpp:78
std::optional< Collection< rerun::components::TensorDimensionIndexSelection > > indices
Selected indices for all other dimensions.
Definition tensor_slice_selection.hpp:37
Indicator component used by archetypes when converting them to component lists.
Definition indicator_component.hpp:32
Component: Specifies which dimension to use for height.
Definition tensor_height_dimension.hpp:15
Component: Specifies which dimension to use for width.
Definition tensor_width_dimension.hpp:15