Mercurial > hg > orthanc-stone
comparison Framework/Viewport/IViewport.h @ 53:c2dc924f1a63 wasm
removing threading out of the framework
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 27 Apr 2017 16:57:49 +0200 |
parents | 25befef48c35 |
children | ca644004d2ee |
comparison
equal
deleted
inserted
replaced
52:37e504582af6 | 53:c2dc924f1a63 |
---|---|
19 **/ | 19 **/ |
20 | 20 |
21 | 21 |
22 #pragma once | 22 #pragma once |
23 | 23 |
24 #include "../Toolbox/IThreadSafety.h" | |
25 #include "IStatusBar.h" | 24 #include "IStatusBar.h" |
26 #include "../Enumerations.h" | 25 #include "../Enumerations.h" |
27 | 26 |
28 #include "../../Resources/Orthanc/Core/Images/ImageAccessor.h" | 27 #include "../../Resources/Orthanc/Core/Images/ImageAccessor.h" |
29 | 28 |
30 namespace OrthancStone | 29 namespace OrthancStone |
31 { | 30 { |
32 // This class must be thread-safe | 31 class IViewport : public boost::noncopyable |
33 class IViewport : public IThreadSafe | |
34 { | 32 { |
35 public: | 33 public: |
36 class IChangeObserver : public boost::noncopyable | 34 class IChangeObserver : public boost::noncopyable |
37 { | 35 { |
38 public: | 36 public: |
40 { | 38 { |
41 } | 39 } |
42 | 40 |
43 virtual void NotifyChange(const IViewport& scene) = 0; | 41 virtual void NotifyChange(const IViewport& scene) = 0; |
44 }; | 42 }; |
43 | |
44 virtual ~IViewport() | |
45 { | |
46 } | |
45 | 47 |
46 virtual void Register(IChangeObserver& observer) = 0; | 48 virtual void Register(IChangeObserver& observer) = 0; |
47 | 49 |
48 virtual void Unregister(IChangeObserver& observer) = 0; | 50 virtual void Unregister(IChangeObserver& observer) = 0; |
49 | 51 |