Mercurial > hg > orthanc-stone
diff Applications/Samples/SingleFrameApplication.h @ 417:aee3d7941c9b
preparing to load images using DICOMweb
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 15 Nov 2018 17:28:15 +0100 |
parents | 99e31898910e |
children | b70e9be013e4 |
line wrap: on
line diff
--- a/Applications/Samples/SingleFrameApplication.h Tue Nov 13 10:36:53 2018 +0100 +++ b/Applications/Samples/SingleFrameApplication.h Thu Nov 15 17:28:15 2018 +0100 @@ -197,7 +197,6 @@ } std::auto_ptr<Interactor> mainWidgetInteractor_; - std::auto_ptr<OrthancApiClient> orthancApiClient_; const DicomSeriesVolumeSlicer* source_; unsigned int slice_; @@ -243,10 +242,9 @@ std::string instance = parameters["instance"].as<std::string>(); int frame = parameters["frame"].as<unsigned int>(); - orthancApiClient_.reset(new OrthancApiClient(GetBroker(), context_->GetWebService())); mainWidget_ = new SliceViewerWidget(GetBroker(), "main-widget"); - std::auto_ptr<DicomSeriesVolumeSlicer> layer(new DicomSeriesVolumeSlicer(GetBroker(), *orthancApiClient_)); + std::auto_ptr<DicomSeriesVolumeSlicer> layer(new DicomSeriesVolumeSlicer(GetBroker(), context->GetOrthancApiClient())); source_ = layer.get(); layer->LoadFrame(instance, frame); layer->RegisterObserverCallback(new Callable<SingleFrameApplication, IVolumeSlicer::GeometryReadyMessage>(*this, &SingleFrameApplication::OnMainWidgetGeometryReady));