MRPT  1.9.9
Utilities for MRPT-wxWidgets interfacing (in

Detailed Description

#include <mrpt/gui/WxUtils.h>)

Collaboration diagram for Utilities for MRPT-wxWidgets interfacing (in:

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 * mrpt::gui::MRPTImage2wxImage (const mrpt::img::CImage &img)
 Create a wxImage from a MRPT image. More...
 
wxBitmap * mrpt::gui::MRPTImage2wxBitmap (const mrpt::img::CImage &img)
 Create a wxBitmap from a MRPT image. More...
 
wxImage * mrpt::gui::IplImage2wxImage (void *img)
 Create a wxImage from a IPL image. More...
 
mrpt::img::CImagemrpt::gui::wxImage2MRPTImage (const wxImage &img)
 Create a MRPT image from a wxImage. More...
 
mrpt::img::CImage::Ptr 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 77 of file WxUtils.h.

◆ WX_END_TRY

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

Definition at line 86 of file WxUtils.h.

◆ WX_START_TRY

#define WX_START_TRY
Value:
try \
{

Definition at line 83 of file WxUtils.h.

Function Documentation

◆ IplImage2wxImage()

wxImage * 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

Definition at line 236 of file WxUtils.cpp.

References ASSERT_, and mrpt::system::os::memcpy().

◆ keyEventToMrptKeyModifier()

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

◆ MRPTImage2wxBitmap()

wxBitmap * mrpt::gui::MRPTImage2wxBitmap ( const mrpt::img::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

Definition at line 167 of file WxUtils.cpp.

References mrpt::system::os::memcpy(), and THROW_EXCEPTION.

Referenced by mrpt::gui::wxMRPTImageControl::AssignImage().

◆ MRPTImage2wxImage()

wxImage * mrpt::gui::MRPTImage2wxImage ( const mrpt::img::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

Definition at line 28 of file WxUtils.cpp.

References mrpt::system::os::memcpy().

Referenced by mrpt::gui::CDisplayWindowPlots::image(), and mrpt::gui::CDisplayWindow::showImage().

◆ wxImage2MRPTImage()

mrpt::img::CImage * 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

Definition at line 279 of file WxUtils.cpp.

References mrpt::img::CImage::loadFromMemoryBuffer().

Referenced by mrpt::gui::wxImage2MRPTImagePtr().

◆ wxImage2MRPTImagePtr()

mrpt::img::CImage::Ptr 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

Definition at line 295 of file WxUtils.cpp.

References mrpt::gui::wxImage2MRPTImage().




Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: 7d5e6d718 Fri Aug 24 01:51:28 2018 +0200 at lun nov 2 08:35:50 CET 2020