6#include "../../collection.hpp"
7#include "../../compiler_utils.hpp"
8#include "../../component_batch.hpp"
9#include "../../components/colormap.hpp"
10#include "../../components/gamma_correction.hpp"
11#include "../../components/magnification_filter.hpp"
12#include "../../indicator_component.hpp"
13#include "../../result.hpp"
20namespace rerun::blueprint::archetypes {
26 std::optional<rerun::components::MagnificationFilter>
mag_filter;
29 std::optional<rerun::components::Colormap>
colormap;
38 std::optional<rerun::components::GammaCorrection>
gamma;
41 static constexpr const char IndicatorComponentName[] =
42 "rerun.blueprint.components.TensorScalarMappingIndicator";
57 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
64 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
75 gamma = std::move(_gamma);
77 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
90 struct AsComponents<blueprint::archetypes::TensorScalarMapping> {
A class for representing either a usable value, or an error.
Definition result.hpp:14
Colormap
Component: Colormap for mapping scalar values within a given range to a color.
Definition colormap.hpp:28
MagnificationFilter
Component: Filter used when magnifying an image/texture such that a single pixel/texel is displayed a...
Definition magnification_filter.hpp:24
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:22
Archetype: Configures how tensor scalars are mapped to color.
Definition tensor_scalar_mapping.hpp:22
std::optional< rerun::components::Colormap > colormap
How scalar values map to colors.
Definition tensor_scalar_mapping.hpp:29
TensorScalarMapping with_gamma(rerun::components::GammaCorrection _gamma) &&
Gamma exponent applied to normalized values before mapping to color.
Definition tensor_scalar_mapping.hpp:74
TensorScalarMapping with_colormap(rerun::components::Colormap _colormap) &&
How scalar values map to colors.
Definition tensor_scalar_mapping.hpp:61
TensorScalarMapping with_mag_filter(rerun::components::MagnificationFilter _mag_filter) &&
Filter used when zooming in on the tensor.
Definition tensor_scalar_mapping.hpp:54
std::optional< rerun::components::GammaCorrection > gamma
Gamma exponent applied to normalized values before mapping to color.
Definition tensor_scalar_mapping.hpp:38
std::optional< rerun::components::MagnificationFilter > mag_filter
Filter used when zooming in on the tensor.
Definition tensor_scalar_mapping.hpp:26
Component: A gamma correction value to be used with a scalar value or color.
Definition gamma_correction.hpp:20
Indicator component used by archetypes when converting them to component lists.
Definition indicator_component.hpp:30