24 #ifndef COM_DAFER45_TBTK_DOS_PANEL
25 #define COM_DAFER45_TBTK_DOS_PANEL
27 #include "TBTK/ImagePanel.h"
35 class DOSPanel :
public wxPanel{
38 DOSPanel(wxWindow *parent);
44 void setDOS(
const Property::DOS &dos);
47 void onPaintEvent(wxPaintEvent &event);
50 void onSizeEvent(wxSizeEvent &event);
53 void onChangeEvent(wxCommandEvent &event);
58 DECLARE_EVENT_TABLE();
64 ImagePanel *resultPanel;
66 class ControlPanel :
public wxPanel{
69 ControlPanel(wxWindow *parent);
75 double getGaussianSmoothing()
const;
78 double getMin()
const;
81 double getMax()
const;
84 void onGaussianSmoothingChanged(wxCommandEvent &event);
87 void onMinChanged(wxCommandEvent &event);
90 void onMaxChanged(wxCommandEvent &event);
98 DECLARE_EVENT_TABLE();
101 wxStaticText gaussianSmoothingLabel;
104 wxTextCtrl gaussianSmoothingTextBox;
107 double gaussianSmoothing;
110 wxStaticText minLabel;
113 wxTextCtrl minTextBox;
119 wxStaticText maxLabel;
122 wxTextCtrl maxTextBox;
129 ControlPanel controlPanel;
131 static const wxWindowID GAUSSIAN_SMOOTHING_ID;
132 static const wxWindowID MIN_ID;
133 static const wxWindowID MAX_ID;
139 inline double DOSPanel::ControlPanel::getGaussianSmoothing()
const{
140 return gaussianSmoothing;
143 inline double DOSPanel::ControlPanel::getMin()
const{
147 inline double DOSPanel::ControlPanel::getMax()
const{