Mercurial > hg > orthanc-stone
comparison Framework/Layers/LayerSourceBase.h @ 318:3a4ca166fafa am-2
ImageAccessor refactoring + implemented Image Cache in SmartLoader
author | am@osimis.io |
---|---|
date | Mon, 08 Oct 2018 17:10:08 +0200 |
parents | 3897f9f28cfa |
children | 814fa32e2fcc |
comparison
equal
deleted
inserted
replaced
317:b66d13708f40 | 318:3a4ca166fafa |
---|---|
24 #include "ILayerSource.h" | 24 #include "ILayerSource.h" |
25 #include "../Toolbox/ObserversRegistry.h" | 25 #include "../Toolbox/ObserversRegistry.h" |
26 | 26 |
27 namespace OrthancStone | 27 namespace OrthancStone |
28 { | 28 { |
29 class SmartLoader; | |
30 | |
29 class LayerSourceBase : public ILayerSource | 31 class LayerSourceBase : public ILayerSource |
30 { | 32 { |
31 protected: | 33 protected: |
32 void NotifyGeometryReady(); | 34 void NotifyGeometryReady(); |
33 | 35 |
39 | 41 |
40 void NotifyLayerReady(ILayerRenderer* layer, | 42 void NotifyLayerReady(ILayerRenderer* layer, |
41 const CoordinateSystem3D& slice, | 43 const CoordinateSystem3D& slice, |
42 bool isError); | 44 bool isError); |
43 | 45 |
46 void NotifyImageReady(boost::shared_ptr<Orthanc::ImageAccessor> image, | |
47 SliceImageQuality imageQuality, | |
48 const Slice& slice); | |
49 | |
44 LayerSourceBase(MessageBroker& broker) | 50 LayerSourceBase(MessageBroker& broker) |
45 : ILayerSource(broker) | 51 : ILayerSource(broker) |
46 { | 52 { |
47 // DeclareEmittableMessage(MessageType_LayerSource_GeometryReady); | |
48 // DeclareEmittableMessage(MessageType_LayerSource_GeometryError); | |
49 // DeclareEmittableMessage(MessageType_LayerSource_ContentChanged); | |
50 // DeclareEmittableMessage(MessageType_LayerSource_SliceChanged); | |
51 // DeclareEmittableMessage(MessageType_LayerSource_LayerReady); | |
52 } | 53 } |
53 | 54 |
55 friend class SmartLoader; | |
54 }; | 56 }; |
55 } | 57 } |