Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
berryDisplay.h
Go to the documentation of this file.
1 /*===================================================================
2 
3 BlueBerry Platform
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 
18 #ifndef BERRYDISPLAY_H_
19 #define BERRYDISPLAY_H_
20 
21 #include <Poco/Runnable.h>
22 
24 
25 namespace berry {
26 
28 {
29 
30 public:
31 
32  virtual ~Display();
33 
34  static Display* GetDefault();
35 
41  virtual bool InDisplayThread() = 0;
42 
43  virtual void AsyncExec(Poco::Runnable*) = 0;
44  virtual void SyncExec(Poco::Runnable*) = 0;
45 
46  virtual int RunEventLoop() = 0;
47  virtual void ExitEventLoop(int code) = 0;
48 
49 protected:
50 
56  virtual void CreateDisplay() = 0;
57 
58  static Display* instance;
59 
60 };
61 
62 }
63 
64 #endif /* BERRYDISPLAY_H_ */
static Display * instance
Definition: berryDisplay.h:58
#define BERRY_UI_QT