3 * \brief Class ThresholdImageViewPanel .
7 * \class ThresholdImageViewPanel
11 #ifndef __ColorLayerImageViewPanel_h__
12 #define __ColorLayerImageViewPanel_h__
16 #include <wx/button.h>
17 #include "ColorLayerImageView.h"
21 //-----------------------------------------------------
24 class wxDlgTransformByDimensionBySpacingByPixel
27 wxDlgTransformByDimensionBySpacingByPixel();
28 ~wxDlgTransformByDimensionBySpacingByPixel();
29 void GetTransformType(wxWindow *parent , wxString message,int &typeOfTransformation,bool &dlgWxOK) ;
34 //-----------------------------------------------------
36 class ColorLayerImageViewPanel
40 ColorLayerImageViewPanel(wxWindow * parent, int min, int max, int type);
41 ~ColorLayerImageViewPanel();
42 void onThresholdStop();
43 ColorLayerImageView* GetColorLayerImageView();
44 void SetColorLayerImageView(ColorLayerImageView* colorLayerImageView);
46 void SetBaseSpacing(double spc[3]);
47 void SetBaseDimension(int dim[3]);
48 void SetOriginalSpacing(double spc[3]);
49 void SetImage(vtkImageData *img);
50 void SetFittingMode(int fitting_mode);
61 ColorLayerImageView *_colorLayerImageView;
62 wxButton *_btn_ReadImage;
64 wxCheckBox *_interpolationCheckBox;
65 wxCheckBox *_cb_ShowHide;
66 wxCheckBox *_cb_SliceFixDinamic;
67 wxSlider *_sl_SliceImage;
68 void onReadImage(wxCommandEvent& event);
69 void onThresholdChange(wxCommandEvent& event);
70 void onThresholdShow(wxCommandEvent& event);
71 void onThresholdInterpolation(wxCommandEvent& event);
72 void onChangeOpacity(wxScrollEvent& event);
73 void onSliceFixDinamic(wxCommandEvent& event);
74 void onSliceImage(wxScrollEvent& event);