Mercurial > hg > orthanc-stone
comparison Framework/Widgets/LayerWidget.h @ 271:46c5296d867e am-2
OracleWebService and BasicSdlApplicationContext using the same global mutex
author | am@osimis.io |
---|---|
date | Thu, 23 Aug 2018 17:12:54 +0200 |
parents | 5bd4161bf11b |
children | f21ba2468570 |
comparison
equal
deleted
inserted
replaced
270:2d64f4d39610 | 271:46c5296d867e |
---|---|
46 std::vector<RenderStyle> styles_; | 46 std::vector<RenderStyle> styles_; |
47 CoordinateSystem3D slice_; | 47 CoordinateSystem3D slice_; |
48 std::auto_ptr<Scene> currentScene_; | 48 std::auto_ptr<Scene> currentScene_; |
49 std::auto_ptr<Scene> pendingScene_; | 49 std::auto_ptr<Scene> pendingScene_; |
50 std::vector<bool> changedLayers_; | 50 std::vector<bool> changedLayers_; |
51 std::string name_; | |
51 | 52 |
52 bool LookupLayer(size_t& index /* out */, | 53 bool LookupLayer(size_t& index /* out */, |
53 const ILayerSource& layer) const; | 54 const ILayerSource& layer) const; |
54 | 55 |
55 void GetLayerExtent(Extent2D& extent, | 56 void GetLayerExtent(Extent2D& extent, |
69 | 70 |
70 | 71 |
71 void ResetChangedLayers(); | 72 void ResetChangedLayers(); |
72 | 73 |
73 public: | 74 public: |
74 LayerWidget(MessageBroker& broker); | 75 LayerWidget(MessageBroker& broker, const std::string& name); |
75 | 76 |
76 virtual void HandleMessage(IObservable& from, const IMessage& message); | 77 virtual void HandleMessage(IObservable& from, const IMessage& message); |
77 | 78 |
78 virtual Extent2D GetSceneExtent(); | 79 virtual Extent2D GetSceneExtent(); |
79 | 80 |
90 void InvalidateAllLayers(); | 91 void InvalidateAllLayers(); |
91 | 92 |
92 void InvalidateLayer(size_t layer); | 93 void InvalidateLayer(size_t layer); |
93 | 94 |
94 public: | 95 public: |
95 LayerWidget(); | 96 virtual ~LayerWidget(); |
96 | 97 |
97 virtual ~LayerWidget(); | 98 const std::string& GetName() const {return name_;} |
98 | 99 |
99 size_t AddLayer(ILayerSource* layer); // Takes ownership | 100 size_t AddLayer(ILayerSource* layer); // Takes ownership |
100 | 101 |
101 void ReplaceLayer(size_t layerIndex, ILayerSource* layer); // Takes ownership | 102 void ReplaceLayer(size_t layerIndex, ILayerSource* layer); // Takes ownership |
102 | 103 |