comparison Framework/Loaders/OrthancSeriesVolumeProgressiveLoader.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
102 102
103 void LoadBestQualitySliceContent(const GetOrthancImageCommand::SuccessMessage& message); 103 void LoadBestQualitySliceContent(const GetOrthancImageCommand::SuccessMessage& message);
104 104
105 void LoadJpegSliceContent(const GetOrthancWebViewerJpegCommand::SuccessMessage& message); 105 void LoadJpegSliceContent(const GetOrthancWebViewerJpegCommand::SuccessMessage& message);
106 106
107 IOracle& oracle_; 107 IOracle& oracle_;
108 bool active_; 108 bool active_;
109 unsigned int simultaneousDownloads_; 109 unsigned int simultaneousDownloads_;
110 SeriesGeometry seriesGeometry_; 110 SeriesGeometry seriesGeometry_;
111 boost::shared_ptr<DicomVolumeImage> volume_; 111 boost::shared_ptr<DicomVolumeImage> volume_;
112 std::auto_ptr<IFetchingItemsSorter::IFactory> sorter_; 112 std::auto_ptr<IFetchingItemsSorter::IFactory> sorter_;
113 std::auto_ptr<IFetchingStrategy> strategy_; 113 std::auto_ptr<IFetchingStrategy> strategy_;
114 std::vector<unsigned int> slicesQuality_; 114 std::vector<unsigned int> slicesQuality_;
115 bool volumeImageReadyInHighQuality_;
115 116
116 117
117 public: 118 public:
119 ORTHANC_STONE_DEFINE_ORIGIN_MESSAGE(__FILE__, __LINE__, VolumeImageReadyInHighQuality, OrthancSeriesVolumeProgressiveLoader);
120
121
118 OrthancSeriesVolumeProgressiveLoader(const boost::shared_ptr<DicomVolumeImage>& volume, 122 OrthancSeriesVolumeProgressiveLoader(const boost::shared_ptr<DicomVolumeImage>& volume,
119 IOracle& oracle, 123 IOracle& oracle,
120 IObservable& oracleObservable); 124 IObservable& oracleObservable);
121 125
122 virtual ~OrthancSeriesVolumeProgressiveLoader(); 126 virtual ~OrthancSeriesVolumeProgressiveLoader();
123 127
124 void SetSimultaneousDownloads(unsigned int count); 128 void SetSimultaneousDownloads(unsigned int count);
129
130 bool IsVolumeImageReadyInHighQuality() const
131 {
132 return volumeImageReadyInHighQuality_;
133 }
125 134
126 void LoadSeries(const std::string& seriesId); 135 void LoadSeries(const std::string& seriesId);
127 136
128 /** 137 /**
129 This getter is used by clients that do not receive the geometry through 138 This getter is used by clients that do not receive the geometry through