Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkSegmentationSink.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,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef MITK_SEGMENTATION_SINK_H_INCLUDET_WAD
18 #define MITK_SEGMENTATION_SINK_H_INCLUDET_WAD
19 
22 
23 namespace mitk
24 {
26  {
27  public:
29 
30  protected:
31  SegmentationSink(); // use smart pointers
32  virtual ~SegmentationSink();
33 
34  virtual void Initialize(const NonBlockingAlgorithm *other = nullptr) override;
35  virtual bool ReadyToRun() override;
36 
37  virtual bool ThreadedUpdateFunction() override; // will be called from a thread after calling StartAlgorithm
38 
39  void InsertBelowGroupNode(mitk::DataNode *node);
40  DataNode *LookForPointerTargetBelowGroupNode(const char *name);
41  DataNode *GetGroupNode();
42 
43  private:
44  };
45 
46 } // namespace
47 
48 #endif
#define mitkAlgorithmNewMacro(classname)
mitkClassMacro(SegmentationSink, NonBlockingAlgorithm) static Pointer New(void)
DataCollection - Class to facilitate loading/accessing structured data.
#define MITKALGORITHMSEXT_EXPORT
Class for nodes of the DataTree.
Definition: mitkDataNode.h:66