Medical Imaging Interaction Toolkit  2018.4.99-389bf124
Medical Imaging Interaction Toolkit
mitkErasePaintbrushTool.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 
14 
15 #include "mitkErasePaintbrushTool.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 
38 {
39  return mitkErasePaintbrushTool_xpm;
40 }
41 
43 {
45  us::ModuleResource resource = module->GetResource("Wipe_48x48.png");
46  return resource;
47 }
48 
50 {
52  us::ModuleResource resource = module->GetResource("Wipe_Cursor_32x32.png");
53  return resource;
54 }
55 
57 {
58  return "Wipe";
59 }
Paintbrush tool for InteractiveSegmentation.
us::ModuleResource GetIconResource() const override
Returns the tool button icon of the tool wrapped by a usModuleResource.
void SetFeedbackContourColor(float r, float g, float b)
Provide values from 0.0 (black) to 1.0 (full color)
#define MITKSEGMENTATION_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
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
const char * GetName() const override
Returns the name of this tool. Make it short!
Paintbrush tool for InteractiveSegmentation.
us::ModuleResource GetCursorIconResource() const override
Returns the path of a cursor icon.
static ModuleContext * GetModuleContext()
Returns the module context of the calling module.