Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QDiffusionImagingSplashScreen.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,
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 #ifndef QDiffusionImagingSplashScreen_h_included
18 #define QDiffusionImagingSplashScreen_h_included
19 
20 #include <QImage>
21 #include <QWidget>
22 
23 class QDiffusionImagingSplashScreen : public QWidget
24 {
25  Q_OBJECT
26 
27 public:
28  QDiffusionImagingSplashScreen(const QImage &image, QWidget *parent = 0);
30  virtual QSize sizeHint() const;
31 
32 protected:
33  virtual void paintEvent(QPaintEvent *paintEvent);
34  virtual void resizeEvent(QResizeEvent *resizeEvent);
35  virtual void mouseReleaseEvent(QMouseEvent *mouseEvent);
36 
37  QRegion createMaskRegion(const QImage &image, bool posMask = true);
38 
40 };
41 
42 #endif
QDiffusionImagingSplashScreen(const QImage &image, QWidget *parent=0)
QRegion createMaskRegion(const QImage &image, bool posMask=true)
virtual void paintEvent(QPaintEvent *paintEvent)
virtual void mouseReleaseEvent(QMouseEvent *mouseEvent)
virtual void resizeEvent(QResizeEvent *resizeEvent)