Mercurial > hg > orthanc-stone
comparison Framework/Layers/LayerSourceBase.h @ 251:192e6e349e69 am-2
first usage of new message system (in SDL only)
author | am@osimis.io |
---|---|
date | Mon, 02 Jul 2018 18:13:46 +0200 |
parents | e2fe9352f240 |
children | abc1c6231947 |
comparison
equal
deleted
inserted
replaced
250:5e642859267e | 251:192e6e349e69 |
---|---|
26 | 26 |
27 namespace OrthancStone | 27 namespace OrthancStone |
28 { | 28 { |
29 class LayerSourceBase : public ILayerSource | 29 class LayerSourceBase : public ILayerSource |
30 { | 30 { |
31 private: | |
32 typedef ObserversRegistry<ILayerSource, IObserver> Observers; | |
33 | |
34 Observers observers_; | |
35 | |
36 protected: | 31 protected: |
37 void NotifyGeometryReady(); | 32 void NotifyGeometryReady(); |
38 | 33 |
39 void NotifyGeometryError(); | 34 void NotifyGeometryError(); |
40 | 35 |
44 | 39 |
45 void NotifyLayerReady(ILayerRenderer* layer, | 40 void NotifyLayerReady(ILayerRenderer* layer, |
46 const CoordinateSystem3D& slice, | 41 const CoordinateSystem3D& slice, |
47 bool isError); | 42 bool isError); |
48 | 43 |
44 LayerSourceBase(MessageBroker& broker) | |
45 : ILayerSource(broker) | |
46 {} | |
47 | |
49 public: | 48 public: |
50 virtual void Register(IObserver& observer); | 49 virtual void Register(IObserver& observer); |
51 }; | 50 }; |
52 } | 51 } |