00001 /*========================================================================= 00002 00003 Program: Medical Imaging & Interaction Toolkit 00004 Language: C++ 00005 Date: $Date$ 00006 Version: $Revision: 1.0 $ 00007 00008 Copyright (c) German Cancer Research Center, Division of Medical and 00009 Biological Informatics. All rights reserved. 00010 See MITKCopyright.txt or https://www.mitk.org/copyright.html for details. 00011 00012 This software is distributed WITHOUT ANY WARRANTY; without even 00013 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00014 PURPOSE. See the above copyright notices for more information. 00015 00016 =========================================================================*/ 00017 00018 #ifndef QmitkBinaryThresholdToolGUI_h_Included 00019 #define QmitkBinaryThresholdToolGUI_h_Included 00020 00021 #include "QmitkToolGUI.h" 00022 #include "QmitkExtExports.h" 00023 #include "mitkBinaryThresholdTool.h" 00024 00025 #include <QSpinBox> 00026 00027 class QSlider; 00036 class QmitkExt_EXPORT QmitkBinaryThresholdToolGUI : public QmitkToolGUI 00037 { 00038 Q_OBJECT 00039 00040 public: 00041 00042 mitkClassMacro(QmitkBinaryThresholdToolGUI, QmitkToolGUI); 00043 itkNewMacro(QmitkBinaryThresholdToolGUI); 00044 00045 void OnThresholdingIntervalBordersChanged(int lower, int upper); 00046 void OnThresholdingValueChanged(int current); 00047 00048 signals: 00049 00050 public slots: 00051 00052 protected slots: 00053 00054 void OnNewToolAssociated(mitk::Tool*); 00055 00056 void OnSliderValueChanged(int value); 00057 void OnAcceptThresholdPreview(); 00058 void OnSpinnerValueChanged(int); 00059 00060 protected: 00061 QmitkBinaryThresholdToolGUI(); 00062 virtual ~QmitkBinaryThresholdToolGUI(); 00063 00064 QSlider* m_Slider; 00065 QSpinBox* m_Spinner; 00066 00067 mitk::BinaryThresholdTool::Pointer m_BinaryThresholdTool; 00068 }; 00069 00070 #endif