Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
QmitkPickingToolGUI.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 "QmitkPickingToolGUI.h"
18 
20 
21 #include "mitkBaseRenderer.h"
22 #include "mitkStepper.h"
23 #include <qlabel.h>
24 #include <qlayout.h>
25 #include <qpainter.h>
26 #include <qpushbutton.h>
27 #include <qslider.h>
28 
30 
32 {
33  m_Controls.setupUi(this);
34 
35  connect(m_Controls.m_ConfirmButton, SIGNAL(clicked()), this, SLOT(OnConfirmSegmentation()));
36 
37  connect(this, SIGNAL(NewToolAssociated(mitk::Tool *)), this, SLOT(OnNewToolAssociated(mitk::Tool *)));
38 }
39 
41 {
42 }
43 
45 {
46  m_PickingTool = dynamic_cast<mitk::PickingTool *>(tool);
47 }
48 
50 {
51  if (m_PickingTool.IsNotNull())
52  {
53  m_PickingTool->ConfirmSegmentation();
54  }
55 }
MITK_TOOL_GUI_MACRO(, QmitkPixelManipulationToolGUI,"")
Base class of all tools used by mitk::ToolManager.
Definition: mitkTool.h:92
void OnNewToolAssociated(mitk::Tool *)
mitk::PickingTool::Pointer m_PickingTool
Base class for GUIs belonging to mitk::Tool classes.
Definition: QmitkToolGUI.h:36
Extracts a single region from a segmentation image and creates a new image with same geometry of the ...
GUI for mitk::LiveWireTool.
#define MITKSEGMENTATIONUI_EXPORT