diff Framework/Loaders/OrthancSeriesVolumeProgressiveLoader.cpp @ 817:68f888812af4

simplification of DicomVolumeImageMPRSlicer::ExtractedSlice
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 29 May 2019 08:36:13 +0200
parents aead999345e0
children a68cd7ae8838
line wrap: on
line diff
--- a/Framework/Loaders/OrthancSeriesVolumeProgressiveLoader.cpp	Tue May 28 22:18:41 2019 +0200
+++ b/Framework/Loaders/OrthancSeriesVolumeProgressiveLoader.cpp	Wed May 29 08:36:13 2019 +0200
@@ -36,30 +36,21 @@
   private:
     const OrthancSeriesVolumeProgressiveLoader&  that_;
 
-  protected:
-    virtual uint64_t GetRevisionInternal(VolumeProjection projection,
-                                         unsigned int sliceIndex) const
-    {
-      if (projection == VolumeProjection_Axial)
-      {
-        return that_.seriesGeometry_.GetSliceRevision(sliceIndex);
-      }
-      else
-      {
-        // For coronal and sagittal projections, we take the global
-        // revision of the volume because even if a single slice changes,
-        // this means the projection will yield a different result --> 
-        // we must increase the revision as soon as any slice changes 
-        return that_.volume_->GetRevision();
-      }
-    }
-
   public:
     ExtractedSlice(const OrthancSeriesVolumeProgressiveLoader& that,
                    const CoordinateSystem3D& plane) :
       DicomVolumeImageMPRSlicer::Slice(*that.volume_, plane),
       that_(that)
     {
+      if (GetProjection() == VolumeProjection_Axial)
+      {
+        // For coronal and sagittal projections, we take the global
+        // revision of the volume because even if a single slice changes,
+        // this means the projection will yield a different result --> 
+        // we must increase the revision as soon as any slice changes 
+        SetRevision(that_.seriesGeometry_.GetSliceRevision(GetSliceIndex()));
+      }
+      
       if (that_.strategy_.get() != NULL &&
           IsValid() &&
           GetProjection() == VolumeProjection_Axial)