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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user