MRPT  1.9.9
mrpt::gui::CWindowDialog::wxMRPTImageControl Class Reference

Detailed Description

A custom control to display the bitmap and avoid flicker.

Definition at line 334 of file WxSubsystem.h.

#include <mrpt/gui/WxSubsystem.h>

Inheritance diagram for mrpt::gui::CWindowDialog::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. 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

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 ( )

Definition at line 65 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 88 of file CDisplayWindow.cpp.

Referenced by mrpt::gui::WxSubsystem::CWXMainFrame::OnTimerProcessRequests().

◆ GetBitmap()

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

Definition at line 114 of file CDisplayWindow.cpp.

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

◆ OnChar()

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

Definition at line 87 of file CDisplayWindow.cpp.

◆ OnEraseBackground()

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

Definition at line 360 of file WxSubsystem.h.

◆ OnMouseClick()

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

Definition at line 81 of file CDisplayWindow.cpp.

◆ OnMouseMove()

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

Definition at line 75 of file CDisplayWindow.cpp.

◆ OnPaint()

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

Definition at line 100 of file CDisplayWindow.cpp.

Member Data Documentation

◆ m_img

wxBitmap* mrpt::gui::CWindowDialog::wxMRPTImageControl::m_img

Definition at line 337 of file WxSubsystem.h.

◆ m_img_cs

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

Definition at line 338 of file WxSubsystem.h.

◆ m_last_mouse_click

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

Definition at line 347 of file WxSubsystem.h.

◆ m_last_mouse_point

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

Definition at line 347 of file WxSubsystem.h.

◆ m_win2D

CDisplayWindow* mrpt::gui::CWindowDialog::wxMRPTImageControl::m_win2D

Definition at line 339 of file WxSubsystem.h.

Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: 7d5e6d718 Fri Aug 24 01:51:28 2018 +0200 at lun nov 2 08:35:50 CET 2020