9 #ifndef MRPT_WX_UTILS_H 10 #define MRPT_WX_UTILS_H 18 #if MRPT_HAS_WXWIDGETS 21 #include <wx/statbmp.h> 23 #include <wx/toolbar.h> 26 #include <wx/statusbr.h> 27 #include <wx/msgdlg.h> 28 #include <wx/artprov.h> 29 #include <wx/bitmap.h> 32 #include <wx/string.h> 33 #include <wx/msgdlg.h> 35 #include <wx/filedlg.h> 36 #include <wx/progdlg.h> 37 #include <wx/imaglist.h> 38 #include <wx/busyinfo.h> 40 #include <wx/textdlg.h> 41 #include <wx/dirdlg.h> 42 #include <wx/colordlg.h> 43 #include <wx/dcmemory.h> 46 #include <wx/spinctrl.h> 48 #include <wx/notebook.h> 49 #include <wx/button.h> 51 #include <wx/stattext.h> 52 #include <wx/textctrl.h> 53 #include <wx/choice.h> 54 #include <wx/radiobox.h> 55 #include <wx/settings.h> 56 #include <wx/checkbox.h> 58 #include <wx/dcclient.h> 73 #if MRPT_HAS_WXWIDGETS 77 #define _U(x) wxString::From8BitData(x) 85 #define WX_START_TRY \ 90 catch (std::exception & e) \ 93 wxString(e.what(), wxConvUTF8), wxT("Exception"), wxOK, nullptr); \ 97 wxMessageBox(_("Untyped exception!"), _("Exception"), wxOK, nullptr); \ 152 wxWindow* parent, wxWindowID winID,
int x,
int y,
int width,
164 void OnPaint(wxPaintEvent& ev);
289 DECLARE_EVENT_TABLE()
wxTextCtrl * edRawlogFile
static const long ID_BUTTON9
static const long ID_CHOICE1
void writeConfigFromVideoSourcePanel(const std::string §, mrpt::utils::CConfigFileBase *cfg) const
static const long ID_PANEL3
wxStaticText * StaticText4
void GetBitmap(wxBitmap &bmp)
wxTextCtrl * edRawlogImgDir
void OnbtnBrowseRawlogDirClick(wxCommandEvent &event)
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
void OnMouseMove(wxMouseEvent &ev)
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
virtual ~wxMRPTImageControl()
wxPoint m_last_mouse_click
wxMRPTImageControl(wxWindow *parent, wxWindowID winID, int x, int y, int width, int height)
void readConfigIntoVideoSourcePanel(const std::string §, const mrpt::utils::CConfigFileBase *cfg) const
static const long ID_CHECKBOX6
static const long ID_CHECKBOX5
void OnEraseBackground(wxEraseEvent &)
wxButton * btnBrowseRawlogDir
wxImage * 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 * MRPTImage2wxBitmap(const mrpt::utils::CImage &img)
Create a wxBitmap from a MRPT image.
static const long ID_TEXTCTRL1
void OnMouseClick(wxMouseEvent &ev)
wxStaticText * StaticText11
static const long ID_CHECKBOX8
mrpt::utils::CImage * 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
void OnbtnBrowseVideoClick(wxCommandEvent &event)
static const long ID_CHOICE2
std::shared_ptr< CImage > Ptr
static const long ID_STATICTEXT6
wxImage * 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
static const long ID_STATICTEXT11
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
mrpt::utils::CImage::Ptr wxImage2MRPTImagePtr(const wxImage &img)
Create a MRPT image from a wxImage.
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.
void OnPaint(wxPaintEvent &ev)
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
virtual ~CPanelCameraSelection()
wxStaticText * StaticText8
static const long ID_PANEL7
wxStaticText * StaticText1
void OnbtnBrowseRawlogClick(wxCommandEvent &event)
wxStaticText * StaticText10
CPanelCameraSelection(wxWindow *parent, wxWindowID id=wxID_ANY)
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
void AssignImage(wxBitmap *img)
Assigns this image.
static const long ID_PANEL6
static const long ID_BUTTON8
wxButton * btnBrowseVideo
static const long ID_STATICTEXT8
wxChoice * cbOpencvCamType