Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkLabelSetImageToSurfaceThreadedFilter.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 __mitkLabelSetImageToSurfaceThreadedFilter_H_
18 #define __mitkLabelSetImageToSurfaceThreadedFilter_H_
19 
20 #include "mitkSegmentationSink.h"
21 #include "mitkSurface.h"
22 #include <MitkMultilabelExports.h>
23 
24 namespace mitk
25 {
27  {
28  public:
31 
32  protected:
33  LabelSetImageToSurfaceThreadedFilter(); // use smart pointers
35 
36  virtual void Initialize(const NonBlockingAlgorithm *other = nullptr) override;
37  virtual bool ReadyToRun() override;
38 
39  virtual bool ThreadedUpdateFunction() override; // will be called from a thread after calling StartAlgorithm
40 
41  virtual void ThreadedUpdateSuccessful() override; // will be called from a thread after calling StartAlgorithm
42 
43  private:
44  int m_RequestedLabel;
45  Surface::Pointer m_Result;
46  };
47 
48 } // namespace
49 
50 #endif // __mitkLabelSetImageToSurfaceThreadedFilter_H_
#define mitkAlgorithmNewMacro(classname)
DataCollection - Class to facilitate loading/accessing structured data.
#define MITKMULTILABEL_EXPORT
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44