diff Framework/Volumes/VolumeImageGeometry.h @ 949:32eaf4929b08 toa2019081301

OrthancMultiframeVolumeLoader and OrthancSeriesVolumeProgressiveLoader now implement IGeometryProvider so that the geometry reference can be switched (CT or DOSE, for instance) + VolumeImageGeometry::SetSize renamed to VolumeImageGeometry::SetSizeInVoxels + prevent text layer update if text or properties do not change + a few stream operator<< for debug (Vector, Matrix,...) + fixed memory access aligment issues in ImageBuffer3D::ExtractSagittalSlice + fix for wrong screen Y offset of mpr slices in DicomVolumeImageMPRSlicer.
author Benjamin Golinvaux <bgo@osimis.io>
date Tue, 13 Aug 2019 16:01:05 +0200
parents ffec76a5f7eb
children 2d8ab34c8c91
line wrap: on
line diff
--- a/Framework/Volumes/VolumeImageGeometry.h	Sat Aug 10 13:13:11 2019 +0200
+++ b/Framework/Volumes/VolumeImageGeometry.h	Tue Aug 13 16:01:05 2019 +0200
@@ -24,6 +24,8 @@
 #include "../StoneEnumerations.h"
 #include "../Toolbox/CoordinateSystem3D.h"
 
+#include <iosfwd>
+
 namespace OrthancStone
 {
   class VolumeImageGeometry
@@ -41,6 +43,8 @@
 
     void Invalidate();
 
+    friend std::ostream& operator<<(std::ostream& s, const VolumeImageGeometry& v);
+
   public:
     VolumeImageGeometry();
 
@@ -86,7 +90,7 @@
       return transformInverse_;
     }
 
-    void SetSize(unsigned int width,
+    void SetSizeInVoxels(unsigned int width,
                  unsigned int height,
                  unsigned int depth);
 
@@ -120,7 +124,7 @@
     axial, sagittal or coronal cut and returns 
     the slice number corresponding to this cut.
 
-    If the cutting plane is not parallel to the tree x = 0, y = 0 or z = 0
+    If the cutting plane is not parallel to the three x = 0, y = 0 or z = 0
     planes, it is considered as arbitrary and the method returns false. 
     Otherwise, it returns true.
     */