MRPT  1.9.9
List of all members | Public Member Functions | Public Attributes | Protected Attributes
mrpt::gui::CWindowDialog::wxMRPTImageControl Class Reference

Detailed Description

A custom control to display the bitmap and avoid flicker.

Definition at line 322 of file WxSubsystem.h.

#include <mrpt/gui/WxSubsystem.h>

Inheritance diagram for mrpt::gui::CWindowDialog::wxMRPTImageControl:

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
 
CDisplayWindowm_win2D = nullptr
 

Constructor & Destructor Documentation

◆ wxMRPTImageControl()

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

Definition at line 38 of file CDisplayWindow.cpp.

◆ ~wxMRPTImageControl()

CWindowDialog::wxMRPTImageControl::~wxMRPTImageControl ( )
override

Definition at line 54 of file CDisplayWindow.cpp.

Member Function Documentation

◆ AssignImage()

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.

◆ GetBitmap()

void CWindowDialog::wxMRPTImageControl::GetBitmap ( wxBitmap &  bmp)

Definition at line 93 of file CDisplayWindow.cpp.

Referenced by mrpt::gui::CWindowDialog::OnMenuSave().

Here is the caller graph for this function:

◆ OnChar()

void CWindowDialog::wxMRPTImageControl::OnChar ( wxKeyEvent &  ev)

Definition at line 72 of file CDisplayWindow.cpp.

◆ OnEraseBackground()

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

Definition at line 348 of file WxSubsystem.h.

◆ OnMouseClick()

void CWindowDialog::wxMRPTImageControl::OnMouseClick ( wxMouseEvent &  ev)

Definition at line 66 of file CDisplayWindow.cpp.

◆ OnMouseMove()

void CWindowDialog::wxMRPTImageControl::OnMouseMove ( wxMouseEvent &  ev)

Definition at line 60 of file CDisplayWindow.cpp.

◆ OnPaint()

void CWindowDialog::wxMRPTImageControl::OnPaint ( wxPaintEvent &  ev)

Definition at line 79 of file CDisplayWindow.cpp.

Member Data Documentation

◆ m_img

std::unique_ptr<wxBitmap> mrpt::gui::CWindowDialog::wxMRPTImageControl::m_img
protected

Definition at line 325 of file WxSubsystem.h.

◆ m_img_cs

std::mutex mrpt::gui::CWindowDialog::wxMRPTImageControl::m_img_cs
protected

Definition at line 326 of file WxSubsystem.h.

◆ m_last_mouse_click

wxPoint mrpt::gui::CWindowDialog::wxMRPTImageControl::m_last_mouse_click

Definition at line 335 of file WxSubsystem.h.

◆ m_last_mouse_point

wxPoint mrpt::gui::CWindowDialog::wxMRPTImageControl::m_last_mouse_point

Definition at line 335 of file WxSubsystem.h.

◆ m_win2D

CDisplayWindow* mrpt::gui::CWindowDialog::wxMRPTImageControl::m_win2D = nullptr
protected

Definition at line 327 of file WxSubsystem.h.




Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: 7e629e01a Sat Dec 14 00:05:55 2019 +0100 at sáb dic 14 00:15:10 CET 2019