Mercurial > hg > orthanc-stone
diff Applications/Samples/SingleFrameApplication.h @ 396:ed7146fa2c98
rename ILayerSource as IVolumeSlicer, and OrthancFrameLayerSource as as DicomSeriesVolumeSlicer
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Sat, 10 Nov 2018 09:29:08 +0100 |
parents | e7a494bdd956 |
children | 99e31898910e |
line wrap: on
line diff
--- a/Applications/Samples/SingleFrameApplication.h Sat Nov 10 09:14:12 2018 +0100 +++ b/Applications/Samples/SingleFrameApplication.h Sat Nov 10 09:29:08 2018 +0100 @@ -23,7 +23,7 @@ #include "SampleApplicationBase.h" -#include "../../Framework/Layers/OrthancFrameLayerSource.h" +#include "../../Framework/Layers/DicomSeriesVolumeSlicer.h" #include "../../Framework/Widgets/SliceViewerWidget.h" #include <Core/Logging.h> @@ -182,7 +182,7 @@ } - void OnMainWidgetGeometryReady(const ILayerSource::GeometryReadyMessage& message) + void OnMainWidgetGeometryReady(const IVolumeSlicer::GeometryReadyMessage& message) { // Once the geometry of the series is downloaded from Orthanc, // display its middle slice, and adapt the viewport to fit this @@ -197,7 +197,7 @@ std::auto_ptr<Interactor> mainWidgetInteractor_; std::auto_ptr<OrthancApiClient> orthancApiClient_; - const OrthancFrameLayerSource* source_; + const DicomSeriesVolumeSlicer* source_; unsigned int slice_; public: @@ -245,10 +245,10 @@ orthancApiClient_.reset(new OrthancApiClient(GetBroker(), context_->GetWebService())); mainWidget_ = new SliceViewerWidget(GetBroker(), "main-widget"); - std::auto_ptr<OrthancFrameLayerSource> layer(new OrthancFrameLayerSource(GetBroker(), *orthancApiClient_)); + std::auto_ptr<DicomSeriesVolumeSlicer> layer(new DicomSeriesVolumeSlicer(GetBroker(), *orthancApiClient_)); source_ = layer.get(); layer->LoadFrame(instance, frame); - layer->RegisterObserverCallback(new Callable<SingleFrameApplication, ILayerSource::GeometryReadyMessage>(*this, &SingleFrameApplication::OnMainWidgetGeometryReady)); + layer->RegisterObserverCallback(new Callable<SingleFrameApplication, IVolumeSlicer::GeometryReadyMessage>(*this, &SingleFrameApplication::OnMainWidgetGeometryReady)); GetMainWidget().AddLayer(layer.release()); RenderStyle s;