comparison 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
comparison
equal deleted inserted replaced
573:adc1be326b62 574:911297a277c4
54 54
55 void Apply(Orthanc::ImageAccessor& target, 55 void Apply(Orthanc::ImageAccessor& target,
56 const Orthanc::ImageAccessor& source, 56 const Orthanc::ImageAccessor& source,
57 ImageInterpolation interpolation, 57 ImageInterpolation interpolation,
58 bool clear) const; 58 bool clear) const;
59
60 void ConvertToOpenGLMatrix(float target[16],
61 unsigned int canvasWidth,
62 unsigned int canvasHeight) const;
59 63
60 static AffineTransform2D Invert(const AffineTransform2D& a); 64 static AffineTransform2D Invert(const AffineTransform2D& a);
61 65
62 static AffineTransform2D Combine(const AffineTransform2D& a, 66 static AffineTransform2D Combine(const AffineTransform2D& a,
63 const AffineTransform2D& b); 67 const AffineTransform2D& b);
76 80
77 static AffineTransform2D CreateScaling(double sx, 81 static AffineTransform2D CreateScaling(double sx,
78 double sy); 82 double sy);
79 83
80 static AffineTransform2D CreateRotation(double angle); 84 static AffineTransform2D CreateRotation(double angle);
85
86 static AffineTransform2D CreateOpenGLClipspace(unsigned int canvasWidth,
87 unsigned int canvasHeight);
81 }; 88 };
82 } 89 }