diff OrthancStone/Sources/Toolbox/DicomInstanceParameters.h @ 2076:990f396484b1

fix rendering of RT-DOSE with negative GridFrameOffsetVector
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 11 Jul 2023 15:58:16 +0200
parents f4050908c6bc
children 07964689cb0b
line wrap: on
line diff
--- a/OrthancStone/Sources/Toolbox/DicomInstanceParameters.h	Tue Jul 11 13:20:20 2023 +0200
+++ b/OrthancStone/Sources/Toolbox/DicomInstanceParameters.h	Tue Jul 11 15:58:16 2023 +0200
@@ -48,6 +48,7 @@
       unsigned int        numberOfFrames_;
       unsigned int        width_;
       unsigned int        height_;
+      bool                hasSliceThickness_;
       double              sliceThickness_;
       double              pixelSpacingX_;
       double              pixelSpacingY_;
@@ -143,11 +144,13 @@
       return data_.height_;
     }
 
-    double GetSliceThickness() const
+    bool HasSliceThickness() const
     {
-      return data_.sliceThickness_;
+      return data_.hasSliceThickness_;
     }
 
+    double GetSliceThickness() const;
+
     double GetPixelSpacingX() const
     {
       return data_.pixelSpacingX_;
@@ -234,7 +237,7 @@
     double ApplyRescale(double value) const;
 
     // Required for RT-DOSE
-    bool ComputeRegularSpacing(double& target) const;
+    bool ComputeFrameOffsetsSpacing(double& target) const;
 
     const std::string& GetFrameOfReferenceUid() const
     {
@@ -260,5 +263,9 @@
     {
       return data_.instanceNumber_;
     }
+
+    CoordinateSystem3D GetMultiFrameGeometry() const;
+
+    bool IsReversedFrameOffsets() const;
   };
 }