Medical Imaging Interaction Toolkit  2024.12.00
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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_ */
org_blueberry_ui_qt_Export.h
berry::Display
Definition: berryDisplay.h:23
BERRY_UI_QT
#define BERRY_UI_QT
Definition: org_blueberry_ui_qt_Export.h:26
berry::Display::instance
static Display * instance
Definition: berryDisplay.h:54
berry
Definition: QmitkPropertyItemModel.h:24