22 #ifndef __ProjectionGUI_hh__
23 #define __ProjectionGUI_hh__
25 #include <bias_config.h>
27 #ifndef BIAS_HAVE_WXWIDGETS
28 # error BIAS_HAVE_WXWIDGETS not defined but required by ProjectionGUI. Please enable BIAS_HAVE_WXWIDGETS in CMake configure step.
32 #include <wx/notebook.h>
33 #include <Geometry/Projection.hh>
35 #include <Gui/wxVectorPanel.hh>
36 #include <Gui/wxMatrixPanel.hh>
38 #include <Base/Math/Vector.hh>
39 #include <Base/Math/Vector2.hh>
50 const wxPoint& pos = wxDefaultPosition,
51 const wxSize& size = wxDefaultSize,
52 long style = wxTAB_TRAVERSAL,
53 const wxString& name = wxT(
"panel"),
54 bool createButtons =
true);
55 void SetProjection(
const Projection& projection);
62 void UpdateGUI(
unsigned int cameraNr);
64 void OnNormalizeQuaternion(wxCommandEvent& event);
65 void OnModified(wxCommandEvent& event);
66 void OnNew(wxCommandEvent& event);
67 void OnLoad(wxCommandEvent& event);
68 void OnSave(wxCommandEvent& event);
73 wxNotebook* noteBook_;
75 std::vector<wxVectorPanel* > panelCenter_;
76 std::vector<wxVectorPanel* > panelQuaternion_;
77 std::vector<wxMatrixPanel* > panelRMatrix_;
78 std::vector<wxVectorPanel* > panelImageSize_;
79 std::vector<wxVectorPanel* > panelAspectRatio_;
80 std::vector<wxVectorPanel* > panelPrincipal_;
81 std::vector<wxMatrixPanel* > panelKMatrix_;
82 std::vector<wxVectorPanel* > panelFocalLength_;
83 std::vector<wxVectorPanel* > panelUndistortion_;
84 std::vector<wxVectorPanel* > panelRadius_;
85 std::vector<wxScrolledWindow* > notebookPages_;
90 #endif // __ProjectionGUI_hh__
Panel for displaying and editing projections.
This class hides the underlying projection model, like projection matrix, spherical camera...
Panel for displaying and editing vectors.
Panel for displaying and editing matrices.