diff OrthancStone/Sources/Toolbox/DicomInstanceParameters.h @ 1679:5b8b88e5bfd6

successfully running unit tests in WebAssembly
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 24 Nov 2020 12:59:10 +0100
parents 51bab5188a13
children 9ac2a65d4172
line wrap: on
line diff
--- a/OrthancStone/Sources/Toolbox/DicomInstanceParameters.h	Tue Nov 24 07:40:19 2020 +0100
+++ b/OrthancStone/Sources/Toolbox/DicomInstanceParameters.h	Tue Nov 24 12:59:10 2020 +0100
@@ -55,8 +55,8 @@
       bool                hasRescale_;
       double              rescaleIntercept_;
       double              rescaleSlope_;
-      Vector              presetWindowingCenters_;
-      Vector              presetWindowingWidths_;
+      Vector              windowingPresetCenters_;
+      Vector              windowingPresetWidths_;
       bool                hasIndexInSeries_;
       unsigned int        indexInSeries_;
       std::string         doseUnits_;
@@ -181,11 +181,14 @@
 
     double GetRescaleSlope() const;
 
-    size_t GetPresetWindowingsCount() const;
+    size_t GetWindowingPresetsCount() const;
+
+    float GetWindowingPresetCenter(size_t i) const;
 
-    float GetPresetWindowingCenter(size_t i) const;
+    float GetWindowingPresetWidth(size_t i) const;
 
-    float GetPresetWindowingWidth(size_t i) const;
+    void GetWindowingPresetsUnion(float& center,
+                                  float& width) const;
 
     Orthanc::PixelFormat GetExpectedPixelFormat() const;