Medical Imaging Interaction Toolkit  2018.4.99-e1268d66
Medical Imaging Interaction Toolkit
mitkFillRegionTool.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 "mitkFillRegionTool.h"
14 
15 #include "mitkFillRegionTool.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::FillRegionTool::GetXPM() const
37 {
38  return mitkFillRegionTool_xpm;
39 }
40 
42 {
44  us::ModuleResource resource = module->GetResource("Fill_48x48.png");
45  return resource;
46 }
47 
49 {
51  us::ModuleResource resource = module->GetResource("Fill_Cursor_32x32.png");
52  return resource;
53 }
54 
55 const char *mitk::FillRegionTool::GetName() const
56 {
57  return "Fill";
58 }
#define MITKSEGMENTATION_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
Fills or erases a 2D region.
MITK_TOOL_MACRO(MITKSEGMENTATION_EXPORT, LiveWireTool2D, "LiveWire tool")
us::ModuleResource GetIconResource() const override
Returns the tool button icon of the tool wrapped by a usModuleResource.
Module * GetModule() const
ModuleResource GetResource(const std::string &path) const
Definition: usModule.cpp:267
Fill the inside of a contour with 1.
const char * GetName() const override
Returns the name of this tool. Make it short!
us::ModuleResource GetCursorIconResource() const override
Returns the path of a cursor icon.
const char ** GetXPM() const override
Returns an icon in the XPM format.
static ModuleContext * GetModuleContext()
Returns the module context of the calling module.