Gui: Rework TaskCSysDragger into new Transform Dialog

This commit refactor ViewProviderDragger and TaskCSysDragger to be more
modern and to support selecting TransformOrigin.
This commit is contained in:
Kacper Donat
2024-10-27 18:39:51 +01:00
parent b470f74398
commit 1df3b5be6c
25 changed files with 1785 additions and 389 deletions

View File

@@ -87,6 +87,13 @@ Rotation Rotation::fromNormalVector(const Vector3d& normal)
return Rotation(Vector3d(0, 0, 1), normal);
}
Rotation Rotation::fromEulerAngles(EulerSequence theOrder, double alpha, double beta, double gamma)
{
Rotation rotation;
rotation.setEulerAngles(theOrder, alpha, beta, gamma);
return rotation;
}
const double* Rotation::getValue() const
{
return &this->quat[0];