Mercurial > hg > orthanc-stone
comparison Framework/dev.h @ 251:192e6e349e69 am-2
first usage of new message system (in SDL only)
author | am@osimis.io |
---|---|
date | Mon, 02 Jul 2018 18:13:46 +0200 |
parents | c4ea26865975 |
children | 40b21c1f8b8d |
comparison
equal
deleted
inserted
replaced
250:5e642859267e | 251:192e6e349e69 |
---|---|
213 LOG(ERROR) << "Cannot download slice " << sliceIndex << " in a volume image"; | 213 LOG(ERROR) << "Cannot download slice " << sliceIndex << " in a volume image"; |
214 ScheduleSliceDownload(); | 214 ScheduleSliceDownload(); |
215 } | 215 } |
216 | 216 |
217 public: | 217 public: |
218 OrthancVolumeImage(IWebService& orthanc, | 218 OrthancVolumeImage(MessageBroker& broker, |
219 IWebService& orthanc, | |
219 bool computeRange) : | 220 bool computeRange) : |
220 loader_(*this, orthanc), | 221 loader_(broker, *this, orthanc), |
221 computeRange_(computeRange), | 222 computeRange_(computeRange), |
222 pendingSlices_(0) | 223 pendingSlices_(0) |
223 { | 224 { |
224 } | 225 } |
225 | 226 |
574 } | 575 } |
575 } | 576 } |
576 | 577 |
577 | 578 |
578 public: | 579 public: |
579 VolumeImageSource(OrthancVolumeImage& volume) : | 580 VolumeImageSource(MessageBroker& broker, OrthancVolumeImage& volume) : |
581 LayerSourceBase(broker), | |
580 volume_(volume) | 582 volume_(volume) |
581 { | 583 { |
582 volume_.Register(*this); | 584 volume_.Register(*this); |
583 } | 585 } |
584 | 586 |
812 { | 814 { |
813 private: | 815 private: |
814 LayerWidget& otherPlane_; | 816 LayerWidget& otherPlane_; |
815 | 817 |
816 public: | 818 public: |
817 SliceLocationSource(LayerWidget& otherPlane) : | 819 SliceLocationSource(MessageBroker& broker, LayerWidget& otherPlane) : |
820 LayerSourceBase(broker), | |
818 otherPlane_(otherPlane) | 821 otherPlane_(otherPlane) |
819 { | 822 { |
820 NotifyGeometryReady(); | 823 NotifyGeometryReady(); |
821 } | 824 } |
822 | 825 |