Medical Imaging Interaction Toolkit  2018.4.99-c4b6bb11
Medical Imaging Interaction Toolkit
mitkEraseRegionTool.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 "mitkEraseRegionTool.h"
14 
15 #include "mitkEraseRegionTool.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 {
31 }
32 
34 {
35 }
36 
37 const char **mitk::EraseRegionTool::GetXPM() const
38 {
39  return mitkEraseRegionTool_xpm;
40 }
41 
43 {
45  us::ModuleResource resource = module->GetResource("Erase_48x48.png");
46  return resource;
47 }
48 
50 {
52  us::ModuleResource resource = module->GetResource("Erase_Cursor_32x32.png");
53  return resource;
54 }
55 
56 const char *mitk::EraseRegionTool::GetName() const
57 {
58  return "Erase";
59 }
void SetFeedbackContourColor(float r, float g, float b)
Provide values from 0.0 (black) to 1.0 (full color)
us::ModuleResource GetIconResource() const override
Returns the tool button icon of the tool wrapped by a usModuleResource.
#define MITKSEGMENTATION_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
Fill the inside of a contour with 1.
Fills or erases a 2D region.
const char ** GetXPM() const override
Returns an icon in the XPM format.
MITK_TOOL_MACRO(MITKSEGMENTATION_EXPORT, LiveWireTool2D, "LiveWire tool")
Module * GetModule() const
ModuleResource GetResource(const std::string &path) const
Definition: usModule.cpp:267
us::ModuleResource GetCursorIconResource() const override
Returns the path of a cursor icon.
static ModuleContext * GetModuleContext()
Returns the module context of the calling module.
const char * GetName() const override
Returns the name of this tool. Make it short!