6#include "../collection.hpp"
7#include "../component_batch.hpp"
8#include "../component_column.hpp"
9#include "../components/color.hpp"
10#include "../components/position3d.hpp"
11#include "../components/rotation_quat.hpp"
12#include "../components/scale3d.hpp"
13#include "../components/spherical_harmonics3rgb.hpp"
14#include "../components/spherical_harmonics_degree.hpp"
15#include "../result.hpp"
128 static constexpr const char ArchetypeName[] =
"rerun.archetypes.GaussianSplats3D";
157 ArchetypeName,
"GaussianSplats3D:spherical_harmonics_degree",
170 .value_or_throw()) {}
184 return std::move(*
this);
190 return std::move(*
this);
199 return std::move(*
this);
208 return std::move(*
this);
218 return std::move(*
this);
229 _spherical_harmonics_degree,
233 return std::move(*
this);
242 _spherical_harmonics_degree
245 _spherical_harmonics_degree,
249 return std::move(*
this);
273 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
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: 3D gaussian splats, e.g.
Definition gaussian_splats3d.hpp:101
GaussianSplats3D with_centers(const Collection< rerun::components::Position3D > &_centers) &&
The centers (means) of the gaussians.
Definition gaussian_splats3d.hpp:181
static GaussianSplats3D update_fields()
Update only some specific fields of a GaussianSplats3D.
Definition gaussian_splats3d.hpp:173
std::optional< ComponentBatch > centers
The centers (means) of the gaussians.
Definition gaussian_splats3d.hpp:103
std::optional< ComponentBatch > colors
The base colors and opacities of the gaussians.
Definition gaussian_splats3d.hpp:115
std::optional< ComponentBatch > sh_coefficients
Higher-order spherical harmonics coefficients for view-dependent color.
Definition gaussian_splats3d.hpp:118
GaussianSplats3D with_colors(const Collection< rerun::components::Color > &_colors) &&
The base colors and opacities of the gaussians.
Definition gaussian_splats3d.hpp:206
std::optional< ComponentBatch > spherical_harmonics_degree
The highest spherical harmonics degree to evaluate when rendering, 0-3.
Definition gaussian_splats3d.hpp:124
static constexpr const char ArchetypeName[]
The name of the archetype as used in ComponentDescriptors.
Definition gaussian_splats3d.hpp:128
static constexpr auto Descriptor_sh_coefficients
ComponentDescriptor for the sh_coefficients field.
Definition gaussian_splats3d.hpp:151
std::optional< ComponentBatch > scales
Per-axis standard deviations of the gaussians, in scene units.
Definition gaussian_splats3d.hpp:106
GaussianSplats3D with_spherical_harmonics_degree(const rerun::components::SphericalHarmonicsDegree &_spherical_harmonics_degree) &&
The highest spherical harmonics degree to evaluate when rendering, 0-3.
Definition gaussian_splats3d.hpp:225
static constexpr auto Descriptor_colors
ComponentDescriptor for the colors field.
Definition gaussian_splats3d.hpp:146
Collection< ComponentColumn > columns()
Partitions the component data into unit-length sub-batches.
static constexpr auto Descriptor_quaternions
ComponentDescriptor for the quaternions field.
Definition gaussian_splats3d.hpp:141
static constexpr auto Descriptor_spherical_harmonics_degree
ComponentDescriptor for the spherical_harmonics_degree field.
Definition gaussian_splats3d.hpp:156
GaussianSplats3D with_sh_coefficients(const Collection< rerun::components::SphericalHarmonics3Rgb > &_sh_coefficients) &&
Higher-order spherical harmonics coefficients for view-dependent color.
Definition gaussian_splats3d.hpp:212
GaussianSplats3D with_scales(const Collection< rerun::components::Scale3D > &_scales) &&
Per-axis standard deviations of the gaussians, in scene units.
Definition gaussian_splats3d.hpp:188
static GaussianSplats3D clear_fields()
Clear all the fields of a GaussianSplats3D.
static constexpr auto Descriptor_centers
ComponentDescriptor for the centers field.
Definition gaussian_splats3d.hpp:131
Collection< ComponentColumn > columns(const Collection< uint32_t > &lengths_)
Partitions the component data into multiple sub-batches.
GaussianSplats3D with_many_spherical_harmonics_degree(const Collection< rerun::components::SphericalHarmonicsDegree > &_spherical_harmonics_degree) &&
This method makes it possible to pack multiple spherical_harmonics_degree in a single component batch...
Definition gaussian_splats3d.hpp:240
static constexpr auto Descriptor_scales
ComponentDescriptor for the scales field.
Definition gaussian_splats3d.hpp:136
GaussianSplats3D with_quaternions(const Collection< rerun::components::RotationQuat > &_quaternions) &&
The orientations of the gaussians.
Definition gaussian_splats3d.hpp:194
std::optional< ComponentBatch > quaternions
The orientations of the gaussians.
Definition gaussian_splats3d.hpp:109
Component: The highest spherical harmonics degree to evaluate when rendering, 0-3.
Definition spherical_harmonics_degree.hpp:26