diff Framework/Toolbox/AffineTransform2D.h @ 1259:69177b10e2b9

various fixes for RadiographyScene: support text layers outside the dicom layer, fix background in this case + extract dicom from rendered scene
author Alain Mazy <alain@mazy.be>
date Tue, 21 Jan 2020 16:52:37 +0100
parents b5dec783ba08
children 2d8ab34c8c91
line wrap: on
line diff
--- a/Framework/Toolbox/AffineTransform2D.h	Tue Jan 14 15:22:10 2020 +0100
+++ b/Framework/Toolbox/AffineTransform2D.h	Tue Jan 21 16:52:37 2020 +0100
@@ -90,8 +90,12 @@
 
     static AffineTransform2D CreateScaling(double sx,
                                            double sy);
-    
-    static AffineTransform2D CreateRotation(double angle);
+
+    static AffineTransform2D CreateRotation(double angle); // CW rotation in radians
+
+    static AffineTransform2D CreateRotation(double angle, // CW rotation in radians
+                                            double cx,    // rotation center
+                                            double cy);   // rotation center
 
     static AffineTransform2D CreateOpenGLClipspace(unsigned int canvasWidth,
                                                    unsigned int canvasHeight);