00001 00002 00013 #ifndef __ThresholdImageViewPanel_h__ 00014 #define __ThresholdImageViewPanel_h__ 00015 00016 00017 #include <wx/wx.h> 00018 #include "mBarRange.h" 00019 #include "ThresholdImageView.h" 00020 00021 00022 class ThresholdImageViewPanel 00023 : public wxPanel 00024 { 00025 public: 00026 ThresholdImageViewPanel(wxWindow * parent, int min, int max, int type); 00027 ~ThresholdImageViewPanel(); 00028 void onThresholdStop(); 00029 void SetThresholdImageView(ThresholdImageView* thresholdImageView); 00030 bool IsVisible(); 00031 00032 private: 00033 00034 bool _thresholdGo; 00035 ThresholdImageView *_thresholdImageView; 00036 mBarRange *_mBarThreshold; 00037 wxSlider *_opacity; 00038 wxCheckBox *_interpolationCheckBox; 00039 wxCheckBox *_cb_ShowHide; 00040 00041 void onThresholdChange(wxCommandEvent& event); 00042 void onThresholdShow(wxCommandEvent& event); 00043 void onThresholdInterpolation(wxCommandEvent& event); 00044 void onChangeOpacity(wxScrollEvent& event); 00045 DECLARE_EVENT_TABLE() 00046 }; 00047 00048 00049 00050 00051 #endif 00052