diff Framework/DicomizerParameters.cpp @ 298:fa734a851551

New option: "tiff-alignment" to control deep zoom of plain TIFF over IIIF
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 18 Jul 2023 08:19:16 +0200
parents 20a730889ae2
children 7020852a8fa9
line wrap: on
line diff
--- a/Framework/DicomizerParameters.cpp	Tue Jul 18 07:13:36 2023 +0200
+++ b/Framework/DicomizerParameters.cpp	Tue Jul 18 08:19:16 2023 +0200
@@ -73,7 +73,8 @@
     opticalPath_(OpticalPath_Brightfield),
     isCytomineSource_(false),
     cytomineImageInstanceId_(-1),
-    cytomineCompression_(ImageCompression_Png)
+    cytomineCompression_(ImageCompression_Png),
+    tiffAlignment_(1)
   {
     backgroundColor_[0] = 255;
     backgroundColor_[1] = 255;
@@ -359,4 +360,17 @@
       throw Orthanc::OrthancException(Orthanc::ErrorCode_BadSequenceOfCalls);
     }
   }
+
+
+  void DicomizerParameters::SetTiffAlignment(unsigned int alignment)
+  {
+    if (alignment <= 0)
+    {
+      throw Orthanc::OrthancException(Orthanc::ErrorCode_ParameterOutOfRange);
+    }
+    else
+    {
+      tiffAlignment_ = alignment;
+    }
+  }
 }