Basic Image AlgorithmS Library  2.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
wxMatrixPanel.hh
1 /*
2  * wxMatrixPanel.hh
3  *
4  * Created on: Jun 25, 2010
5  * Author: ischiller
6  */
7 
8 #ifndef WXMATRIXPANEL_HH_
9 #define WXMATRIXPANEL_HH_
10 
11 #include <bias_config.h>
12 
13 #ifndef BIAS_HAVE_WXWIDGETS
14 # error BIAS_HAVE_WXWIDGETS not defined but required by ProjectionGUI. Please enable BIAS_HAVE_WXWIDGETS in CMake configure step.
15 #endif
16 
17 #include <wx/wx.h>
18 #include <vector>
19 #include <Base/Math/Matrix.hh>
20 
21 namespace BIAS {
22 
23 /** @brief Panel for displaying and editing matrices.
24  @author jkollmann */
25 class BIASGui_EXPORT wxMatrixPanel : public wxPanel
26 {
27 public:
28  wxMatrixPanel(wxWindow* parent, wxWindowID id, bool editable);
29  void SetMatrix(const Matrix<double>& matrix);
30  Matrix<double> GetMatrix();
31 
32 private:
33  bool editable_;
34  int rows_, cols_;
35  std::vector<wxTextCtrl*> controls_;
36 };
37 
38 
39 }
40 
41 #endif /* WXMATRIXPANEL_HH_ */
Panel for displaying and editing matrices.