6#include "../collection.hpp"
7#include "../compiler_utils.hpp"
8#include "../component_batch.hpp"
9#include "../component_column.hpp"
10#include "../components/axis_length.hpp"
11#include "../components/rotation_axis_angle.hpp"
12#include "../components/rotation_quat.hpp"
13#include "../components/scale3d.hpp"
14#include "../components/transform_mat3x3.hpp"
15#include "../components/transform_relation.hpp"
16#include "../components/translation3d.hpp"
17#include "../indicator_component.hpp"
18#include "../rerun_sdk_export.hpp"
19#include "../result.hpp"
20#include "../rotation3d.hpp"
314 std::optional<ComponentBatch>
scale;
329 static constexpr const char IndicatorComponentName[] =
330 "rerun.components.Transform3DIndicator";
335 static constexpr const char ArchetypeName[] =
"rerun.archetypes.Transform3D";
394 bool from_parent =
false
531 float uniform_scale,
bool from_parent =
false
533 :
Transform3D(translation_, rotation, components::Scale3D(uniform_scale), from_parent) {
570 bool from_parent =
false
599 bool from_parent =
false
630 bool from_parent =
false
632 :
Transform3D(translation_, components::Scale3D(uniform_scale), from_parent) {}
660 :
Transform3D(rotation, components::Scale3D(uniform_scale), from_parent) {}
734 if (rotation.axis_angle.has_value()) {
737 if (rotation.quaternion.has_value()) {
740 return std::move(*
this);
764 return std::move(*
this);
776 return std::move(*
this);
786 return std::move(*
this);
799 return std::move(*
this);
806 return std::move(*
this);
818 return std::move(*
this);
824 return std::move(*
this);
833 return std::move(*
this);
839 return std::move(*
this);
849 return std::move(*
this);
856 return std::move(*
this);
868 return std::move(*
this);
878 return std::move(*
this);
890 return std::move(*
this);
914 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:76
TransformRelation
Component: Specifies relation a spatial transform describes.
Definition transform_relation.hpp:25
@ ChildFromParent
The transform describes how to transform into the child entity's space.
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:23
static Result< ComponentBatch > from_loggable(const rerun::Collection< T > &components, const ComponentDescriptor &descriptor=rerun::Loggable< T >::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:14
The Loggable trait is used by all built-in implementation of rerun::AsComponents to serialize a colle...
Definition loggable.hpp:11
Utility for representing a single 3D rotation, agnostic to the underlying representation.
Definition rotation3d.hpp:14
Component: The length of an axis in local units of the space.
Definition axis_length.hpp:15
Indicator component used by archetypes when converting them to component lists.
Definition indicator_component.hpp:32
Component: 3D rotation represented by a rotation around a given axis.
Definition rotation_axis_angle.hpp:18
Component: A 3D rotation expressed as a quaternion.
Definition rotation_quat.hpp:19
Component: A 3D scale factor.
Definition scale3d.hpp:20
Component: A translation vector in 3D space.
Definition translation3d.hpp:16
Datatype: A vector in 3D space.
Definition vec3d.hpp:21