19 #include "wx/dialog.h"
21 #include "wx/spinctrl.h"
22 #include "wx/textctrl.h"
27 using namespace Eigen;
30 EDIT_TEXT_MODE = wxID_HIGHEST + 100,
32 ROWS_SPIN_CTRL = wxID_HIGHEST + 200,
33 COLS_SPIN_CTRL = wxID_HIGHEST + 210
49 drwnMatrixEditor(wxWindow *parent,
const Eigen::MatrixXd *m,
bool bFixed =
true);
50 drwnMatrixEditor(wxWindow *parent,
const Eigen::VectorXd *v,
bool bFixed =
true);
54 int getRows()
const {
return _grid->GetNumberRows(); }
55 int getCols()
const {
return _grid->GetNumberCols(); }
57 Eigen::VectorXd getRow(
int r = 0)
const;
58 Eigen::VectorXd getCol(
int c = 0)
const;
59 Eigen::MatrixXd getMatrix()
const;
62 void onBtnOkay(wxCommandEvent& event);
63 void onSpinCtrl(wxSpinEvent& event);
64 void onChangeMode(wxCommandEvent& event);
Definition: drwnMatrixEditor.h:38