A custom control to display the bitmap and avoid flicker.
Definition at line 337 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. 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 |
std::mutex | m_img_cs |
CDisplayWindow * | m_win2D |
CWindowDialog::wxMRPTImageControl::wxMRPTImageControl | ( | wxWindow * | parent, |
wxWindowID | winID, | ||
int | x, | ||
int | y, | ||
int | width, | ||
int | height | ||
) |
Definition at line 38 of file CDisplayWindow.cpp.
|
virtual |
Definition at line 65 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 88 of file CDisplayWindow.cpp.
Referenced by mrpt::gui::WxSubsystem::CWXMainFrame::OnTimerProcessRequests().
void CWindowDialog::wxMRPTImageControl::GetBitmap | ( | wxBitmap & | bmp | ) |
Definition at line 114 of file CDisplayWindow.cpp.
Referenced by mrpt::gui::CWindowDialog::OnMenuSave().
void CWindowDialog::wxMRPTImageControl::OnChar | ( | wxKeyEvent & | ev | ) |
Definition at line 87 of file CDisplayWindow.cpp.
|
inline |
Definition at line 363 of file WxSubsystem.h.
void CWindowDialog::wxMRPTImageControl::OnMouseClick | ( | wxMouseEvent & | ev | ) |
Definition at line 81 of file CDisplayWindow.cpp.
void CWindowDialog::wxMRPTImageControl::OnMouseMove | ( | wxMouseEvent & | ev | ) |
Definition at line 75 of file CDisplayWindow.cpp.
void CWindowDialog::wxMRPTImageControl::OnPaint | ( | wxPaintEvent & | ev | ) |
Definition at line 100 of file CDisplayWindow.cpp.
|
protected |
Definition at line 340 of file WxSubsystem.h.
|
protected |
Definition at line 341 of file WxSubsystem.h.
wxPoint mrpt::gui::CWindowDialog::wxMRPTImageControl::m_last_mouse_click |
Definition at line 350 of file WxSubsystem.h.
wxPoint mrpt::gui::CWindowDialog::wxMRPTImageControl::m_last_mouse_point |
Definition at line 350 of file WxSubsystem.h.
Referenced by mrpt::gui::CDisplayWindow::getLastMousePosition().
|
protected |
Definition at line 342 of file WxSubsystem.h.
Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: ae4571287 Thu Nov 23 00:06:53 2017 +0100 at dom oct 27 23:51:55 CET 2019 |