diff Framework/Outputs/InMemoryTiledImage.h @ 217:20bc074ec19a

Viewer can display DICOM pyramids whose tile sizes vary across levels
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 12 Jan 2021 14:24:18 +0100
parents c35a3a0627b9
children 49f647ed1b4c
line wrap: on
line diff
--- a/Framework/Outputs/InMemoryTiledImage.h	Tue Jan 12 10:21:36 2021 +0100
+++ b/Framework/Outputs/InMemoryTiledImage.h	Tue Jan 12 14:24:18 2021 +0100
@@ -69,6 +69,7 @@
 
     virtual unsigned int GetLevelHeight(unsigned int level) const ORTHANC_OVERRIDE;
 
+    // From IPyramidWriter (if used as an output)
     virtual unsigned int GetTileWidth() const ORTHANC_OVERRIDE
     {
       return tileWidth_;
@@ -79,6 +80,17 @@
       return tileHeight_;
     }
 
+    // From ITiledPyramid (if used as an input)
+    virtual unsigned int GetTileWidth(unsigned int level) const ORTHANC_OVERRIDE
+    {
+      return tileWidth_;
+    }
+
+    virtual unsigned int GetTileHeight(unsigned int level) const ORTHANC_OVERRIDE
+    {
+      return tileHeight_;
+    }
+
     virtual bool ReadRawTile(std::string& tile,
                              ImageCompression& compression,
                              unsigned int level,