Mercurial > hg > orthanc-stone
diff Applications/Samples/SingleFrameApplication.h @ 393:e7a494bdd956
removed Messages/MessageType.h
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 09 Nov 2018 18:30:30 +0100 |
parents | 20f149669c1f |
children | ed7146fa2c98 |
line wrap: on
line diff
--- a/Applications/Samples/SingleFrameApplication.h Fri Nov 09 17:59:35 2018 +0100 +++ b/Applications/Samples/SingleFrameApplication.h Fri Nov 09 18:30:30 2018 +0100 @@ -242,10 +242,10 @@ std::string instance = parameters["instance"].as<std::string>(); int frame = parameters["frame"].as<unsigned int>(); - orthancApiClient_.reset(new OrthancApiClient(IObserver::broker_, context_->GetWebService())); - mainWidget_ = new SliceViewerWidget(broker_, "main-widget"); + orthancApiClient_.reset(new OrthancApiClient(GetBroker(), context_->GetWebService())); + mainWidget_ = new SliceViewerWidget(GetBroker(), "main-widget"); - std::auto_ptr<OrthancFrameLayerSource> layer(new OrthancFrameLayerSource(broker_, *orthancApiClient_)); + std::auto_ptr<OrthancFrameLayerSource> layer(new OrthancFrameLayerSource(GetBroker(), *orthancApiClient_)); source_ = layer.get(); layer->LoadFrame(instance, frame); layer->RegisterObserverCallback(new Callable<SingleFrameApplication, ILayerSource::GeometryReadyMessage>(*this, &SingleFrameApplication::OnMainWidgetGeometryReady));