24 #ifndef COM_DAFER45_TBTK_LDOS_PANEL
25 #define COM_DAFER45_TBTK_LDOS_PANEL
28 #include "TBTK/ImagePanel.h"
29 #include "TBTK/IndexPanel.h"
37 class LDOSPanel :
public wxPanel{
40 LDOSPanel(wxWindow *parent);
46 void setLDOS(
const Property::LDOS &ldos);
49 void onPaintEvent(wxPaintEvent &event);
52 void onSizeEvent(wxSizeEvent &event);
55 void onChange(wxCommandEvent &event);
57 DECLARE_EVENT_TABLE();
63 ImagePanel *resultPanel;
65 class ControlPanel :
public wxPanel{
68 ControlPanel(wxWindow *parent);
74 double getGaussianSmoothing()
const;
77 double getMin()
const;
80 double getMax()
const;
83 const Index& getIndex()
const;
86 void onGaussianSmoothingChanged(wxCommandEvent &event);
89 void onMinChanged(wxCommandEvent &event);
92 void onMaxChanged(wxCommandEvent &event);
101 DECLARE_EVENT_TABLE();
104 wxStaticText gaussianSmoothingLabel;
107 wxTextCtrl gaussianSmoothingTextBox;
110 double gaussianSmoothing;
113 wxStaticText minLabel;
116 wxTextCtrl minTextBox;
122 wxStaticText maxLabel;
125 wxTextCtrl maxTextBox;
131 IndexPanel indexPanel;
135 ControlPanel controlPanel;
137 static const wxWindowID GAUSSIAN_SMOOTHING_ID;
138 static const wxWindowID MIN_ID;
139 static const wxWindowID MAX_ID;
145 inline double LDOSPanel::ControlPanel::getGaussianSmoothing()
const{
146 return gaussianSmoothing;
149 inline double LDOSPanel::ControlPanel::getMin()
const{
153 inline double LDOSPanel::ControlPanel::getMax()
const{
157 inline const Index& LDOSPanel::ControlPanel::getIndex()
const{
158 return indexPanel.getIndex();