6#include "../../collection.hpp"
7#include "../../component_batch.hpp"
8#include "../../component_column.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 {
41 std::optional<ComponentBatch>
gamma;
44 static constexpr const char IndicatorComponentName[] =
45 "rerun.blueprint.components.TensorScalarMappingIndicator";
51 "rerun.blueprint.archetypes.TensorScalarMapping";
92 return std::move(*
this);
99 return std::move(*
this);
111 return std::move(*
this);
135 template <
typename T>
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
Colormap
Component: Colormap for mapping scalar values within a given range to a color.
Definition colormap.hpp:29
MagnificationFilter
Component: Filter used when magnifying an image/texture such that a single pixel/texel is displayed a...
Definition magnification_filter.hpp:25
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:23
static Result< ComponentBatch > from_loggable(const rerun::Collection< T > &components, const ComponentDescriptor &descriptor=rerun::Loggable< T >::Descriptor)
Creates a new component batch from a collection of component instances.
Definition component_batch.hpp:46
A ComponentDescriptor fully describes the semantics of a column of data.
Definition component_descriptor.hpp:14
The Loggable trait is used by all built-in implementation of rerun::AsComponents to serialize a colle...
Definition loggable.hpp:11
Archetype: Configures how tensor scalars are mapped to color.
Definition tensor_scalar_mapping.hpp:25
TensorScalarMapping with_colormap(const rerun::components::Colormap &_colormap) &&
How scalar values map to colors.
Definition tensor_scalar_mapping.hpp:96
TensorScalarMapping with_gamma(const rerun::components::GammaCorrection &_gamma) &&
Gamma exponent applied to normalized values before mapping to color.
Definition tensor_scalar_mapping.hpp:109
std::optional< ComponentBatch > gamma
Gamma exponent applied to normalized values before mapping to color.
Definition tensor_scalar_mapping.hpp:41
TensorScalarMapping with_mag_filter(const rerun::components::MagnificationFilter &_mag_filter) &&
Filter used when zooming in on the tensor.
Definition tensor_scalar_mapping.hpp:87
static constexpr auto Descriptor_colormap
ComponentDescriptor for the colormap field.
Definition tensor_scalar_mapping.hpp:59
static constexpr auto Descriptor_gamma
ComponentDescriptor for the gamma field.
Definition tensor_scalar_mapping.hpp:64
static constexpr const char ArchetypeName[]
The name of the archetype as used in ComponentDescriptors.
Definition tensor_scalar_mapping.hpp:50
static constexpr auto Descriptor_mag_filter
ComponentDescriptor for the mag_filter field.
Definition tensor_scalar_mapping.hpp:54
static TensorScalarMapping update_fields()
Update only some specific fields of a TensorScalarMapping.
Definition tensor_scalar_mapping.hpp:77
std::optional< ComponentBatch > mag_filter
Filter used when zooming in on the tensor.
Definition tensor_scalar_mapping.hpp:29
static TensorScalarMapping clear_fields()
Clear all the fields of a TensorScalarMapping.
Collection< ComponentColumn > columns(const Collection< uint32_t > &lengths_)
Partitions the component data into multiple sub-batches.
std::optional< ComponentBatch > colormap
How scalar values map to colors.
Definition tensor_scalar_mapping.hpp:32
Collection< ComponentColumn > columns()
Partitions the component data into unit-length sub-batches.
Component: A gamma correction value to be used with a scalar value or color.
Definition gamma_correction.hpp:21
Indicator component used by archetypes when converting them to component lists.
Definition indicator_component.hpp:32