00001 /*========================================================================= 00002 00003 Program: Medical Imaging & Interaction Toolkit 00004 Language: C++ 00005 Date: $Date: 2010-03-31 16:40:27 +0200 (Mi, 31 Mrz 2010) $ 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 QmitkBinaryThresholdULToolGUI_h_Included 00019 #define QmitkBinaryThresholdULToolGUI_h_Included 00020 00021 #include "QmitkToolGUI.h" 00022 #include "QmitkExtExports.h" 00023 #include "mitkBinaryThresholdULTool.h" 00024 #include <qxtspanslider.h> 00025 00026 #include <QSpinBox> 00027 00036 class QmitkExt_EXPORT QmitkBinaryThresholdULToolGUI : public QmitkToolGUI 00037 { 00038 Q_OBJECT 00039 00040 public: 00041 00042 mitkClassMacro(QmitkBinaryThresholdULToolGUI, QmitkToolGUI); 00043 itkNewMacro(QmitkBinaryThresholdULToolGUI); 00044 00045 void OnThresholdingIntervalBordersChanged(int lower, int upper); 00046 void OnThresholdingValuesChanged(int lower, int upper); 00047 00048 signals: 00049 00050 public slots: 00051 00052 protected slots: 00053 00054 void OnNewToolAssociated(mitk::Tool*); 00055 00056 void OnSpanChanged(int lower, int upper); 00057 void OnAcceptThresholdPreview(); 00058 void OnUpperSpinnerChanged(int); 00059 void OnLowerSpinnerChanged(int); 00060 00061 protected: 00062 QmitkBinaryThresholdULToolGUI(); 00063 virtual ~QmitkBinaryThresholdULToolGUI(); 00064 00065 QxtSpanSlider *m_RangeSlider; 00066 QSpinBox* m_LowerSpinner; 00067 QSpinBox* m_UpperSpinner; 00068 00069 mitk::BinaryThresholdULTool::Pointer m_BinaryThresholdULTool; 00070 }; 00071 00072 #endif 00073