A custom control to display the bitmap and avoid flicker.
Definition at line 295 of file WxSubsystem.h.
#include <mrpt/gui/WxSubsystem.h>

Public Member Functions | |
| wxMRPTImageControl (wxWindow *parent, wxWindowID winID, int x, int y, int width, int height) | |
| virtual | ~wxMRPTImageControl () |
| void | AssignImage (wxBitmap *img) |
| Assigns this image. This object has the ownship of the image and will delete it when appropriate. More... | |
| void | GetBitmap (wxBitmap &bmp) |
| void | OnPaint (wxPaintEvent &ev) |
| void | OnMouseMove (wxMouseEvent &ev) |
| void | OnMouseClick (wxMouseEvent &ev) |
| void | OnChar (wxKeyEvent &ev) |
| void | OnEraseBackground (wxEraseEvent &ev) |
Public Attributes | |
| wxPoint | m_last_mouse_point |
| wxPoint | m_last_mouse_click |
Protected Attributes | |
| wxBitmap * | m_img |
| mrpt::synch::CCriticalSection | m_img_cs |
| CDisplayWindow * | m_win2D |
| CWindowDialog::wxMRPTImageControl::wxMRPTImageControl | ( | wxWindow * | parent, |
| wxWindowID | winID, | ||
| int | x, | ||
| int | y, | ||
| int | width, | ||
| int | height | ||
| ) |
Definition at line 46 of file CDisplayWindow.cpp.
|
virtual |
Definition at line 64 of file CDisplayWindow.cpp.
| void CWindowDialog::wxMRPTImageControl::AssignImage | ( | wxBitmap * | img | ) |
Assigns this image. This object has the ownship of the image and will delete it when appropriate.
Definition at line 90 of file CDisplayWindow.cpp.
Referenced by mrpt::gui::WxSubsystem::CWXMainFrame::OnTimerProcessRequests().
| void CWindowDialog::wxMRPTImageControl::GetBitmap | ( | wxBitmap & | bmp | ) |
Definition at line 116 of file CDisplayWindow.cpp.
Referenced by mrpt::gui::CWindowDialog::OnMenuSave().
| void CWindowDialog::wxMRPTImageControl::OnChar | ( | wxKeyEvent & | ev | ) |
Definition at line 86 of file CDisplayWindow.cpp.
|
inline |
Definition at line 317 of file WxSubsystem.h.
| void CWindowDialog::wxMRPTImageControl::OnMouseClick | ( | wxMouseEvent & | ev | ) |
Definition at line 80 of file CDisplayWindow.cpp.
| void CWindowDialog::wxMRPTImageControl::OnMouseMove | ( | wxMouseEvent & | ev | ) |
Definition at line 74 of file CDisplayWindow.cpp.
| void CWindowDialog::wxMRPTImageControl::OnPaint | ( | wxPaintEvent & | ev | ) |
Definition at line 102 of file CDisplayWindow.cpp.
|
protected |
Definition at line 298 of file WxSubsystem.h.
|
protected |
Definition at line 299 of file WxSubsystem.h.
| wxPoint mrpt::gui::CWindowDialog::wxMRPTImageControl::m_last_mouse_click |
Definition at line 306 of file WxSubsystem.h.
| wxPoint mrpt::gui::CWindowDialog::wxMRPTImageControl::m_last_mouse_point |
Definition at line 306 of file WxSubsystem.h.
Referenced by mrpt::gui::CDisplayWindow::getLastMousePosition().
|
protected |
Definition at line 300 of file WxSubsystem.h.
| Page generated by Doxygen 1.8.14 for MRPT 1.5.7 Git: 5902e14cc Wed Apr 24 15:04:01 2019 +0200 at lun oct 28 01:39:17 CET 2019 |