6#include "../collection.hpp"
7#include "../component_batch.hpp"
8#include "../component_column.hpp"
9#include "../components/color.hpp"
10#include "../components/colormap.hpp"
11#include "../components/opacity.hpp"
12#include "../components/rotation_axis_angle.hpp"
13#include "../components/rotation_quat.hpp"
14#include "../components/translation3d.hpp"
15#include "../components/value_range.hpp"
16#include "../components/voxel_index.hpp"
17#include "../components/voxel_size.hpp"
18#include "../components/voxel_value.hpp"
19#include "../result.hpp"
99 std::optional<ComponentBatch>
values;
146 static constexpr const char ArchetypeName[] =
"rerun.archetypes.VoxelGridMap";
232 return std::move(*
this);
242 return std::move(*
this);
254 return std::move(*
this);
262 return std::move(*
this);
270 return std::move(*
this);
282 return std::move(*
this);
294 return std::move(*
this);
310 return std::move(*
this);
323 return std::move(*
this);
333 return std::move(*
this);
345 return std::move(*
this);
353 return std::move(*
this);
362 return std::move(*
this);
371 return std::move(*
this);
383 return std::move(*
this);
392 return std::move(*
this);
403 return std::move(*
this);
427 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
All built-in archetypes. See Types in the Rerun manual.
Definition rerun.hpp:87
Colormap
Component: Colormap for mapping scalar values within a given range to a color.
Definition colormap.hpp:28
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:23
Arrow-encoded data of a single batch of components together with a component descriptor.
Definition component_batch.hpp:28
static Result< ComponentBatch > from_loggable(const rerun::Collection< T > &components, const ComponentDescriptor &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:16
The Loggable trait is used by all built-in implementation of rerun::AsComponents to serialize a colle...
Definition loggable.hpp:11
Archetype: A sparse 3D voxel grid map with grid indices and voxel dimensions.
Definition voxel_grid_map.hpp:86
static constexpr auto Descriptor_voxel_size
ComponentDescriptor for the voxel_size field.
Definition voxel_grid_map.hpp:154
VoxelGridMap with_many_colormap(const Collection< rerun::components::Colormap > &_colormap) &&
This method makes it possible to pack multiple colormap in a single component batch.
Definition voxel_grid_map.hpp:399
VoxelGridMap with_many_quaternion(const Collection< rerun::components::RotationQuat > &_quaternion) &&
This method makes it possible to pack multiple quaternion in a single component batch.
Definition voxel_grid_map.hpp:340
VoxelGridMap with_colormap(const rerun::components::Colormap &_colormap) &&
Colormap to use when values are present and explicit colors are not provided.
Definition voxel_grid_map.hpp:389
static constexpr auto Descriptor_translation
ComponentDescriptor for the translation field.
Definition voxel_grid_map.hpp:168
std::optional< ComponentBatch > translation
Translation of the minimum corner of voxel [0, 0, 0].
Definition voxel_grid_map.hpp:112
std::optional< ComponentBatch > value_range
Scalar value range for color-mapping.
Definition voxel_grid_map.hpp:137
std::optional< ComponentBatch > voxel_indices
Indices of the voxels within the grid volume.
Definition voxel_grid_map.hpp:88
VoxelGridMap with_many_rotation_axis_angle(const Collection< rerun::components::RotationAxisAngle > &_rotation_axis_angle) &&
This method makes it possible to pack multiple rotation_axis_angle in a single component batch.
Definition voxel_grid_map.hpp:317
std::optional< ComponentBatch > voxel_size
The scene-unit dimensions of a single voxel cell.
Definition voxel_grid_map.hpp:94
VoxelGridMap with_translation(const rerun::components::Translation3D &_translation) &&
Translation of the minimum corner of voxel [0, 0, 0].
Definition voxel_grid_map.hpp:279
static constexpr const char ArchetypeName[]
The name of the archetype as used in ComponentDescriptors.
Definition voxel_grid_map.hpp:146
VoxelGridMap with_quaternion(const rerun::components::RotationQuat &_quaternion) &&
Rotation of the grid via quaternion.
Definition voxel_grid_map.hpp:330
VoxelGridMap with_colors(const Collection< rerun::components::Color > &_colors) &&
Optional colors for each voxel.
Definition voxel_grid_map.hpp:268
static constexpr auto Descriptor_colormap
ComponentDescriptor for the colormap field.
Definition voxel_grid_map.hpp:193
static constexpr auto Descriptor_values
ComponentDescriptor for the values field.
Definition voxel_grid_map.hpp:159
std::optional< ComponentBatch > rotation_axis_angle
Rotation of the grid via axis + angle.
Definition voxel_grid_map.hpp:121
VoxelGridMap with_voxel_size(const rerun::components::VoxelSize &_voxel_size) &&
The scene-unit dimensions of a single voxel cell.
Definition voxel_grid_map.hpp:239
static constexpr auto Descriptor_quaternion
ComponentDescriptor for the quaternion field.
Definition voxel_grid_map.hpp:178
VoxelGridMap with_values(const Collection< rerun::components::VoxelValue > &_values) &&
Optional scalar occupancy or value data for each voxel.
Definition voxel_grid_map.hpp:260
VoxelGridMap with_rotation_axis_angle(const rerun::components::RotationAxisAngle &_rotation_axis_angle) &&
Rotation of the grid via axis + angle.
Definition voxel_grid_map.hpp:304
VoxelGridMap with_many_translation(const Collection< rerun::components::Translation3D > &_translation) &&
This method makes it possible to pack multiple translation in a single component batch.
Definition voxel_grid_map.hpp:289
std::optional< ComponentBatch > colors
Optional colors for each voxel.
Definition voxel_grid_map.hpp:104
static constexpr auto Descriptor_value_range
ComponentDescriptor for the value_range field.
Definition voxel_grid_map.hpp:188
Collection< ComponentColumn > columns(const Collection< uint32_t > &lengths_)
Partitions the component data into multiple sub-batches.
std::optional< ComponentBatch > quaternion
Rotation of the grid via quaternion.
Definition voxel_grid_map.hpp:127
static constexpr auto Descriptor_opacity
ComponentDescriptor for the opacity field.
Definition voxel_grid_map.hpp:183
VoxelGridMap with_many_value_range(const Collection< rerun::components::ValueRange > &_value_range) &&
This method makes it possible to pack multiple value_range in a single component batch.
Definition voxel_grid_map.hpp:378
Collection< ComponentColumn > columns()
Partitions the component data into unit-length sub-batches.
VoxelGridMap with_many_opacity(const Collection< rerun::components::Opacity > &_opacity) &&
This method makes it possible to pack multiple opacity in a single component batch.
Definition voxel_grid_map.hpp:360
std::optional< ComponentBatch > values
Optional scalar occupancy or value data for each voxel.
Definition voxel_grid_map.hpp:99
std::optional< ComponentBatch > opacity
Opacity of the voxels after color or colormap application.
Definition voxel_grid_map.hpp:132
VoxelGridMap with_many_voxel_size(const Collection< rerun::components::VoxelSize > &_voxel_size) &&
This method makes it possible to pack multiple voxel_size in a single component batch.
Definition voxel_grid_map.hpp:249
static constexpr auto Descriptor_rotation_axis_angle
ComponentDescriptor for the rotation_axis_angle field.
Definition voxel_grid_map.hpp:173
std::optional< ComponentBatch > colormap
Colormap to use when values are present and explicit colors are not provided.
Definition voxel_grid_map.hpp:142
VoxelGridMap with_voxel_indices(const Collection< rerun::components::VoxelIndex > &_voxel_indices) &&
Indices of the voxels within the grid volume.
Definition voxel_grid_map.hpp:227
static constexpr auto Descriptor_voxel_indices
ComponentDescriptor for the voxel_indices field.
Definition voxel_grid_map.hpp:149
static constexpr auto Descriptor_colors
ComponentDescriptor for the colors field.
Definition voxel_grid_map.hpp:164
static VoxelGridMap update_fields()
Update only some specific fields of a VoxelGridMap.
Definition voxel_grid_map.hpp:219
VoxelGridMap with_opacity(const rerun::components::Opacity &_opacity) &&
Opacity of the voxels after color or colormap application.
Definition voxel_grid_map.hpp:351
VoxelGridMap with_value_range(const rerun::components::ValueRange &_value_range) &&
Scalar value range for color-mapping.
Definition voxel_grid_map.hpp:368
static VoxelGridMap clear_fields()
Clear all the fields of a VoxelGridMap.
Component: Degree of transparency ranging from 0.0 (fully transparent) to 1.0 (fully opaque).
Definition opacity.hpp:17
Component: 3D rotation represented by a rotation around a given axis.
Definition rotation_axis_angle.hpp:17
Component: A 3D rotation expressed as a quaternion.
Definition rotation_quat.hpp:18
Component: A translation vector in 3D space.
Definition translation3d.hpp:15
Component: Range of expected or valid values, specifying a lower and upper bound.
Definition value_range.hpp:18
Component: The scene-unit dimensions of one voxel in a sparse 3D voxel grid.
Definition voxel_size.hpp:18