6#include "../collection.hpp"
7#include "../compiler_utils.hpp"
8#include "../component_batch.hpp"
9#include "../components/pose_rotation_axis_angle.hpp"
10#include "../components/pose_rotation_quat.hpp"
11#include "../components/pose_scale3d.hpp"
12#include "../components/pose_transform_mat3x3.hpp"
13#include "../components/pose_translation3d.hpp"
14#include "../indicator_component.hpp"
15#include "../result.hpp"
79 std::optional<Collection<rerun::components::PoseTranslation3D>>
translations;
85 std::optional<Collection<rerun::components::PoseRotationQuat>>
quaternions;
88 std::optional<Collection<rerun::components::PoseScale3D>>
scales;
91 std::optional<Collection<rerun::components::PoseTransformMat3x3>>
mat3x3;
94 static constexpr const char IndicatorComponentName[] =
95 "rerun.components.InstancePoses3DIndicator";
110 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
119 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
128 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
133 scales = std::move(_scales);
135 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
140 mat3x3 = std::move(_mat3x3);
142 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
150 template <
typename T>
155 struct AsComponents<archetypes::InstancePoses3D> {
157 static Result<std::vector<ComponentBatch>> serialize(
158 const archetypes::InstancePoses3D& archetype
Generic collection of elements that are roughly contiguous in memory.
Definition collection.hpp:49
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:22
Archetype: One or more transforms between the current entity and its parent.
Definition instance_poses3d.hpp:77
std::optional< Collection< rerun::components::PoseRotationQuat > > quaternions
Rotations via quaternion.
Definition instance_poses3d.hpp:85
std::optional< Collection< rerun::components::PoseTranslation3D > > translations
Translation vectors.
Definition instance_poses3d.hpp:79
std::optional< Collection< rerun::components::PoseRotationAxisAngle > > rotation_axis_angles
Rotations via axis + angle.
Definition instance_poses3d.hpp:82
InstancePoses3D with_mat3x3(Collection< rerun::components::PoseTransformMat3x3 > _mat3x3) &&
3x3 transformation matrices.
Definition instance_poses3d.hpp:139
InstancePoses3D with_translations(Collection< rerun::components::PoseTranslation3D > _translations) &&
Translation vectors.
Definition instance_poses3d.hpp:105
std::optional< Collection< rerun::components::PoseScale3D > > scales
Scaling factors.
Definition instance_poses3d.hpp:88
InstancePoses3D with_quaternions(Collection< rerun::components::PoseRotationQuat > _quaternions) &&
Rotations via quaternion.
Definition instance_poses3d.hpp:123
InstancePoses3D with_rotation_axis_angles(Collection< rerun::components::PoseRotationAxisAngle > _rotation_axis_angles) &&
Rotations via axis + angle.
Definition instance_poses3d.hpp:114
InstancePoses3D with_scales(Collection< rerun::components::PoseScale3D > _scales) &&
Scaling factors.
Definition instance_poses3d.hpp:132
std::optional< Collection< rerun::components::PoseTransformMat3x3 > > mat3x3
3x3 transformation matrices.
Definition instance_poses3d.hpp:91
Indicator component used by archetypes when converting them to component lists.
Definition indicator_component.hpp:30