|
MRPT
2.0.3
|
A custom control to display the bitmap and avoid flicker.
Definition at line 320 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) | |
| ~wxMRPTImageControl () override | |
| void | AssignImage (wxBitmap *img) |
| Assigns this image. 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 | |
| std::unique_ptr< wxBitmap > | m_img |
| std::mutex | m_img_cs |
| CDisplayWindow * | m_win2D = nullptr |
| CWindowDialog::wxMRPTImageControl::wxMRPTImageControl | ( | wxWindow * | parent, |
| wxWindowID | winID, | ||
| int | x, | ||
| int | y, | ||
| int | width, | ||
| int | height | ||
| ) |
Definition at line 38 of file CDisplayWindow.cpp.
|
override |
Definition at line 54 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 73 of file CDisplayWindow.cpp.
| void CWindowDialog::wxMRPTImageControl::GetBitmap | ( | wxBitmap & | bmp | ) |
Definition at line 93 of file CDisplayWindow.cpp.
Referenced by mrpt::gui::CWindowDialog::OnMenuSave().
| void CWindowDialog::wxMRPTImageControl::OnChar | ( | wxKeyEvent & | ev | ) |
Definition at line 72 of file CDisplayWindow.cpp.
|
inline |
Definition at line 346 of file WxSubsystem.h.
| void CWindowDialog::wxMRPTImageControl::OnMouseClick | ( | wxMouseEvent & | ev | ) |
Definition at line 66 of file CDisplayWindow.cpp.
| void CWindowDialog::wxMRPTImageControl::OnMouseMove | ( | wxMouseEvent & | ev | ) |
Definition at line 60 of file CDisplayWindow.cpp.
| void CWindowDialog::wxMRPTImageControl::OnPaint | ( | wxPaintEvent & | ev | ) |
Definition at line 79 of file CDisplayWindow.cpp.
|
protected |
Definition at line 323 of file WxSubsystem.h.
|
protected |
Definition at line 324 of file WxSubsystem.h.
| wxPoint mrpt::gui::CWindowDialog::wxMRPTImageControl::m_last_mouse_click |
Definition at line 333 of file WxSubsystem.h.
| wxPoint mrpt::gui::CWindowDialog::wxMRPTImageControl::m_last_mouse_point |
Definition at line 333 of file WxSubsystem.h.
|
protected |
Definition at line 325 of file WxSubsystem.h.
| Page generated by Doxygen 1.8.14 for MRPT 2.0.3 Git: 8e9e8af54 Wed May 13 17:41:24 2020 +0200 at miƩ may 13 17:55:54 CEST 2020 |