Main MRPT website > C++ reference for MRPT 1.9.9
List of all members | Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes | Static Private Attributes | Friends
mrpt::gui::WxSubsystem::CWXMainFrame Class Reference

Detailed Description

The main frame of the wxWidgets application.

Definition at line 136 of file WxSubsystem.h.

#include <mrpt/gui/WxSubsystem.h>

Inheritance diagram for mrpt::gui::WxSubsystem::CWXMainFrame:
Inheritance graph

Public Member Functions

 CWXMainFrame (wxWindow *parent, wxWindowID id=-1)
 
virtual ~CWXMainFrame ()
 

Static Public Member Functions

static int notifyWindowCreation ()
 Atomically increments the number of windows created with the main frame as parent. More...
 
static int notifyWindowDestruction ()
 Atomically decrements the number of windows created with the main frame as parent. More...
 

Static Public Attributes

static volatile CWXMainFrameoneInstance
 

Private Member Functions

void OnTimerProcessRequests (wxTimerEvent &event)
 This method processes the pending requests from the main MRPT application thread. More...
 

Private Attributes

wxTimer * m_theTimer
 

Static Private Attributes

static std::mutex cs_windowCount
 
static int m_windowCount = 0
 

Friends

void WxSubsystem::waitWxShutdownsIfNoWindows ()
 

Constructor & Destructor Documentation

◆ CWXMainFrame()

WxSubsystem::CWXMainFrame::CWXMainFrame ( wxWindow *  parent,
wxWindowID  id = -1 
)

Definition at line 161 of file WxSubsystem.cpp.

References ID_TIMER_WX_PROCESS_REQUESTS.

◆ ~CWXMainFrame()

WxSubsystem::CWXMainFrame::~CWXMainFrame ( )
virtual

Definition at line 187 of file WxSubsystem.cpp.

Member Function Documentation

◆ notifyWindowCreation()

int WxSubsystem::CWXMainFrame::notifyWindowCreation ( )
static

Atomically increments the number of windows created with the main frame as parent.

Returns
The updated number of windows.

Definition at line 200 of file WxSubsystem.cpp.

Referenced by mrpt::gui::C3DWindowDialog::C3DWindowDialog(), mrpt::gui::CWindowDialog::CWindowDialog(), and mrpt::gui::CWindowDialogPlots::CWindowDialogPlots().

Here is the caller graph for this function:

◆ notifyWindowDestruction()

int WxSubsystem::CWXMainFrame::notifyWindowDestruction ( )
static

Atomically decrements the number of windows created with the main frame as parent.

Returns
The updated number of windows (0 if the calling was the last one).

Definition at line 206 of file WxSubsystem.cpp.

Referenced by mrpt::gui::CWindowDialog::OnClose(), mrpt::gui::C3DWindowDialog::OnClose(), and mrpt::gui::CWindowDialogPlots::OnClose().

Here is the caller graph for this function:

◆ OnTimerProcessRequests()

void WxSubsystem::CWXMainFrame::OnTimerProcessRequests ( wxTimerEvent &  event)
private

This method processes the pending requests from the main MRPT application thread.

The requests may be to create a new window, close another one, change title, etc...

Definition at line 289 of file WxSubsystem.cpp.

References _U, mrpt::gui::detail::TReturnAskUserOpenCamera::accepted_by_user, mrpt::gui::C3DWindowDialog::addTextMessage(), mrpt::gui::CWindowDialog::wxMRPTImageControl::AssignImage(), mrpt::gui::WxSubsystem::TRequestToWxMainThread::boolVal, mrpt::gui::C3DWindowDialog::clearTextMessages(), mrpt::gui::CBaseGUIWindow::getWxObject(), mrpt::gui::CWindowDialogPlots::image(), mrpt::gui::CWindowDialogPlots::m_firstSubmenu, mrpt::gui::CWindowDialogPlots::m_ID2ID, mrpt::gui::CWindowDialog::m_image, mrpt::gui::CWindowDialogPlots::m_plot, mrpt::gui::CBaseGUIWindow::notifySemThreadReady(), oneInstance, mrpt::gui::WxSubsystem::TRequestToWxMainThread::OPCODE, mrpt::gui::CWindowDialogPlots::plot(), mrpt::gui::CWindowDialogPlots::plotEllipse(), mrpt::gui::WxSubsystem::TRequestToWxMainThread::plotName, mrpt::gui::detail::TReturnAskUserOpenCamera::selectedConfig, mrpt::gui::WxSubsystem::TRequestToWxMainThread::source2D, mrpt::gui::WxSubsystem::TRequestToWxMainThread::source3D, mrpt::gui::WxSubsystem::TRequestToWxMainThread::sourceCameraSelectDialog, mrpt::gui::WxSubsystem::TRequestToWxMainThread::sourcePlots, mrpt::gui::WxSubsystem::TRequestToWxMainThread::str, mrpt::gui::WxSubsystem::TRequestToWxMainThread::vector_x, mrpt::gui::WxSubsystem::TRequestToWxMainThread::vector_y, mrpt::gui::WxSubsystem::TRequestToWxMainThread::voidPtr, mrpt::gui::WxSubsystem::TRequestToWxMainThread::voidPtr2, mrpt::gui::WxSubsystem::TRequestToWxMainThread::x, and mrpt::gui::WxSubsystem::TRequestToWxMainThread::y.

Here is the call graph for this function:

Friends And Related Function Documentation

◆ WxSubsystem::waitWxShutdownsIfNoWindows

Member Data Documentation

◆ cs_windowCount

std::mutex WxSubsystem::CWXMainFrame::cs_windowCount
staticprivate

Definition at line 160 of file WxSubsystem.h.

◆ m_theTimer

wxTimer* mrpt::gui::WxSubsystem::CWXMainFrame::m_theTimer
private

Definition at line 163 of file WxSubsystem.h.

◆ m_windowCount

int WxSubsystem::CWXMainFrame::m_windowCount = 0
staticprivate

Definition at line 161 of file WxSubsystem.h.

◆ oneInstance

volatile WxSubsystem::CWXMainFrame * WxSubsystem::CWXMainFrame::oneInstance
static



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