Medical Imaging Interaction Toolkit  2025.12.02
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 {
29  {
30  public:
32 
33  protected:
34  SegmentationsProcessingTool(); // purposely hidden
36 
37  const char *GetGroup() const override;
38 
44  void Activated() override;
45  void Deactivated() override;
46 
58  virtual void ProcessAllObjects();
59 
64  virtual void StartProcessingAllData();
65 
70  virtual bool ProcessOneWorkingData(DataNode *node);
71 
76  virtual void FinishProcessingAllData();
77 
81  virtual void SendErrorMessageIfAny();
82 
86  virtual std::string GetErrorMessage();
87 
88  std::string m_FailedNodes;
89  };
90 
91 } // namespace
92 
93 #endif
#define MITKSEGMENTATION_EXPORT
Class for nodes of the DataTree.
Definition: mitkDataNode.h:64
Batch processing of all selected segmentations/data.
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:79
Find image slices visible on a given plane.