comparison Framework/Toolbox/AffineTransform2D.cpp @ 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 7912de3a15e0
children 2d8ab34c8c91
comparison
equal deleted inserted replaced
1258:9c20ae049669 1259:69177b10e2b9
244 t.matrix_(1, 1) = cosine; 244 t.matrix_(1, 1) = cosine;
245 245
246 return t; 246 return t;
247 } 247 }
248 248
249 AffineTransform2D AffineTransform2D::CreateRotation(double angle, // CW rotation
250 double cx, // rotation center
251 double cy) // rotation center
252 {
253 return Combine(
254 CreateOffset(cx, cy),
255 CreateRotation(angle),
256 CreateOffset(-cx, -cy)
257 );
258 }
249 259
250 AffineTransform2D AffineTransform2D::CreateOpenGLClipspace(unsigned int canvasWidth, 260 AffineTransform2D AffineTransform2D::CreateOpenGLClipspace(unsigned int canvasWidth,
251 unsigned int canvasHeight) 261 unsigned int canvasHeight)
252 { 262 {
253 AffineTransform2D t; 263 AffineTransform2D t;