diff Framework/Loaders/OrthancMultiframeVolumeLoader.h @ 937:86ac61a040c9

Added getters and notifications to allow clients of the loaders (DicomStructureSetLoader, OrthancSeriesVolumeProgressiveLoader and OrthancMultiframeVolumeLoader) to know when the loading is finished + added ability for SDL event loop to execute a callback repeatedly (used to check the view loading state)
author Benjamin Golinvaux <bgo@osimis.io>
date Wed, 31 Jul 2019 10:24:09 +0200
parents 401808e7ff2e
children 32eaf4929b08
line wrap: on
line diff
--- a/Framework/Loaders/OrthancMultiframeVolumeLoader.h	Mon Jul 29 15:39:45 2019 +0200
+++ b/Framework/Loaders/OrthancMultiframeVolumeLoader.h	Wed Jul 31 10:24:09 2019 +0200
@@ -41,6 +41,7 @@
     boost::shared_ptr<DicomVolumeImage>  volume_;
     std::string                          instanceId_;
     std::string                          transferSyntaxUid_;
+    bool                                 pixelDataLoaded_;
 
     const std::string& GetInstanceId() const;
 
@@ -62,6 +63,11 @@
     
     virtual ~OrthancMultiframeVolumeLoader();
 
+    bool IsPixelDataLoaded() const
+    {
+      return pixelDataLoaded_;
+    }
+
     void LoadInstance(const std::string& instanceId);
   };
 }