Medical Imaging Interaction Toolkit  2018.4.99-389bf124
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 (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 #include <qlayout.h>
14 #include <qpushbutton.h>
15 
16 #include "QmitkPlotDialog.h"
17 
18 QmitkPlotDialog::QmitkPlotDialog(const char *title, QWidget *parent, const char *) : QDialog(parent)
19 {
20  auto boxLayout = new QVBoxLayout(this);
21  m_Plot = new QmitkPlotWidget(this, title);
22  m_CloseDialogButton = new QPushButton("close plot window", this);
23  boxLayout->addWidget(m_Plot);
24  boxLayout->addWidget(m_CloseDialogButton);
25  connect(m_CloseDialogButton, SIGNAL(clicked()), this, SLOT(accept()));
26 }
27 
29 {
30  delete m_Plot;
31 }
32 
34 {
35  return m_Plot;
36 }
37 
39 {
40  return m_Plot->GetPlot();
41 }
QmitkPlotDialog(const char *title, QWidget *parent=nullptr, const char *name=nullptr)
QPushButton * m_CloseDialogButton
QwtPlot * GetPlot()
~QmitkPlotDialog() override
QmitkPlotWidget * GetPlot()
QwtPlot * GetQwtPlot()
QmitkPlotWidget * m_Plot