16 #if MRPT_HAS_WXWIDGETS
19 #include <wx/statbmp.h>
21 #include <wx/toolbar.h>
24 #include <wx/statusbr.h>
25 #include <wx/msgdlg.h>
26 #include <wx/artprov.h>
27 #include <wx/bitmap.h>
30 #include <wx/string.h>
31 #include <wx/msgdlg.h>
33 #include <wx/filedlg.h>
34 #include <wx/progdlg.h>
35 #include <wx/imaglist.h>
36 #include <wx/busyinfo.h>
38 #include <wx/textdlg.h>
39 #include <wx/dirdlg.h>
40 #include <wx/colordlg.h>
41 #include <wx/dcmemory.h>
44 #include <wx/spinctrl.h>
46 #include <wx/notebook.h>
47 #include <wx/button.h>
49 #include <wx/stattext.h>
50 #include <wx/textctrl.h>
51 #include <wx/choice.h>
52 #include <wx/radiobox.h>
53 #include <wx/settings.h>
54 #include <wx/checkbox.h>
56 #include <wx/dcclient.h>
71 #if MRPT_HAS_WXWIDGETS
75 #define _U(x) wxString::From8BitData(x)
83 #define WX_START_TRY \
88 catch (std::exception & e) \
91 wxString(e.what(), wxConvUTF8), wxT("Exception"), wxOK, nullptr); \
95 wxMessageBox(_("Untyped exception!"), _("Exception"), wxOK, nullptr); \
150 wxWindow* parent, wxWindowID winID,
int x,
int y,
int width,
162 void OnPaint(wxPaintEvent& ev);
288 DECLARE_EVENT_TABLE()
This class allows loading and storing values and vectors of different types from a configuration text...
This class implements a config file-like interface over a memory-stored string list.
A panel to select the camera input from all the formats supported by MRPT.
static const long ID_PANEL7
static const long ID_CHECKBOX2
wxTextCtrl * edCustomCamConfig
wxChoice * cbOpencvCamType
static const long ID_SPINCTRL1
wxChoice * cbOpencvResolution
wxCheckBox * cbKinect_Depth
wxStaticText * StaticText11
wxStaticText * StaticText6
static const long ID_PANEL5
static const long ID_PANEL8
static const long ID_CHECKBOX1
wxStaticText * StaticText3
static const long ID_TEXTCTRL4
static const long ID_PANEL1
static const long ID_STATICTEXT11
wxStaticText * StaticText8
static const long ID_PANEL3
wxTextCtrl * edRawlogFile
static const long ID_CHECKBOX7
wxTextCtrl * edRawlogLabel
wxButton * btnBrowseVideo
wxStaticText * StaticText1
virtual ~CPanelCameraSelection()
static const long ID_RADIOBOX3
static const long ID_BUTTON9
static const long ID_STATICTEXT8
wxStaticText * StaticText2
wxStaticText * StaticText7
wxCheckBox * cbKinect_Int
static const long ID_BUTTON7
wxButton * btnBrowseRawlogDir
wxCheckBox * cbSR_chIntensity
void writeConfigFromVideoSourcePanel(const std::string §, mrpt::config::CConfigFileBase *cfg) const
static const long ID_PANEL6
static const long ID_BUTTON8
static const long ID_STATICTEXT5
static const long ID_STATICTEXT4
static const long ID_CHECKBOX8
wxNotebook * pagesCameras
static const long ID_TEXTCTRL6
static const long ID_TEXTCTRL7
wxRadioBox * rbKinect_int
static const long ID_PANEL4
void readConfigIntoVideoSourcePanel(const std::string §, const mrpt::config::CConfigFileBase *cfg) const
wxButton * btnBrowseRawlog
static const long ID_NOTEBOOK1
static const long ID_RADIOBOX2
static const long ID_CHECKBOX6
static const long ID_STATICTEXT1
static const long ID_CHOICE2
void OnbtnBrowseRawlogDirClick(wxCommandEvent &event)
static const long ID_STATICTEXT7
static const long ID_STATICTEXT2
static const long ID_STATICTEXT9
void OnbtnBrowseVideoClick(wxCommandEvent &event)
static const long ID_PANEL2
CPanelCameraSelection(wxWindow *parent, wxWindowID id=wxID_ANY)
static const long ID_TEXTCTRL3
static const long ID_CHECKBOX3
wxCheckBox * cbBumblebeeRectif
static const long ID_RADIOBOX1
wxTextCtrl * edRawlogImgDir
wxStaticText * StaticText4
wxStaticText * StaticText5
void OnbtnBrowseRawlogClick(wxCommandEvent &event)
static const long ID_TEXTCTRL8
static const long ID_TEXTCTRL1
wxStaticText * StaticText9
wxStaticText * StaticText10
static const long ID_STATICTEXT3
wxSpinCtrl * opencvCamIndex
wxCheckBox * cbSR_chRange
static const long ID_CHECKBOX4
static const long ID_CHOICE1
wxRadioBox * rbBumblebeeSel
static const long ID_STATICTEXT6
static const long ID_TEXTCTRL2
static const long ID_STATICTEXT10
static const long ID_CHECKBOX9
static const long ID_CHECKBOX5
A custom control to display the bitmap and avoid flicker.
void OnMouseMove(wxMouseEvent &ev)
virtual ~wxMRPTImageControl()
void GetBitmap(wxBitmap &bmp)
wxMRPTImageControl(wxWindow *parent, wxWindowID winID, int x, int y, int width, int height)
void AssignImage(wxBitmap *img)
Assigns this image.
wxPoint m_last_mouse_click
void OnPaint(wxPaintEvent &ev)
void OnEraseBackground(wxEraseEvent &)
wxPoint m_last_mouse_point
void OnMouseClick(wxMouseEvent &ev)
A class for storing images as grayscale or RGB bitmaps.
std::shared_ptr< CImage > Ptr
GLenum GLsizei GLsizei height
GLsizei const GLchar ** string
wxImage * MRPTImage2wxImage(const mrpt::img::CImage &img)
Create a wxImage from a MRPT image.
mrpt::img::CImage::Ptr wxImage2MRPTImagePtr(const wxImage &img)
Create a MRPT image from a wxImage.
wxImage * IplImage2wxImage(void *img)
Create a wxImage from a IPL image.
mrptKeyModifier keyEventToMrptKeyModifier(const wxKeyEvent &ev)
Extracts the key modifiers from a wxKeyEvent.
wxBitmap * MRPTImage2wxBitmap(const mrpt::img::CImage &img)
Create a wxBitmap from a MRPT image.
mrpt::img::CImage * wxImage2MRPTImage(const wxImage &img)
Create a MRPT image from a wxImage.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
mrpt::config::CConfigFileMemory selectedConfig