Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
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 
33 {
34  delete m_Plot;
35 }
36 
38 {
39  return m_Plot;
40 }
41 
43 {
44  return m_Plot->GetPlot();
45 }
QmitkPlotDialog(const char *title, QWidget *parent=nullptr, const char *name=nullptr)
QPushButton * m_CloseDialogButton
QwtPlot * GetPlot()
QmitkPlotWidget * GetPlot()
QwtPlot * GetQwtPlot()
virtual ~QmitkPlotDialog()
QmitkPlotWidget * m_Plot