Medical Imaging Interaction Toolkit  2018.4.99-b585543d
Medical Imaging Interaction Toolkit
berryDisplay.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 
14 #ifndef BERRYDISPLAY_H_
15 #define BERRYDISPLAY_H_
16 
17 #include <Poco/Runnable.h>
18 
20 
21 namespace berry {
22 
24 {
25 
26 public:
27 
28  virtual ~Display();
29 
30  static Display* GetDefault();
31 
37  virtual bool InDisplayThread() = 0;
38 
39  virtual void AsyncExec(Poco::Runnable*) = 0;
40  virtual void SyncExec(Poco::Runnable*) = 0;
41 
42  virtual int RunEventLoop() = 0;
43  virtual void ExitEventLoop(int code) = 0;
44 
45 protected:
46 
52  virtual void CreateDisplay() = 0;
53 
54  static Display* instance;
55 
56 };
57 
58 }
59 
60 #endif /* BERRYDISPLAY_H_ */
static Display * instance
Definition: berryDisplay.h:54
#define BERRY_UI_QT