MRPT
1.9.9
|
#include <mrpt/gui/WxUtils.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 | AssignImage (const mrpt::img::CImage &img) |
Assigns this image. More... | |
void | GetBitmap (wxBitmap &bmp) |
void | OnPaint (wxPaintEvent &ev) |
void | OnMouseMove (wxMouseEvent &ev) |
void | OnMouseClick (wxMouseEvent &ev) |
void | OnEraseBackground (wxEraseEvent &) |
Protected Attributes | |
wxBitmap * | m_img |
std::mutex | m_img_cs |
wxPoint | m_last_mouse_point |
wxPoint | m_last_mouse_click |
std::mutex | m_mouse_cs |
wxMRPTImageControl::wxMRPTImageControl | ( | wxWindow * | parent, |
wxWindowID | winID, | ||
int | x, | ||
int | y, | ||
int | width, | ||
int | height | ||
) |
Definition at line 111 of file WxUtils.cpp.
References OnMouseClick(), OnMouseMove(), and OnPaint().
|
override |
Definition at line 126 of file WxUtils.cpp.
void wxMRPTImageControl::AssignImage | ( | wxBitmap * | img | ) |
Assigns this image.
This object has the ownship of the image and will delete it when appropriate. Remember to call Refresh to display the image.
Definition at line 148 of file WxUtils.cpp.
void wxMRPTImageControl::AssignImage | ( | const mrpt::img::CImage & | img | ) |
Assigns this image.
Remember to call Refresh to display the image.
Definition at line 160 of file WxUtils.cpp.
References m_img, m_img_cs, and mrpt::gui::MRPTImage2wxBitmap().
void wxMRPTImageControl::GetBitmap | ( | wxBitmap & | bmp | ) |
Definition at line 188 of file WxUtils.cpp.
|
inline |
void wxMRPTImageControl::OnMouseClick | ( | wxMouseEvent & | ev | ) |
Definition at line 142 of file WxUtils.cpp.
References m_last_mouse_click, and m_mouse_cs.
Referenced by wxMRPTImageControl().
void wxMRPTImageControl::OnMouseMove | ( | wxMouseEvent & | ev | ) |
Definition at line 136 of file WxUtils.cpp.
References m_last_mouse_point, and m_mouse_cs.
Referenced by wxMRPTImageControl().
void wxMRPTImageControl::OnPaint | ( | wxPaintEvent & | ev | ) |
Definition at line 174 of file WxUtils.cpp.
References m_img, and m_img_cs.
Referenced by wxMRPTImageControl().
|
protected |
Definition at line 123 of file WxUtils.h.
Referenced by AssignImage(), GetBitmap(), OnPaint(), and ~wxMRPTImageControl().
|
protected |
Definition at line 124 of file WxUtils.h.
Referenced by AssignImage(), GetBitmap(), OnPaint(), and ~wxMRPTImageControl().
|
protected |
Definition at line 126 of file WxUtils.h.
Referenced by OnMouseClick().
|
protected |
Definition at line 126 of file WxUtils.h.
Referenced by OnMouseMove().
|
protected |
Definition at line 127 of file WxUtils.h.
Referenced by OnMouseClick(), and OnMouseMove().
Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: 8fe78517f Sun Jul 14 19:43:28 2019 +0200 at lun oct 28 02:10:00 CET 2019 |