Medical Imaging Interaction Toolkit
2025.12.02
Medical Imaging Interaction Toolkit
mitkAutoCropTool.h
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
#ifndef mitkAutoCropTool_h
14
#define mitkAutoCropTool_h
15
16
#include "
mitkCommon.h
"
17
#include "
mitkSegmentationsProcessingTool.h
"
18
#include <
MitkSegmentationExports.h
>
19
20
namespace
mitk
21
{
31
class
MITKSEGMENTATION_EXPORT
AutoCropTool
:
public
SegmentationsProcessingTool
32
{
33
public
:
34
mitkClassMacro
(
AutoCropTool
,
SegmentationsProcessingTool
);
35
itkFactorylessNewMacro(
Self
);
36
itkCloneMacro(
Self
);
37
38
const
char
**
GetXPM
()
const override
;
39
const
char
*
GetName
()
const override
;
40
41
protected
:
42
bool
ProcessOneWorkingData
(
DataNode
*node)
override
;
43
std::string
GetErrorMessage
()
override
;
44
45
AutoCropTool
();
// purposely hidden
46
~AutoCropTool
()
override
;
47
};
48
49
}
// namespace
50
51
#endif
MitkSegmentationExports.h
MITKSEGMENTATION_EXPORT
#define MITKSEGMENTATION_EXPORT
Definition:
MitkSegmentationExports.h:15
mitk::AutoCropTool
Crops selected segmentations.
Definition:
mitkAutoCropTool.h:32
mitk::AutoCropTool::ProcessOneWorkingData
bool ProcessOneWorkingData(DataNode *node) override
Subclasses should override this method.
mitk::AutoCropTool::GetXPM
const char ** GetXPM() const override
Returns an icon in the XPM format.
mitk::AutoCropTool::mitkClassMacro
mitkClassMacro(AutoCropTool, SegmentationsProcessingTool)
mitk::AutoCropTool::AutoCropTool
AutoCropTool()
mitk::AutoCropTool::~AutoCropTool
~AutoCropTool() override
mitk::AutoCropTool::GetName
const char * GetName() const override
Returns the name of this tool. Make it short!
mitk::AutoCropTool::GetErrorMessage
std::string GetErrorMessage() override
Describes the error (if one occurred during processing).
mitk::DataNode
Class for nodes of the DataTree.
Definition:
mitkDataNode.h:64
mitk::EventStateMachine
**
Definition:
mitkEventStateMachine.h:112
mitk::SegmentationsProcessingTool
Batch processing of all selected segmentations/data.
Definition:
mitkSegmentationsProcessingTool.h:29
mitkCommon.h
mitkSegmentationsProcessingTool.h
mitk
Find image slices visible on a given plane.
Definition:
RenderingTests.dox:1
src
MITK
Modules
Segmentation
Interactions
mitkAutoCropTool.h
Generated on Mon Feb 23 2026 23:28:09 for Medical Imaging Interaction Toolkit by
1.9.1