Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmitkFastMarchingToolGUI.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 QmitkFastMarchingToolGUI_h_Included
18 #define QmitkFastMarchingToolGUI_h_Included
19 
20 #include "QmitkToolGUI.h"
21 #include "mitkFastMarchingTool.h"
23 
24 class ctkSliderWidget;
25 class ctkRangeWidget;
26 class QPushButton;
27 
28 #include "QmitkStepperAdapter.h"
29 
36 {
37  Q_OBJECT
38 
39 public:
41  itkFactorylessNewMacro(Self) itkCloneMacro(Self)
42 
43  void OnThresholdChanged(int current);
44 
45 protected slots:
46 
47  void OnNewToolAssociated(mitk::Tool *);
48 
49  void OnThresholdChanged(double, double);
50  void OnAlphaChanged(double);
51  void OnBetaChanged(double);
52  void OnSigmaChanged(double);
53  void OnStoppingValueChanged(double);
54  void OnConfirmSegmentation();
55  void Refetch();
56  void SetStepper(mitk::Stepper *);
57  void OnClearSeeds();
58 
59 protected:
61  virtual ~QmitkFastMarchingToolGUI();
62 
63  void Update();
64 
65  void BusyStateChanged(bool) override;
66 
67  ctkRangeWidget *m_slwThreshold;
68  ctkSliderWidget *m_slStoppingValue;
69  ctkSliderWidget *m_slSigma;
70  ctkSliderWidget *m_slAlpha;
71  ctkSliderWidget *m_slBeta;
72 
73  QPushButton *m_btConfirm;
74  QPushButton *m_btClearSeeds;
75 
77 
80 
81  void OnFastMarchingToolReady();
82 };
83 
84 #endif
Base class of all tools used by mitk::ToolManager.
Definition: mitkTool.h:92
static void Update(vtkPolyData *)
Definition: mitkSurface.cpp:35
mitk::FastMarchingTool::Pointer m_FastMarchingTool
mitk::Stepper::Pointer m_TimeStepper
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44
Base class for GUIs belonging to mitk::Tool classes.
Definition: QmitkToolGUI.h:36
Helper class to step through a list.
Definition: mitkStepper.h:51
virtual void BusyStateChanged(bool)
Definition: QmitkToolGUI.h:63
GUI for mitk::FastMarchingTool.
#define MITKSEGMENTATIONUI_EXPORT