9 #ifndef MRPT_WX_UTILS_H 10 #define MRPT_WX_UTILS_H 21 #if MRPT_HAS_WXWIDGETS 24 #include <wx/statbmp.h> 26 #include <wx/toolbar.h> 29 #include <wx/statusbr.h> 30 #include <wx/msgdlg.h> 31 #include <wx/artprov.h> 32 #include <wx/bitmap.h> 35 #include <wx/string.h> 36 #include <wx/msgdlg.h> 38 #include <wx/filedlg.h> 39 #include <wx/progdlg.h> 40 #include <wx/imaglist.h> 41 #include <wx/busyinfo.h> 43 #include <wx/textdlg.h> 44 #include <wx/dirdlg.h> 45 #include <wx/colordlg.h> 46 #include <wx/dcmemory.h> 49 #include <wx/spinctrl.h> 51 #include <wx/notebook.h> 52 #include <wx/button.h> 54 #include <wx/stattext.h> 55 #include <wx/textctrl.h> 56 #include <wx/choice.h> 57 #include <wx/radiobox.h> 58 #include <wx/settings.h> 59 #include <wx/checkbox.h> 61 #include <wx/dcclient.h> 73 #if MRPT_HAS_WXWIDGETS 78 # define _U(x) wxString::From8BitData(x) 86 #define WX_START_TRY \ 92 catch(std::exception &e) \ 94 wxMessageBox( wxString(e.what(),wxConvUTF8), wxT("Exception"), wxOK, NULL); \ 98 wxMessageBox( _("Untyped exception!"), _("Exception"), wxOK, NULL); \ 150 void AssignImage(wxBitmap *
img);
152 void GetBitmap(wxBitmap &bmp);
154 void OnPaint(wxPaintEvent &ev);
155 void OnMouseMove(wxMouseEvent& ev);
156 void OnMouseClick(wxMouseEvent& ev);
280 void OnbtnBrowseVideoClick(wxCommandEvent& event);
281 void OnbtnBrowseRawlogClick(wxCommandEvent& event);
282 void OnbtnBrowseRawlogDirClick(wxCommandEvent& event);
284 DECLARE_EVENT_TABLE()
wxTextCtrl * edRawlogFile
This class provides simple critical sections functionality.
static const long ID_BUTTON9
static const long ID_CHOICE1
static const long ID_PANEL3
wxStaticText * StaticText4
wxTextCtrl * edRawlogImgDir
A class for storing images as grayscale or RGB bitmaps.
wxCheckBox * cbSR_chIntensity
static const long ID_SPINCTRL1
static const long ID_STATICTEXT9
static const long ID_STATICTEXT1
static const long ID_CHECKBOX4
static const long ID_RADIOBOX3
wxStaticText * StaticText5
static const long ID_RADIOBOX2
static const long ID_PANEL1
wxStaticText * StaticText7
static const long ID_CHECKBOX1
static const long ID_TEXTCTRL6
static const long ID_NOTEBOOK1
wxPoint m_last_mouse_point
static const long ID_CHECKBOX6
mrpt::utils::CImagePtr GUI_IMPEXP wxImage2MRPTImagePtr(const wxImage &img)
Create a MRPT image from a wxImage.
static const long ID_CHECKBOX5
void OnEraseBackground(wxEraseEvent &)
wxButton * btnBrowseRawlogDir
wxImage GUI_IMPEXP * IplImage2wxImage(void *img)
Create a wxImage from a IPL image.
static const long ID_CHECKBOX3
static const long ID_TEXTCTRL8
This class allows loading and storing values and vectors of different types from a configuration text...
static const long ID_TEXTCTRL3
This class implements a config file-like interface over a memory-stored string list.
wxBitmap GUI_IMPEXP * MRPTImage2wxBitmap(const mrpt::utils::CImage &img)
Create a wxBitmap from a MRPT image.
static const long ID_TEXTCTRL1
wxStaticText * StaticText11
mrpt::synch::CCriticalSection m_mouse_cs
static const long ID_CHECKBOX8
mrpt::utils::CImage GUI_IMPEXP * wxImage2MRPTImage(const wxImage &img)
Create a MRPT image from a wxImage.
static const long ID_CHECKBOX7
wxCheckBox * cbKinect_Int
wxStaticText * StaticText9
wxChoice * cbOpencvResolution
wxButton * btnBrowseRawlog
wxStaticText * StaticText2
static const long ID_CHOICE2
static const long ID_STATICTEXT6
wxImage GUI_IMPEXP * MRPTImage2wxImage(const mrpt::utils::CImage &img)
Create a wxImage from a MRPT image.
wxCheckBox * cbBumblebeeRectif
static const long ID_TEXTCTRL2
static const long ID_CHECKBOX2
static const long ID_PANEL2
static const long ID_STATICTEXT3
static const long ID_PANEL5
GLsizei const GLchar ** string
wxRadioBox * rbBumblebeeSel
wxStaticText * StaticText6
mrptKeyModifier keyEventToMrptKeyModifier(const wxKeyEvent &ev)
Extracts the key modifiers from a wxKeyEvent.
wxTextCtrl * edCustomCamConfig
static const long ID_STATICTEXT2
mrpt::synch::CCriticalSection m_img_cs
static const long ID_STATICTEXT11
void HWDRIVERS_IMPEXP readConfigIntoVideoSourcePanel(void *panel, const std::string &in_cfgfile_section_name, const mrpt::utils::CConfigFileBase *in_cfgfile)
Parse the given section of the given configuration file and set accordingly the controls of the wxWid...
wxCheckBox * cbKinect_Depth
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
A custom control to display the bitmap and avoid flicker.
wxSpinCtrl * opencvCamIndex
static const long ID_STATICTEXT10
static const long ID_TEXTCTRL7
static const long ID_TEXTCTRL4
wxNotebook * pagesCameras
static const long ID_STATICTEXT5
A panel to select the camera input from all the formats supported by MRPT.
static const long ID_CHECKBOX9
wxTextCtrl * edRawlogLabel
static const long ID_PANEL8
static const long ID_RADIOBOX1
static const long ID_PANEL4
mrpt::utils::CConfigFileMemory selectedConfig
wxStaticText * StaticText8
static const long ID_PANEL7
wxStaticText * StaticText1
void HWDRIVERS_IMPEXP writeConfigFromVideoSourcePanel(void *panel, const std::string &in_cfgfile_section_name, mrpt::utils::CConfigFileBase *out_cfgfile)
Parse the user options in the wxWidgets "panel" and write the configuration into the given section of...
wxStaticText * StaticText10
GLenum GLsizei GLsizei height
wxStaticText * StaticText3
static const long ID_BUTTON7
static const long ID_STATICTEXT4
wxCheckBox * cbSR_chRange
static const long ID_STATICTEXT7
wxRadioBox * rbKinect_int
static const long ID_PANEL6
static const long ID_BUTTON8
wxButton * btnBrowseVideo
static const long ID_STATICTEXT8
wxChoice * cbOpencvCamType