Make gizmos work with translated/zoomed image
Added a new function that inverts the world transform and applies it to a point. This allows the gizmo code to work in it's own space and not need to know is the image has been zoomed or translated.
This commit is contained in:
@@ -93,6 +93,8 @@ public:
|
||||
*/
|
||||
QTransform GenerateWorldTransform();
|
||||
|
||||
QPoint TransformViewerSpaceToGizmoSpace(QPoint pos);
|
||||
|
||||
public slots:
|
||||
/**
|
||||
* @brief Set the transformation matrix to draw with
|
||||
|
||||
Reference in New Issue
Block a user