comparison 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
comparison
equal deleted inserted replaced
936:775ebd43bd3b 937:86ac61a040c9
39 class LoadUncompressedPixelData; 39 class LoadUncompressedPixelData;
40 40
41 boost::shared_ptr<DicomVolumeImage> volume_; 41 boost::shared_ptr<DicomVolumeImage> volume_;
42 std::string instanceId_; 42 std::string instanceId_;
43 std::string transferSyntaxUid_; 43 std::string transferSyntaxUid_;
44 bool pixelDataLoaded_;
44 45
45 const std::string& GetInstanceId() const; 46 const std::string& GetInstanceId() const;
46 47
47 void ScheduleFrameDownloads(); 48 void ScheduleFrameDownloads();
48 49
60 IOracle& oracle, 61 IOracle& oracle,
61 IObservable& oracleObservable); 62 IObservable& oracleObservable);
62 63
63 virtual ~OrthancMultiframeVolumeLoader(); 64 virtual ~OrthancMultiframeVolumeLoader();
64 65
66 bool IsPixelDataLoaded() const
67 {
68 return pixelDataLoaded_;
69 }
70
65 void LoadInstance(const std::string& instanceId); 71 void LoadInstance(const std::string& instanceId);
66 }; 72 };
67 } 73 }