Medical Imaging Interaction Toolkit  2016.11.0
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,
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 "mitkEraseRegionTool.h"
18 
19 #include "mitkEraseRegionTool.xpm"
20 
21 // us
22 #include <usGetModuleContext.h>
23 #include <usModule.h>
24 #include <usModuleContext.h>
25 #include <usModuleResource.h>
26 
27 namespace mitk
28 {
30 }
31 
33 {
35 }
36 
38 {
39 }
40 
41 const char **mitk::EraseRegionTool::GetXPM() const
42 {
43  return mitkEraseRegionTool_xpm;
44 }
45 
47 {
49  us::ModuleResource resource = module->GetResource("Erase_48x48.png");
50  return resource;
51 }
52 
54 {
56  us::ModuleResource resource = module->GetResource("Erase_Cursor_32x32.png");
57  return resource;
58 }
59 
60 const char *mitk::EraseRegionTool::GetName() const
61 {
62  return "Erase";
63 }
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.
#define MITK_TOOL_MACRO(EXPORT_SPEC, CLASS_NAME, DESCRIPTION)
Fill the inside of a contour with 1.
Fills or erases a 2D region.
virtual const char ** GetXPM() const override
Returns an icon in the XPM format.
Module * GetModule() const
virtual us::ModuleResource GetCursorIconResource() const override
Returns the path of a cursor icon.
ModuleResource GetResource(const std::string &path) const
Definition: usModule.cpp:267
static ModuleContext * GetModuleContext()
Returns the module context of the calling module.
virtual const char * GetName() const override
Returns the name of this tool. Make it short!