Medical Imaging Interaction Toolkit  2018.4.99-12ad79a3
Medical Imaging Interaction Toolkit
mitkAddContourTool.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 "mitkAddContourTool.h"
14 
15 #include "mitkAddContourTool.xpm"
16 
17 // us
18 #include <usGetModuleContext.h>
19 #include <usModule.h>
20 #include <usModuleContext.h>
21 #include <usModuleResource.h>
22 
23 namespace mitk
24 {
26 }
27 
29 {
30 }
31 
33 {
34 }
35 
36 const char **mitk::AddContourTool::GetXPM() const
37 {
38  return mitkAddContourTool_xpm;
39 }
40 
42 {
44  us::ModuleResource resource = module->GetResource("Add_48x48.png");
45  return resource;
46 }
47 
49 {
51  us::ModuleResource resource = module->GetResource("Add_Cursor_32x32.png");
52  return resource;
53 }
54 
55 const char *mitk::AddContourTool::GetName() const
56 {
57  return "Add";
58 }
us::ModuleResource GetCursorIconResource() const override
Returns the path of a cursor icon.
const char ** GetXPM() const override
Returns an icon in the XPM format.
const char * GetName() const override
Returns the name of this tool. Make it short!
#define MITKSEGMENTATION_EXPORT
us::ModuleResource GetIconResource() const override
Returns the tool button icon of the tool wrapped by a usModuleResource.
DataCollection - Class to facilitate loading/accessing structured data.
MITK_TOOL_MACRO(MITKSEGMENTATION_EXPORT, LiveWireTool2D, "LiveWire tool")
Module * GetModule() const
ModuleResource GetResource(const std::string &path) const
Definition: usModule.cpp:267
Fill the inside of a contour with 1.
Simple contour filling tool.
static ModuleContext * GetModuleContext()
Returns the module context of the calling module.