comparison Framework/Widgets/LayerWidget.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
33 private ILayerSource::IObserver 33 private ILayerSource::IObserver
34 { 34 {
35 private: 35 private:
36 class Scene; 36 class Scene;
37 37
38 typedef std::map<ILayerSource*, size_t> LayersIndex; 38 typedef std::map<const ILayerSource*, size_t> LayersIndex;
39 39
40 bool started_; 40 bool started_;
41 LayersIndex layersIndex_; 41 LayersIndex layersIndex_;
42 std::vector<ILayerSource*> layers_; 42 std::vector<ILayerSource*> layers_;
43 std::vector<RenderStyle> styles_; 43 std::vector<RenderStyle> styles_;
45 std::auto_ptr<Scene> currentScene_; 45 std::auto_ptr<Scene> currentScene_;
46 std::auto_ptr<Scene> pendingScene_; 46 std::auto_ptr<Scene> pendingScene_;
47 47
48 48
49 bool LookupLayer(size_t& index /* out */, 49 bool LookupLayer(size_t& index /* out */,
50 ILayerSource& layer) const; 50 const ILayerSource& layer) const;
51 51
52 bool GetAndFixExtent(double& x1, 52 bool GetAndFixExtent(double& x1,
53 double& y1, 53 double& y1,
54 double& x2, 54 double& x2,
55 double& y2, 55 double& y2,
56 ILayerSource& source) const; 56 ILayerSource& source) const;
57 57
58 virtual void NotifyGeometryReady(ILayerSource& source); 58 virtual void NotifyGeometryReady(const ILayerSource& source);
59 59
60 virtual void NotifyGeometryError(ILayerSource& source); 60 virtual void NotifyGeometryError(const ILayerSource& source);
61 61
62 virtual void NotifySourceChange(ILayerSource& source); 62 virtual void NotifyContentChange(const ILayerSource& source);
63 63
64 virtual void NotifySliceChange(ILayerSource& source, 64 virtual void NotifySliceChange(const ILayerSource& source,
65 const Slice& slice); 65 const Slice& slice);
66 66
67 virtual void NotifyLayerReady(ILayerRenderer* renderer, 67 virtual void NotifyLayerReady(ILayerRenderer* renderer,
68 ILayerSource& source, 68 const ILayerSource& source,
69 const Slice& slice); 69 const Slice& slice);
70 70
71 virtual void NotifyLayerError(ILayerSource& source, 71 virtual void NotifyLayerError(const ILayerSource& source,
72 const SliceGeometry& slice); 72 const SliceGeometry& slice);
73 73
74 74
75 protected: 75 protected:
76 virtual void GetSceneExtent(double& x1, 76 virtual void GetSceneExtent(double& x1,