Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
Home
Manual
API Reference
Download
Bugzilla
Groups
Namespace List
Class List
File List
Examples
File List
File Members
QmitkOverlayContainerWidget.cpp
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
#include "
QmitkOverlayContainerWidget.h
"
18
19
#include <QPainter>
20
21
QmitkOverlayContainerWidget::QmitkOverlayContainerWidget
(QWidget *parent, Qt::WindowFlags f) : QWidget(parent, f)
22
{
23
}
24
25
QmitkOverlayContainerWidget::~QmitkOverlayContainerWidget
()
26
{
27
}
28
29
void
QmitkOverlayContainerWidget::paintEvent
(QPaintEvent *)
30
{
31
QPainter p(
this
);
32
p.setCompositionMode(QPainter::CompositionMode_Clear);
33
p.fillRect(this->rect(), Qt::transparent);
34
}
QmitkOverlayContainerWidget::~QmitkOverlayContainerWidget
virtual ~QmitkOverlayContainerWidget()
Default Destructor.
Definition:
QmitkOverlayContainerWidget.cpp:25
QmitkOverlayContainerWidget.h
QmitkOverlayContainerWidget::paintEvent
virtual void paintEvent(QPaintEvent *event) override
overridden version of paintEvent that correctly clears its canvas before painting.
Definition:
QmitkOverlayContainerWidget.cpp:29
QmitkOverlayContainerWidget::QmitkOverlayContainerWidget
QmitkOverlayContainerWidget(QWidget *parent=0, Qt::WindowFlags f=0)
Default Constructor.
Definition:
QmitkOverlayContainerWidget.cpp:21
git
MITK
Modules
QtOverlays
QmitkOverlayContainerWidget.cpp
Generated on Fri Feb 3 2017 20:52:14 for Medical Imaging Interaction Toolkit by
1.8.9.1