diff Framework/Toolbox/AffineTransform2D.h @ 574:911297a277c4

AffineTransform2D::ConvertToOpenGLMatrix()
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 18 Apr 2019 18:06:29 +0200
parents b70e9be013e4
children 919226caca82
line wrap: on
line diff
--- a/Framework/Toolbox/AffineTransform2D.h	Thu Apr 18 17:29:44 2019 +0200
+++ b/Framework/Toolbox/AffineTransform2D.h	Thu Apr 18 18:06:29 2019 +0200
@@ -56,6 +56,10 @@
                const Orthanc::ImageAccessor& source,
                ImageInterpolation interpolation,
                bool clear) const;
+
+    void ConvertToOpenGLMatrix(float target[16],
+                               unsigned int canvasWidth,
+                               unsigned int canvasHeight) const;
     
     static AffineTransform2D Invert(const AffineTransform2D& a);
 
@@ -78,5 +82,8 @@
                                            double sy);
     
     static AffineTransform2D CreateRotation(double angle);
+
+    static AffineTransform2D CreateOpenGLClipspace(unsigned int canvasWidth,
+                                                   unsigned int canvasHeight);
   };
 }