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"
81 std::optional<Collection<rerun::components::PoseTranslation3D>>
translations;
87 std::optional<Collection<rerun::components::PoseRotationQuat>>
quaternions;
90 std::optional<Collection<rerun::components::PoseScale3D>>
scales;
93 std::optional<Collection<rerun::components::PoseTransformMat3x3>>
mat3x3;
96 static constexpr const char IndicatorComponentName[] =
97 "rerun.components.InstancePoses3DIndicator";
112 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
121 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
130 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
135 scales = std::move(_scales);
137 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
142 mat3x3 = std::move(_mat3x3);
144 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
152 template <
typename T>
157 struct AsComponents<archetypes::InstancePoses3D> {
159 static Result<std::vector<ComponentBatch>> serialize(
160 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:77
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:23
Archetype: One or more transforms between the current entity and its parent.
Definition instance_poses3d.hpp:79
std::optional< Collection< rerun::components::PoseRotationQuat > > quaternions
Rotations via quaternion.
Definition instance_poses3d.hpp:87
std::optional< Collection< rerun::components::PoseTranslation3D > > translations
Translation vectors.
Definition instance_poses3d.hpp:81
std::optional< Collection< rerun::components::PoseRotationAxisAngle > > rotation_axis_angles
Rotations via axis + angle.
Definition instance_poses3d.hpp:84
InstancePoses3D with_mat3x3(Collection< rerun::components::PoseTransformMat3x3 > _mat3x3) &&
3x3 transformation matrices.
Definition instance_poses3d.hpp:141
InstancePoses3D with_translations(Collection< rerun::components::PoseTranslation3D > _translations) &&
Translation vectors.
Definition instance_poses3d.hpp:107
std::optional< Collection< rerun::components::PoseScale3D > > scales
Scaling factors.
Definition instance_poses3d.hpp:90
InstancePoses3D with_quaternions(Collection< rerun::components::PoseRotationQuat > _quaternions) &&
Rotations via quaternion.
Definition instance_poses3d.hpp:125
InstancePoses3D with_rotation_axis_angles(Collection< rerun::components::PoseRotationAxisAngle > _rotation_axis_angles) &&
Rotations via axis + angle.
Definition instance_poses3d.hpp:116
InstancePoses3D with_scales(Collection< rerun::components::PoseScale3D > _scales) &&
Scaling factors.
Definition instance_poses3d.hpp:134
std::optional< Collection< rerun::components::PoseTransformMat3x3 > > mat3x3
3x3 transformation matrices.
Definition instance_poses3d.hpp:93
Indicator component used by archetypes when converting them to component lists.
Definition indicator_component.hpp:32