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