Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkSegmentationsProcessingTool.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 mitkSegmentationsProcessingTool_h
14 #define mitkSegmentationsProcessingTool_h
15 
16 #include <mitkCommon.h>
17 #include <mitkDataNode.h>
18 #include <mitkTool.h>
20 
21 namespace mitk
22 {
34  {
35  public:
37 
38  protected:
39  SegmentationsProcessingTool(); // purposely hidden
41 
42  const char *GetGroup() const override;
43 
49  void Activated() override;
50  void Deactivated() override;
51 
63  virtual void ProcessAllObjects();
64 
69  virtual void StartProcessingAllData();
70 
75  virtual bool ProcessOneWorkingData(DataNode *node);
76 
81  virtual void FinishProcessingAllData();
82 
86  virtual void SendErrorMessageIfAny();
87 
91  virtual std::string GetErrorMessage();
92 
93  std::string m_FailedNodes;
94  };
95 
96 } // namespace
97 
98 #endif
#define MITKSEGMENTATION_EXPORT
Central node class of the MITK data tree, associating a data object with properties and mappers.
Definition: mitkDataNode.h:72
Abstract base class for tools that batch-process all selected segmentations.
virtual void FinishProcessingAllData()
Subclasses should override this method.
virtual std::string GetErrorMessage()
Describes the error (if one occurred during processing).
void Activated() override
Called when the tool gets activated.
mitkClassMacro(SegmentationsProcessingTool, Tool)
virtual bool ProcessOneWorkingData(DataNode *node)
Subclasses should override this method.
const char * GetGroup() const override
Name of a group.
virtual void ProcessAllObjects()
Loop over all working data items.
void Deactivated() override
Called when the tool gets deactivated.
virtual void SendErrorMessageIfAny()
Sends an error message if there was an error during processing.
virtual void StartProcessingAllData()
Subclasses should override this method.
Base class of all tools used by mitk::ToolManager.
Definition: mitkTool.h:80
Find image slices visible on a given plane.