comparison Framework/Loaders/OrthancSeriesVolumeProgressiveLoader.h @ 1448:dad6a2fe6fc7 loader-injection-feature

Added setters to control relative priority of CT series loader requests.
author Benjamin Golinvaux <bgo@osimis.io>
date Tue, 02 Jun 2020 13:16:40 +0200
parents 687457d4018f
children
comparison
equal deleted inserted replaced
1447:f3f4cd58fde4 1448:dad6a2fe6fc7
129 std::vector<unsigned int> slicesQuality_; 129 std::vector<unsigned int> slicesQuality_;
130 bool volumeImageReadyInHighQuality_; 130 bool volumeImageReadyInHighQuality_;
131 131
132 boost::shared_ptr<ISlicePostProcessor> slicePostProcessor_; 132 boost::shared_ptr<ISlicePostProcessor> slicePostProcessor_;
133 133
134 /** See priority setters/getters below */
135 int medadataSchedulingPriority_;
136
137 /** See priority setters/getters below */
138 int sliceSchedulingPriority_;
139
134 OrthancSeriesVolumeProgressiveLoader( 140 OrthancSeriesVolumeProgressiveLoader(
135 OrthancStone::ILoadersContext& loadersContext, 141 OrthancStone::ILoadersContext& loadersContext,
136 boost::shared_ptr<OrthancStone::DicomVolumeImage> volume, 142 boost::shared_ptr<OrthancStone::DicomVolumeImage> volume,
137 bool progressiveQuality); 143 bool progressiveQuality);
138 144
149 155
150 virtual ~OrthancSeriesVolumeProgressiveLoader(); 156 virtual ~OrthancSeriesVolumeProgressiveLoader();
151 157
152 void SetSimultaneousDownloads(unsigned int count); 158 void SetSimultaneousDownloads(unsigned int count);
153 159
160 /**
161 Sets the relative priority of the requests for metadata.
162 - if p < PRIORITY_HIGH (-1) , the requests will be high priority
163 - if PRIORITY_LOW (100) > p > PRIORITY_HIGH , the requests will be medium priority
164 - if p > PRIORITY_LOW , the requests will be low priority
165
166 Default is 0 (medium)
167 */
168 void SetMetadataSchedulingPriority(int p);
169
170 /** @see SetMetadataSchedulingPriority */
171 int GetMetadataSchedulingPriority() const;
172
173 /** Same as SetMetadataSchedulingPriority, for slices. Default is 0. */
174 void SetSliceSchedulingPriority(int p);
175
176 /** @see SetSliceSchedulingPriority */
177 int GetSliceSchedulingPriority() const;
178
179 /** Sets priorities for all requests. @see SetMetadataSchedulingPriority */
180 void SetSchedulingPriority(int p);
181
154 void SetDicomSlicePostProcessor(boost::shared_ptr<ISlicePostProcessor> slicePostProcessor) 182 void SetDicomSlicePostProcessor(boost::shared_ptr<ISlicePostProcessor> slicePostProcessor)
155 { 183 {
156 // this will delete the previously stored slice processor, if any 184 // this will delete the previously stored slice processor, if any
157 slicePostProcessor_ = slicePostProcessor; 185 slicePostProcessor_ = slicePostProcessor;
158 } 186 }