Mercurial > hg > orthanc-stone
comparison Framework/Layers/ILayerSource.h @ 96:f8bce1bebe01 wasm
removal of the NotifyLayerError callback
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 30 May 2017 10:30:57 +0200 |
parents | 64e60018943f |
children | d18dcc963930 |
comparison
equal
deleted
inserted
replaced
95:f47349f4815c | 96:f8bce1bebe01 |
---|---|
49 // Triggered if the content of some individual slice in the | 49 // Triggered if the content of some individual slice in the |
50 // source volume has changed | 50 // source volume has changed |
51 virtual void NotifySliceChange(const ILayerSource& source, | 51 virtual void NotifySliceChange(const ILayerSource& source, |
52 const Slice& slice) = 0; | 52 const Slice& slice) = 0; |
53 | 53 |
54 // The layer must be deleted by the observer. "layer" will never | 54 // The layer must be deleted by the observer that releases the |
55 // be "NULL", otherwise "NotifyLayerError()" would have been | 55 // std::auto_ptr |
56 // called. | |
57 virtual void NotifyLayerReady(std::auto_ptr<ILayerRenderer>& layer, | 56 virtual void NotifyLayerReady(std::auto_ptr<ILayerRenderer>& layer, |
58 const ILayerSource& source, | 57 const ILayerSource& source, |
59 const Slice& slice) = 0; | 58 const Slice& slice, |
60 | 59 bool isError) = 0; |
61 virtual void NotifyLayerError(const ILayerSource& source, | |
62 const SliceGeometry& slice) = 0; | |
63 }; | 60 }; |
64 | 61 |
65 virtual ~ILayerSource() | 62 virtual ~ILayerSource() |
66 { | 63 { |
67 } | 64 } |