Rebel Fork Framework
Urho3D::TransformGizmo Class Reference

Utility class for gizmo manipulation. It's okay to recreate this class on every frame. More...

#include <Urho3D/SystemUI/TransformGizmo.h>

Public Member Functions

 TransformGizmo (Camera *camera)
 Setup gizmo for main viewport.
 
 TransformGizmo (Camera *camera, const Rect &viewportRect)
 Setup gizmo for current window rectangle.
 
ea::optional< Matrix4ManipulateTransform (Matrix4 &transform, TransformGizmoOperation op, TransformGizmoAxes axes, bool local, const Vector3 &snap) const
 Manipulate transform. Returns delta matrix in world space.
 
ea::optional< Vector3ManipulatePosition (const Matrix4 &transform, TransformGizmoAxes axes, bool local, const Vector3 &snap) const
 Manipulate position. Returns delta position in world space.
 
ea::optional< QuaternionManipulateRotation (const Matrix4 &transform, TransformGizmoAxes axes, bool local, float snap) const
 Manipulate rotation. Returns delta rotation in world space.
 
ea::optional< Vector3ManipulateScale (const Matrix4 &transform, TransformGizmoAxes axes, bool local, float snap) const
 Manipulate scale. Returns multiplicative delta scale in local space.
 

Private Member Functions

 TransformGizmo (Camera *camera, bool isMainViewport, const Rect &viewportRect)
 
void PrepareToManipulate () const
 

Private Attributes

Camera *const camera_ {}
 
const Matrix4 internalViewMatrix_
 
const Matrix4 internalProjMatrix_
 
const bool isMainViewport_ {}
 
const Rect viewportRect_
 

Static Private Attributes

static Matrix4 internalTransformMatrix
 

Detailed Description

Utility class for gizmo manipulation. It's okay to recreate this class on every frame.


The documentation for this class was generated from the following files: