Medical Imaging Interaction Toolkit  2018.4.99-389bf124
Medical Imaging Interaction Toolkit
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 (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 "QmitkPickingToolGUI.h"
14 
16 
17 #include "mitkBaseRenderer.h"
18 #include "mitkStepper.h"
19 #include <qlabel.h>
20 #include <qlayout.h>
21 #include <qpainter.h>
22 #include <qpushbutton.h>
23 #include <qslider.h>
24 
26 
28 {
29  m_Controls.setupUi(this);
30 
31  connect(m_Controls.m_ConfirmButton, SIGNAL(clicked()), this, SLOT(OnConfirmSegmentation()));
32 
33  connect(this, SIGNAL(NewToolAssociated(mitk::Tool *)), this, SLOT(OnNewToolAssociated(mitk::Tool *)));
34 }
35 
37 {
38 }
39 
41 {
42  m_PickingTool = dynamic_cast<mitk::PickingTool *>(tool);
43 }
44 
46 {
47  if (m_PickingTool.IsNotNull())
48  {
49  m_PickingTool->ConfirmSegmentation();
50  }
51 }
Base class of all tools used by mitk::ToolManager.
Definition: mitkTool.h:86
void OnNewToolAssociated(mitk::Tool *)
MITK_TOOL_GUI_MACRO(, QmitkPixelManipulationToolGUI, "")
mitk::PickingTool::Pointer m_PickingTool
Base class for GUIs belonging to mitk::Tool classes.
Definition: QmitkToolGUI.h:32
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