changeset 1038:692291406f6a

virtual Render
author Alain Mazy <alain@mazy.be>
date Mon, 07 Oct 2019 22:11:46 +0200
parents 7912de3a15e0
children 3a35d8397559
files Framework/Radiography/RadiographyScene.h Framework/Toolbox/AffineTransform2D.h
diffstat 2 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/Framework/Radiography/RadiographyScene.h	Fri Oct 04 17:47:31 2019 +0200
+++ b/Framework/Radiography/RadiographyScene.h	Mon Oct 07 22:11:46 2019 +0200
@@ -263,9 +263,9 @@
 
     Extent2D GetSceneExtent() const;
 
-    void Render(Orthanc::ImageAccessor& buffer,
-                const AffineTransform2D& viewTransform,
-                ImageInterpolation interpolation) const;
+    virtual void Render(Orthanc::ImageAccessor& buffer,
+                        const AffineTransform2D& viewTransform,
+                        ImageInterpolation interpolation) const;
 
     bool LookupLayer(size_t& index /* out */,
                      double x,
--- a/Framework/Toolbox/AffineTransform2D.h	Fri Oct 04 17:47:31 2019 +0200
+++ b/Framework/Toolbox/AffineTransform2D.h	Mon Oct 07 22:11:46 2019 +0200
@@ -77,6 +77,7 @@
                                      const AffineTransform2D& c,
                                      const AffineTransform2D& d);
 
+    // transformations are applied right to left: e is the first transfo applied, a is the last one
     static AffineTransform2D Combine(const AffineTransform2D& a,
                                      const AffineTransform2D& b,
                                      const AffineTransform2D& c,