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