comparison Framework/Layers/ILayerSource.h @ 87:4a541cd4fa83 wasm

OrthancVolumeImageLoader
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 26 May 2017 15:31:58 +0200
parents 02c3a7a4938f
children f244018a4e4b
comparison
equal deleted inserted replaced
86:02c3a7a4938f 87:4a541cd4fa83
36 { 36 {
37 } 37 }
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(const ILayerSource& source) = 0;
42 42
43 virtual void NotifyGeometryError(ILayerSource& source) = 0; 43 virtual void NotifyGeometryError(const ILayerSource& source) = 0;
44 44
45 // Triggered if the extent or the content of the volume has changed 45 // Triggered if the content of the volume has changed
46 virtual void NotifySourceChange(ILayerSource& source) = 0; 46 virtual void NotifyContentChange(const ILayerSource& source) = 0;
47 47
48 // Triggered if the content of some slice in the source volume has changed 48 // Triggered if the content of some slice in the source volume has changed
49 virtual void NotifySliceChange(ILayerSource& source, 49 virtual void NotifySliceChange(const ILayerSource& source,
50 const Slice& slice) = 0; 50 const Slice& slice) = 0;
51 51
52 // The layer must be deleted by the observer. "layer" will never 52 // The layer must be deleted by the observer. "layer" will never
53 // be "NULL", otherwise "NotifyLayerError()" would have been 53 // be "NULL", otherwise "NotifyLayerError()" would have been
54 // called. 54 // called.
55 virtual void NotifyLayerReady(ILayerRenderer *layer, 55 virtual void NotifyLayerReady(ILayerRenderer *layer,
56 ILayerSource& source, 56 const ILayerSource& source,
57 const Slice& slice) = 0; 57 const Slice& slice) = 0;
58 58
59 virtual void NotifyLayerError(ILayerSource& source, 59 virtual void NotifyLayerError(const ILayerSource& source,
60 const SliceGeometry& slice) = 0; 60 const SliceGeometry& slice) = 0;
61 }; 61 };
62 62
63 virtual ~ILayerSource() 63 virtual ~ILayerSource()
64 { 64 {