Medical Imaging Interaction Toolkit  2018.4.99-c670e289
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_Included
14 #define mitkSegmentationsProcessingTool_h_Included
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
35  ~SegmentationsProcessingTool() override;
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
Base class of all tools used by mitk::ToolManager.
Definition: mitkTool.h:86
#define MITKSEGMENTATION_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
Batch processing of all selected segmentations/data.
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:40
Class for nodes of the DataTree.
Definition: mitkDataNode.h:57