6#include "../collection.hpp"
7#include "../compiler_utils.hpp"
8#include "../components/draw_order.hpp"
9#include "../components/tensor_data.hpp"
10#include "../data_cell.hpp"
11#include "../indicator_component.hpp"
12#include "../result.hpp"
76 static constexpr const char IndicatorComponentName[] =
"rerun.components.ImageIndicator";
111 template <
typename TElement>
125 RERUN_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
138 template <
typename T>
143 struct AsComponents<archetypes::Image> {
145 static Result<std::vector<DataCell>> serialize(
const archetypes::Image& archetype);
Generic collection of elements that are roughly contiguous in memory.
Definition collection.hpp:47
All built-in archetypes. See Types in the Rerun manual.
Definition rerun.hpp:66
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:20
Archetype: A monochrome or color image.
Definition image.hpp:66
Image(rerun::components::TensorData data_)
New depth image from tensor data.
Image(Collection< datatypes::TensorDimension > shape, datatypes::TensorBuffer buffer)
New Image from height/width/channel and tensor buffer.
Definition image.hpp:91
std::optional< rerun::components::DrawOrder > draw_order
An optional floating point value that specifies the 2D drawing order.
Definition image.hpp:73
rerun::components::TensorData data
The image data. Should always be a rank-2 or rank-3 tensor.
Definition image.hpp:68
size_t num_instances() const
Returns the number of primary instances of this archetype.
Definition image.hpp:129
Image(Collection< datatypes::TensorDimension > shape, const TElement *data_)
New image from dimensions and pointer to image data.
Definition image.hpp:112
Image with_draw_order(rerun::components::DrawOrder _draw_order) &&
An optional floating point value that specifies the 2D drawing order.
Definition image.hpp:122
Component: Draw order used for the display order of 2D elements.
Definition draw_order.hpp:30
Indicator component used by archetypes when converting them to component lists.
Definition indicator_component.hpp:23
Component: A multi-dimensional Tensor with optionally named arguments.
Definition tensor_data.hpp:21
Datatype: The underlying storage for a Tensor.
Definition tensor_buffer.hpp:93
Datatype: A multi-dimensional Tensor of data.
Definition tensor_data.hpp:29