Medical Imaging Interaction Toolkit  2018.4.99-389bf124
Medical Imaging Interaction Toolkit
mitkSubtractContourTool.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 "mitkSubtractContourTool.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 mitkSubtractContourTool_xpm;
40 }
41 
43 {
45  us::ModuleResource resource = module->GetResource("Subtract_48x48.png");
46  return resource;
47 }
48 
50 {
52  us::ModuleResource resource = module->GetResource("Subtract_Cursor_32x32.png");
53  return resource;
54 }
55 
57 {
58  return "Subtract";
59 }
us::ModuleResource GetCursorIconResource() const override
Returns the path of a cursor icon.
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.
us::ModuleResource GetIconResource() const override
Returns the tool button icon of the tool wrapped by a usModuleResource.
Fill the inside of a contour with 1.
const char ** GetXPM() const override
Returns an icon in the XPM format.
MITK_TOOL_MACRO(MITKSEGMENTATION_EXPORT, LiveWireTool2D, "LiveWire tool")
const char * GetName() const override
Returns the name of this tool. Make it short!
Module * GetModule() const
ModuleResource GetResource(const std::string &path) const
Definition: usModule.cpp:267
Simple contour filling tool.
static ModuleContext * GetModuleContext()
Returns the module context of the calling module.