Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkShowSegmentationAsSurface.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_SHOW_SEGMENTATION_AS_SURFACE_H_INCLUDET_WAD
18 #define MITK_SHOW_SEGMENTATION_AS_SURFACE_H_INCLUDET_WAD
19 
20 #include "mitkSegmentationSink.h"
21 #include "mitkSurface.h"
22 #include "mitkUIDGenerator.h"
24 
25 namespace mitk
26 {
28  {
29  public:
31 
32  protected:
33  ShowSegmentationAsSurface(); // use smart pointers
34  virtual ~ShowSegmentationAsSurface();
35 
36  virtual void Initialize(const NonBlockingAlgorithm *other = NULL) 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  UIDGenerator m_UIDGeneratorSurfaces;
45 
46  Surface::Pointer m_Surface;
48 
49  bool m_AddToTree;
50  };
51 
52 } // namespace
53 
54 #endif
#define mitkAlgorithmNewMacro(classname)
Generated unique IDs.
#define MITKSEGMENTATION_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
mitk::DataNode::Pointer m_Node
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44