16 #if MRPT_HAS_WXWIDGETS 19 #include <wx/artprov.h> 20 #include <wx/bitmap.h> 21 #include <wx/busyinfo.h> 22 #include <wx/button.h> 23 #include <wx/checkbox.h> 24 #include <wx/choice.h> 25 #include <wx/colordlg.h> 27 #include <wx/dcclient.h> 28 #include <wx/dcmemory.h> 29 #include <wx/dirdlg.h> 30 #include <wx/filedlg.h> 33 #include <wx/imaglist.h> 37 #include <wx/msgdlg.h> 38 #include <wx/notebook.h> 41 #include <wx/progdlg.h> 42 #include <wx/radiobox.h> 43 #include <wx/settings.h> 45 #include <wx/spinctrl.h> 46 #include <wx/statbmp.h> 47 #include <wx/stattext.h> 48 #include <wx/statusbr.h> 49 #include <wx/string.h> 50 #include <wx/textctrl.h> 51 #include <wx/textdlg.h> 53 #include <wx/toolbar.h> 68 #if MRPT_HAS_WXWIDGETS 72 #define WX_START_TRY \ 77 catch (std::exception & e) \ 80 mrpt::exception_to_str(e), wxT("Exception"), wxOK, nullptr); \ 84 wxMessageBox(_("Untyped exception!"), _("Exception"), wxOK, nullptr); \ 131 wxWindow* parent, wxWindowID winID,
int x,
int y,
int width,
143 void OnPaint(wxPaintEvent& ev);
161 const std::string&
sect,
271 DECLARE_EVENT_TABLE()
wxTextCtrl * edRawlogFile
static const long ID_BUTTON9
static const long ID_CHOICE1
static const long ID_PANEL3
wxStaticText * StaticText4
void GetBitmap(wxBitmap &bmp)
wxTextCtrl * edRawlogImgDir
void OnbtnBrowseRawlogDirClick(wxCommandEvent &event)
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
wxPoint m_last_mouse_click
wxMRPTImageControl(wxWindow *parent, wxWindowID winID, int x, int y, int width, int height)
static const long ID_CHECKBOX6
static const long ID_CHECKBOX5
wxImage * MRPTImage2wxImage(const mrpt::img::CImage &img)
Create a wxImage from a MRPT image.
mrpt::img::CImage * wxImage2MRPTImage(const wxImage &img)
Create a MRPT image from a wxImage.
void OnEraseBackground(wxEraseEvent &)
wxButton * btnBrowseRawlogDir
static const long ID_CHECKBOX3
static const long ID_TEXTCTRL8
static const long ID_TEXTCTRL3
This class allows loading and storing values and vectors of different types from a configuration text...
static const long ID_TEXTCTRL1
void OnMouseClick(wxMouseEvent &ev)
wxStaticText * StaticText11
static const long ID_CHECKBOX8
static const long ID_CHECKBOX7
wxCheckBox * cbKinect_Int
wxStaticText * StaticText9
wxChoice * cbOpencvResolution
wxButton * btnBrowseRawlog
wxStaticText * StaticText2
void OnbtnBrowseVideoClick(wxCommandEvent &event)
void readConfigIntoVideoSourcePanel(const std::string §, const mrpt::config::CConfigFileBase *cfg) const
static const long ID_CHOICE2
wxBitmap * MRPTImage2wxBitmap(const mrpt::img::CImage &img)
Create a wxBitmap from a MRPT image.
static const long ID_STATICTEXT6
wxCheckBox * cbBumblebeeRectif
static const long ID_TEXTCTRL2
static const long ID_CHECKBOX2
static const long ID_PANEL2
static const long ID_STATICTEXT3
void writeConfigFromVideoSourcePanel(const std::string §, mrpt::config::CConfigFileBase *cfg) const
static const long ID_PANEL5
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
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
wxStaticText * StaticText8
static const long ID_PANEL7
wxStaticText * StaticText1
void OnbtnBrowseRawlogClick(wxCommandEvent &event)
wxStaticText * StaticText10
mrpt::img::CImage::Ptr wxImage2MRPTImagePtr(const wxImage &img)
Create a MRPT image from a wxImage.
CPanelCameraSelection(wxWindow *parent, wxWindowID id=wxID_ANY)
~wxMRPTImageControl() override
wxStaticText * StaticText3
static const long ID_BUTTON7
static const long ID_STATICTEXT4
~CPanelCameraSelection() override
wxCheckBox * cbSR_chRange
static const long ID_STATICTEXT7
std::string selectedConfig
wxRadioBox * rbKinect_int
void AssignImage(wxBitmap *img)
Assigns this image.
A class for storing images as grayscale or RGB bitmaps.
static const long ID_PANEL6
static const long ID_BUTTON8
wxButton * btnBrowseVideo
static const long ID_STATICTEXT8
wxChoice * cbOpencvCamType