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
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
QmitkPlotDialog.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 <qlayout.h>
18
#include <qpushbutton.h>
19
20
#include "
QmitkPlotDialog.h
"
21
22
QmitkPlotDialog::QmitkPlotDialog
(
const
char
*title, QWidget *parent,
const
char
*) : QDialog(parent)
23
{
24
auto
boxLayout =
new
QVBoxLayout(
this
);
25
m_Plot
=
new
QmitkPlotWidget
(
this
, title);
26
m_CloseDialogButton
=
new
QPushButton(
"close plot window"
,
this
);
27
boxLayout->addWidget(
m_Plot
);
28
boxLayout->addWidget(
m_CloseDialogButton
);
29
connect(
m_CloseDialogButton
, SIGNAL(clicked()),
this
, SLOT(accept()));
30
}
31
32
QmitkPlotDialog::~QmitkPlotDialog
()
33
{
34
delete
m_Plot
;
35
}
36
37
QmitkPlotWidget
*
QmitkPlotDialog::GetPlot
()
38
{
39
return
m_Plot
;
40
}
41
42
QwtPlot *
QmitkPlotDialog::GetQwtPlot
()
43
{
44
return
m_Plot
->
GetPlot
();
45
}
QmitkPlotDialog::QmitkPlotDialog
QmitkPlotDialog(const char *title, QWidget *parent=nullptr, const char *name=nullptr)
Definition:
QmitkPlotDialog.cpp:22
QmitkPlotDialog::m_CloseDialogButton
QPushButton * m_CloseDialogButton
Definition:
QmitkPlotDialog.h:75
QmitkPlotWidget::GetPlot
QwtPlot * GetPlot()
Definition:
QmitkPlotWidget.cpp:40
QmitkPlotDialog.h
QmitkPlotDialog::GetPlot
QmitkPlotWidget * GetPlot()
Definition:
QmitkPlotDialog.cpp:37
QmitkPlotDialog::GetQwtPlot
QwtPlot * GetQwtPlot()
Definition:
QmitkPlotDialog.cpp:42
QmitkPlotDialog::~QmitkPlotDialog
virtual ~QmitkPlotDialog()
Definition:
QmitkPlotDialog.cpp:32
QmitkPlotDialog::m_Plot
QmitkPlotWidget * m_Plot
Definition:
QmitkPlotDialog.h:73
QmitkPlotWidget
Definition:
QmitkPlotWidget.h:56
git
MITK
Modules
QtWidgetsExt
src
QmitkPlotDialog.cpp
Generated on Fri Feb 3 2017 20:52:14 for Medical Imaging Interaction Toolkit by
1.8.9.1