6#include "../compiler_utils.hpp"
7#include "../result.hpp"
8#include "rotation3d.hpp"
29 std::optional<rerun::datatypes::Rotation3D>
rotation;
32 std::optional<rerun::datatypes::Scale3D>
scale;
53 RERUN_DISABLE_MAYBE_UNINITIALIZED_PUSH
60 RERUN_DISABLE_MAYBE_UNINITIALIZED_POP
69 const std::optional<Vec3D>& translation_,
const std::optional<Rotation3D>& rotation_,
70 const std::optional<Scale3D>& scale_,
bool from_parent_ =
false
87 const Vec3D& translation_,
const Rotation3D& rotation_,
float uniform_scale,
88 bool from_parent_ =
false
101 const Vec3D& translation_,
const Rotation3D& rotation_,
bool from_parent_ =
false
114 const Vec3D& translation_,
const Scale3D& scale_,
bool from_parent_ =
false
130 const Vec3D& translation_,
float uniform_scale,
bool from_parent_ =
false
134 scale(uniform_scale),
159 const Rotation3D& rotation_,
float uniform_scale,
bool from_parent_ =
false
163 scale(uniform_scale),
202 template <
typename T>
207 struct Loggable<datatypes::TranslationRotationScale3D> {
208 static constexpr const char Name[] =
"rerun.datatypes.TranslationRotationScale3D";
211 static const std::shared_ptr<arrow::DataType>& arrow_datatype();
215 arrow::StructBuilder* builder,
const datatypes::TranslationRotationScale3D* elements,
220 static Result<std::shared_ptr<arrow::Array>> to_arrow(
221 const datatypes::TranslationRotationScale3D* instances,
size_t num_instances
Status outcome object (success or error) returned for fallible operations.
Definition error.hpp:87
All built-in datatypes. 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:20
Datatype: A 3D rotation.
Definition rotation3d.hpp:59
Datatype: 3D scaling factor, part of a transform representation.
Definition scale3d.hpp:58
Datatype: Representation of an affine transform via separate translation, rotation & scale.
Definition translation_rotation_scale3d.hpp:24
TranslationRotationScale3D(const Rotation3D &rotation_, float uniform_scale, bool from_parent_=false)
From rotation & uniform scale.
Definition translation_rotation_scale3d.hpp:158
TranslationRotationScale3D(const Vec3D &translation_, const Rotation3D &rotation_, float uniform_scale, bool from_parent_=false)
Creates a new 3D transform from translation/rotation/uniform-scale.
Definition translation_rotation_scale3d.hpp:86
RERUN_DISABLE_MAYBE_UNINITIALIZED_POP TranslationRotationScale3D(const std::optional< Vec3D > &translation_, const std::optional< Rotation3D > &rotation_, const std::optional< Scale3D > &scale_, bool from_parent_=false)
Creates a new 3D transform from translation/rotation/scale.
Definition translation_rotation_scale3d.hpp:68
std::optional< rerun::datatypes::Scale3D > scale
3D scale, applied first.
Definition translation_rotation_scale3d.hpp:32
TranslationRotationScale3D(const Scale3D &scale_, bool from_parent_=false)
From scale only.
Definition translation_rotation_scale3d.hpp:190
TranslationRotationScale3D(const Vec3D &translation_, float uniform_scale, bool from_parent_=false)
From translation & uniform scale.
Definition translation_rotation_scale3d.hpp:129
TranslationRotationScale3D(const Rotation3D &rotation_, bool from_parent_=false)
From rotation only.
Definition translation_rotation_scale3d.hpp:180
std::optional< rerun::datatypes::Vec3D > translation
3D translation vector, applied last.
Definition translation_rotation_scale3d.hpp:26
TranslationRotationScale3D(const Vec3D &translation_, const Rotation3D &rotation_, bool from_parent_=false)
Creates a new rigid transform (translation & rotation only).
Definition translation_rotation_scale3d.hpp:100
std::optional< rerun::datatypes::Rotation3D > rotation
3D rotation, applied second.
Definition translation_rotation_scale3d.hpp:29
TranslationRotationScale3D(const Rotation3D &rotation_, const Scale3D &scale_, bool from_parent_=false)
From rotation & scale only.
Definition translation_rotation_scale3d.hpp:142
static const TranslationRotationScale3D IDENTITY
Identity transformation.
Definition translation_rotation_scale3d.hpp:47
bool from_parent
If true, this transform is from the parent space to the space where the transform was logged.
Definition translation_rotation_scale3d.hpp:38
TranslationRotationScale3D(const Vec3D &translation_, const Scale3D &scale_, bool from_parent_=false)
From translation & scale only.
Definition translation_rotation_scale3d.hpp:113
TranslationRotationScale3D(const Vec3D &translation_, bool from_parent_=false)
From translation only.
Definition translation_rotation_scale3d.hpp:170
Datatype: A vector in 3D space.
Definition vec3d.hpp:20