Mercurial > hg > orthanc-stone
diff Framework/Layers/ILayerSource.h @ 247:3d523c9a8f0d am
trying to use boost::signals2 even more.
author | am@osimis.io |
---|---|
date | Mon, 02 Jul 2018 12:32:02 +0200 |
parents | e2fe9352f240 |
children |
line wrap: on
line diff
--- a/Framework/Layers/ILayerSource.h Tue Jun 26 13:55:17 2018 +0200 +++ b/Framework/Layers/ILayerSource.h Mon Jul 02 12:32:02 2018 +0200 @@ -23,6 +23,7 @@ #include "ILayerRenderer.h" #include "../Toolbox/Slice.h" +#include <boost/shared_ptr.hpp> namespace OrthancStone { @@ -52,8 +53,8 @@ const Slice& slice) = 0; // The layer must be deleted by the observer that releases the - // std::auto_ptr - virtual void NotifyLayerReady(std::auto_ptr<ILayerRenderer>& layer, + // std::auto_ptr // TODO: check the lifecycle of the layer since we are not using an std::auto_ptr anymore + virtual void NotifyLayerReady(boost::shared_ptr<ILayerRenderer> renderer, const ILayerSource& source, const CoordinateSystem3D& slice, bool isError) = 0; // TODO Shouldn't this be separate as NotifyLayerError? @@ -63,7 +64,7 @@ { } - virtual void Register(IObserver& observer) = 0; + virtual void Register(boost::shared_ptr<IObserver> observer) = 0; virtual bool GetExtent(std::vector<Vector>& points, const CoordinateSystem3D& viewportSlice) = 0;