Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmitkToolGUI.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 "QmitkToolGUI.h"
18 
19 #include <iostream>
20 
22 {
23  m_ReferenceCount = 0; // otherwise ITK will complain in LightObject's destructor
24 }
25 
27 {
28  // empty on purpose, just don't let ITK handle calls to Register()
29 }
30 
31 void QmitkToolGUI::UnRegister() const ITK_NOEXCEPT
32 {
33  // empty on purpose, just don't let ITK handle calls to UnRegister()
34 }
35 
37 {
38  // empty on purpose, just don't let ITK handle calls to SetReferenceCount()
39 }
40 
42 {
43  m_Tool = tool;
44 
45  emit(NewToolAssociated(tool));
46 }
Base class of all tools used by mitk::ToolManager.
Definition: mitkTool.h:92
virtual void SetReferenceCount(int) override
void NewToolAssociated(mitk::Tool *)
mitk::Tool::Pointer m_Tool
Definition: QmitkToolGUI.h:61
virtual void UnRegister() const ITK_NOEXCEPT ITK_OVERRIDE
void SetTool(mitk::Tool *tool)
virtual void Register() const override
virtual ~QmitkToolGUI()