Main MRPT website > C++ reference for MRPT 1.5.3
List of all members | Public Member Functions | Protected Attributes

Detailed Description

A custom control to display the bitmap and avoid flicker.

Definition at line 137 of file WxUtils.h.

#include <mrpt/gui/WxUtils.h>

Inheritance diagram for mrpt::gui::wxMRPTImageControl:
Inheritance graph

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. Remember to call Refresh to display the image. More...
 
void AssignImage (const mrpt::utils::CImage &img)
 Assigns this image. Remember to call Refresh to display the 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
 
mrpt::synch::CCriticalSection m_img_cs
 
wxPoint m_last_mouse_point
 
wxPoint m_last_mouse_click
 
mrpt::synch::CCriticalSection m_mouse_cs
 

Constructor & Destructor Documentation

◆ wxMRPTImageControl()

mrpt::gui::wxMRPTImageControl::wxMRPTImageControl ( wxWindow *  parent,
wxWindowID  winID,
int  x,
int  y,
int  width,
int  height 
)

◆ ~wxMRPTImageControl()

virtual mrpt::gui::wxMRPTImageControl::~wxMRPTImageControl ( )
virtual

Member Function Documentation

◆ AssignImage() [1/2]

void mrpt::gui::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.

◆ AssignImage() [2/2]

void mrpt::gui::wxMRPTImageControl::AssignImage ( const mrpt::utils::CImage img)

Assigns this image. Remember to call Refresh to display the image.

◆ GetBitmap()

void mrpt::gui::wxMRPTImageControl::GetBitmap ( wxBitmap &  bmp)

◆ OnEraseBackground()

void mrpt::gui::wxMRPTImageControl::OnEraseBackground ( wxEraseEvent &  )
inline

Definition at line 158 of file WxUtils.h.

◆ OnMouseClick()

void mrpt::gui::wxMRPTImageControl::OnMouseClick ( wxMouseEvent &  ev)

◆ OnMouseMove()

void mrpt::gui::wxMRPTImageControl::OnMouseMove ( wxMouseEvent &  ev)

◆ OnPaint()

void mrpt::gui::wxMRPTImageControl::OnPaint ( wxPaintEvent &  ev)

Member Data Documentation

◆ m_img

wxBitmap* mrpt::gui::wxMRPTImageControl::m_img
protected

Definition at line 140 of file WxUtils.h.

◆ m_img_cs

mrpt::synch::CCriticalSection mrpt::gui::wxMRPTImageControl::m_img_cs
protected

Definition at line 141 of file WxUtils.h.

◆ m_last_mouse_click

wxPoint mrpt::gui::wxMRPTImageControl::m_last_mouse_click
protected

Definition at line 143 of file WxUtils.h.

◆ m_last_mouse_point

wxPoint mrpt::gui::wxMRPTImageControl::m_last_mouse_point
protected

Definition at line 143 of file WxUtils.h.

◆ m_mouse_cs

mrpt::synch::CCriticalSection mrpt::gui::wxMRPTImageControl::m_mouse_cs
protected

Definition at line 144 of file WxUtils.h.




Page generated by Doxygen 1.8.13 for MRPT 1.5.3 at Tue Oct 31 07:27:35 UTC 2017