Move the world transform code to its own function

It seems like something that could come in handy elsewhere when drawing
stuff to the viewer.
This commit is contained in:
Thomas Wilshaw
2020-06-21 18:33:41 +01:00
parent 61618a9a14
commit 1c6aebdcbe
2 changed files with 29 additions and 18 deletions
+6
View File
@@ -87,6 +87,12 @@ public:
FramePtr last_loaded_buffer() const;
/**
* @brief Return a QTransform that contains all the scale and translation data (inc. mouse drags)
* that can be used to set the world transform for a QPainter.
*/
QTransform GenerateWorldTransform();
public slots:
/**
* @brief Set the transformation matrix to draw with