Medical Imaging Interaction Toolkit  2018.4.99-389bf124
Medical Imaging Interaction Toolkit
QmitkCalculateGrayValueStatisticsToolGUI.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 
14 
16 
18 
20 {
21  connect(this, SIGNAL(NewToolAssociated(mitk::Tool *)), this, SLOT(OnNewToolAssociated(mitk::Tool *)));
22 }
23 
25 {
26  if (m_CalculateGrayValueStatisticsTool.IsNotNull())
27  {
28  m_CalculateGrayValueStatisticsTool->StatisticsCompleted -=
31  }
32 }
33 
35 {
36  if (m_CalculateGrayValueStatisticsTool.IsNotNull())
37  {
38  m_CalculateGrayValueStatisticsTool->StatisticsCompleted -=
41  }
42 
44 
45  if (m_CalculateGrayValueStatisticsTool.IsNotNull())
46  {
47  m_CalculateGrayValueStatisticsTool->StatisticsCompleted +=
50  }
51 }
52 
54 {
55  if (m_CalculateGrayValueStatisticsTool.IsNotNull())
56  {
57  std::string report = m_CalculateGrayValueStatisticsTool->GetReport();
58 
59  // one for linux users
60  std::cout << report << std::endl;
61 
62  // one for window users
63  QmitkCopyToClipBoardDialog *dialog = new QmitkCopyToClipBoardDialog(report.c_str(), nullptr);
64  dialog->show();
65  }
66 }
Base class of all tools used by mitk::ToolManager.
Definition: mitkTool.h:86
void OnNewToolAssociated(mitk::Tool *)
Connected to signal from QmitkToolGUI. We remember the current tool here.
GUI for mitk::CalculateGrayValueStatisticsTool.
MITK_TOOL_GUI_MACRO(, QmitkPixelManipulationToolGUI, "")
Displays read-only QTextEdit.
Base class for GUIs belonging to mitk::Tool classes.
Definition: QmitkToolGUI.h:32
Calculates some gray value statistics for segmentations.
void OnCalculationsDone()
Reacts to signals from mitk::CalculateGrayValueStatisticsTool.
mitk::CalculateGrayValueStatisticsTool::Pointer m_CalculateGrayValueStatisticsTool
#define MITKSEGMENTATIONUI_EXPORT