6#include "../collection.hpp"
7#include "../compiler_utils.hpp"
8#include "../components/draw_order.hpp"
9#include "../components/opacity.hpp"
10#include "../components/tensor_data.hpp"
11#include "../data_cell.hpp"
12#include "../indicator_component.hpp"
13#include "../result.hpp"
82 std::optional<rerun::components::Opacity>
opacity;
90 static constexpr const char IndicatorComponentName[] =
"rerun.components.ImageIndicator";
125 template <
typename TElement>
139 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
148 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
156 template <
typename T>
161 struct AsComponents<archetypes::Image> {
163 static Result<std::vector<DataCell>> serialize(
const archetypes::Image& archetype);
Generic collection of elements that are roughly contiguous in memory.
Definition collection.hpp:46
All built-in archetypes. See Types in the Rerun manual.
Definition rerun.hpp:72
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:21
Archetype: A monochrome or color image.
Definition image.hpp:75
Image(rerun::components::TensorData data_)
New depth image from tensor data.
Image with_opacity(rerun::components::Opacity _opacity) &&
Opacity of the image, useful for layering several images.
Definition image.hpp:136
Image(Collection< datatypes::TensorDimension > shape, datatypes::TensorBuffer buffer)
New Image from height/width/channel and tensor buffer.
Definition image.hpp:105
std::optional< rerun::components::DrawOrder > draw_order
An optional floating point value that specifies the 2D drawing order.
Definition image.hpp:87
rerun::components::TensorData data
The image data. Should always be a 2- or 3-dimensional tensor.
Definition image.hpp:77
std::optional< rerun::components::Opacity > opacity
Opacity of the image, useful for layering several images.
Definition image.hpp:82
Image(Collection< datatypes::TensorDimension > shape, const TElement *data_)
New image from dimensions and pointer to image data.
Definition image.hpp:126
Image with_draw_order(rerun::components::DrawOrder _draw_order) &&
An optional floating point value that specifies the 2D drawing order.
Definition image.hpp:145
Component: Draw order of 2D elements.
Definition draw_order.hpp:29
Indicator component used by archetypes when converting them to component lists.
Definition indicator_component.hpp:23
Component: Degree of transparency ranging from 0.0 (fully transparent) to 1.0 (fully opaque).
Definition opacity.hpp:17
Component: An N-dimensional array of numbers.
Definition tensor_data.hpp:27
Datatype: The underlying storage for a Tensor.
Definition tensor_buffer.hpp:114
Datatype: An N-dimensional array of numbers.
Definition tensor_data.hpp:34