6#include "../collection.hpp"
7#include "../compiler_utils.hpp"
8#include "../components/depth_meter.hpp"
9#include "../components/draw_order.hpp"
10#include "../components/tensor_data.hpp"
11#include "../data_cell.hpp"
12#include "../indicator_component.hpp"
13#include "../result.hpp"
76 std::optional<rerun::components::DepthMeter>
meter;
84 static constexpr const char IndicatorComponentName[] =
85 "rerun.components.DepthImageIndicator";
120 template <
typename TElement>
133 meter = std::move(_meter);
135 RERUN_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
144 RERUN_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
157 template <
typename T>
162 struct AsComponents<archetypes::DepthImage> {
164 static Result<std::vector<DataCell>> serialize(
const archetypes::DepthImage& 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 depth image.
Definition depth_image.hpp:68
rerun::components::TensorData data
The depth-image data. Should always be a rank-2 tensor.
Definition depth_image.hpp:70
std::optional< rerun::components::DrawOrder > draw_order
An optional floating point value that specifies the 2D drawing order.
Definition depth_image.hpp:81
size_t num_instances() const
Returns the number of primary instances of this archetype.
Definition depth_image.hpp:148
DepthImage(Collection< datatypes::TensorDimension > shape, const TElement *data_)
New depth image from dimensions and pointer to depth image data.
Definition depth_image.hpp:121
DepthImage(Collection< datatypes::TensorDimension > shape, datatypes::TensorBuffer buffer)
New depth image from height/width and tensor buffer.
Definition depth_image.hpp:100
DepthImage(components::TensorData data_)
New depth image from tensor data.
DepthImage with_meter(rerun::components::DepthMeter _meter) &&
An optional floating point value that specifies how long a meter is in the native depth units.
Definition depth_image.hpp:132
std::optional< rerun::components::DepthMeter > meter
An optional floating point value that specifies how long a meter is in the native depth units.
Definition depth_image.hpp:76
DepthImage with_draw_order(rerun::components::DrawOrder _draw_order) &&
An optional floating point value that specifies the 2D drawing order.
Definition depth_image.hpp:141
Component: A component indicating how long a meter is, expressed in native units.
Definition depth_meter.hpp:24
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