Main MRPT website > C++ reference for MRPT 1.5.3
Classes | Namespaces | Macros | Functions
Utilities for MRPT-wxWidgets interfacing (in #include <mrpt/gui/WxUtils.h>)

Detailed Description

Collaboration diagram for Utilities for MRPT-wxWidgets interfacing (in #include <mrpt/gui/WxUtils.h>):

Classes

class  mrpt::gui::wxMRPTImageControl
 A custom control to display the bitmap and avoid flicker. More...
 
class  mrpt::gui::CPanelCameraSelection
 A panel to select the camera input from all the formats supported by MRPT. More...
 

Namespaces

 mrpt::gui::detail
 Auxiliary structures used internally to mrpt.
 

Macros

#define _U(x)   (x)
 
#define WX_START_TRY
 
#define WX_END_TRY
 

Functions

wxImage GUI_IMPEXPmrpt::gui::MRPTImage2wxImage (const mrpt::utils::CImage &img)
 Create a wxImage from a MRPT image. More...
 
wxBitmap GUI_IMPEXPmrpt::gui::MRPTImage2wxBitmap (const mrpt::utils::CImage &img)
 Create a wxBitmap from a MRPT image. More...
 
wxImage GUI_IMPEXPmrpt::gui::IplImage2wxImage (void *img)
 Create a wxImage from a IPL image. More...
 
mrpt::utils::CImage GUI_IMPEXPmrpt::gui::wxImage2MRPTImage (const wxImage &img)
 Create a MRPT image from a wxImage. More...
 
mrpt::utils::CImagePtr GUI_IMPEXP mrpt::gui::wxImage2MRPTImagePtr (const wxImage &img)
 Create a MRPT image from a wxImage. More...
 
mrptKeyModifier mrpt::gui::keyEventToMrptKeyModifier (const wxKeyEvent &ev)
 Extracts the key modifiers from a wxKeyEvent. More...
 

Macro Definition Documentation

◆ _U

#define _U (   x)    (x)

Definition at line 80 of file WxUtils.h.

◆ WX_END_TRY

#define WX_END_TRY
Value:
} \
catch(std::exception &e) \
{ \
wxMessageBox( wxString(e.what(),wxConvUTF8), wxT("Exception"), wxOK, NULL); \
} \
catch(...) \
{ \
wxMessageBox( _("Untyped exception!"), _("Exception"), wxOK, NULL); \
}

Definition at line 90 of file WxUtils.h.

◆ WX_START_TRY

#define WX_START_TRY
Value:
try \
{

Definition at line 86 of file WxUtils.h.

Function Documentation

◆ IplImage2wxImage()

wxImage GUI_IMPEXP* mrpt::gui::IplImage2wxImage ( void *  img)

Create a wxImage from a IPL image.

The new object must be freed by the user when not required anymore.

See also
IplImage2wxImage

◆ keyEventToMrptKeyModifier()

mrptKeyModifier mrpt::gui::keyEventToMrptKeyModifier ( const wxKeyEvent &  ev)

Extracts the key modifiers from a wxKeyEvent.

◆ MRPTImage2wxBitmap()

wxBitmap GUI_IMPEXP* mrpt::gui::MRPTImage2wxBitmap ( const mrpt::utils::CImage img)

Create a wxBitmap from a MRPT image.

The new object must be freed by the user when not required anymore.

See also
MRPTImage2wxImage

◆ MRPTImage2wxImage()

wxImage GUI_IMPEXP* mrpt::gui::MRPTImage2wxImage ( const mrpt::utils::CImage img)

Create a wxImage from a MRPT image.

The new object must be freed by the user when not required anymore.

See also
MRPTImage2wxImage

◆ wxImage2MRPTImage()

mrpt::utils::CImage GUI_IMPEXP* mrpt::gui::wxImage2MRPTImage ( const wxImage &  img)

Create a MRPT image from a wxImage.

The new object must be freed by the user when not required anymore. It is recommended to use wxImage2MRPTImagePtr instead since smart pointers are safer to manage.

See also
wxImage2MRPTImage, wxImage2MRPTImagePtr

◆ wxImage2MRPTImagePtr()

mrpt::utils::CImagePtr GUI_IMPEXP mrpt::gui::wxImage2MRPTImagePtr ( const wxImage &  img)

Create a MRPT image from a wxImage.

The new object is returned as a smart pointer to a CImage object.

See also
wxImage2MRPTImage



Page generated by Doxygen 1.8.13 for MRPT 1.5.3 at Mon Oct 30 10:27:08 UTC 2017