Mercurial > hg > orthanc-stone
comparison Framework/Layers/ILayerSource.h @ 77:f5f54ed8d307 wasm
refactoring
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 24 May 2017 21:13:29 +0200 |
parents | 298f375dcb68 |
children | 02c3a7a4938f |
comparison
equal
deleted
inserted
replaced
76:0aef120d7e1c | 77:f5f54ed8d307 |
---|---|
20 | 20 |
21 | 21 |
22 #pragma once | 22 #pragma once |
23 | 23 |
24 #include "ILayerRenderer.h" | 24 #include "ILayerRenderer.h" |
25 #include "../Toolbox/SliceGeometry.h" | 25 #include "../Toolbox/Slice.h" |
26 | 26 |
27 namespace OrthancStone | 27 namespace OrthancStone |
28 { | 28 { |
29 class ILayerSource : public boost::noncopyable | 29 class ILayerSource : public boost::noncopyable |
30 { | 30 { |
38 | 38 |
39 // Triggered as soon as the source has enough information to | 39 // Triggered as soon as the source has enough information to |
40 // answer to "GetExtent()" | 40 // answer to "GetExtent()" |
41 virtual void NotifyGeometryReady(ILayerSource& source) = 0; | 41 virtual void NotifyGeometryReady(ILayerSource& source) = 0; |
42 | 42 |
43 virtual void NotifyGeometryError(ILayerSource& source) = 0; | |
44 | |
43 // Triggered if the extent or the content of the volume has changed | 45 // Triggered if the extent or the content of the volume has changed |
44 virtual void NotifySourceChange(ILayerSource& source) = 0; | 46 virtual void NotifySourceChange(ILayerSource& source) = 0; |
45 | 47 |
46 // Triggered if some slice in the source volume has changed | 48 // Triggered if the content of some slice in the source volume has changed |
47 virtual void NotifySliceChange(ILayerSource& source, | 49 virtual void NotifySliceChange(ILayerSource& source, |
48 const SliceGeometry& slice) = 0; | 50 const Slice& slice) = 0; |
49 | 51 |
50 // The layer must be deleted by the observer. "layer" will never | 52 // The layer must be deleted by the observer. "layer" will never |
51 // be "NULL", otherwise "NotifyLayerError()" would have been | 53 // be "NULL", otherwise "NotifyLayerError()" would have been |
52 // called. | 54 // called. |
53 virtual void NotifyLayerReady(ILayerRenderer *layer, | 55 virtual void NotifyLayerReady(ILayerRenderer *layer, |
54 ILayerSource& source, | 56 ILayerSource& source, |
55 const SliceGeometry& viewportSlice) = 0; | 57 const Slice& slice) = 0; |
56 | 58 |
57 virtual void NotifyLayerError(ILayerSource& source, | 59 virtual void NotifyLayerError(ILayerSource& source, |
58 const SliceGeometry& viewportSlice) = 0; | 60 const SliceGeometry& slice) = 0; |
59 }; | 61 }; |
60 | 62 |
61 virtual ~ILayerSource() | 63 virtual ~ILayerSource() |
62 { | 64 { |
63 } | 65 } |