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