Mercurial > hg > orthanc-stone
diff Framework/Radiography/RadiographyLayer.cpp @ 1321:d4e6cd35107b
Clarified GetExtent/GetSceneExtent
author | Alain Mazy <alain@mazy.be> |
---|---|
date | Fri, 20 Mar 2020 12:52:13 +0100 |
parents | 398ea4259e65 |
children | a72c2c9af49a |
line wrap: on
line diff
--- a/Framework/Radiography/RadiographyLayer.cpp Mon Mar 02 18:29:50 2020 +0100 +++ b/Framework/Radiography/RadiographyLayer.cpp Fri Mar 20 12:52:13 2020 +0100 @@ -238,8 +238,7 @@ } } - - Extent2D RadiographyLayer::GetExtent() const + Extent2D RadiographyLayer::GetSceneExtent() const { Extent2D extent; @@ -251,6 +250,7 @@ double dwidth = static_cast<double>(width); double dheight = static_cast<double>(height); + // AddToExtent transforms the coordinates from image to scene AddToExtent(extent, dx, dy); AddToExtent(extent, dx + dwidth, dy); AddToExtent(extent, dx, dy + dheight);