#include <mrpt/gui/CBaseGUIWindow.h>
Public Member Functions | |
void * | getWxObject () |
Read-only access to the wxDialog object. | |
void | notifyChildWindowDestruction () |
Called by wx main thread to set m_hwnd to NULL. | |
void | notifySemThreadReady () |
Called by wx main thread to signal the semaphore that the wx window is built and ready. | |
CBaseGUIWindow (const std::string &initial_caption=std::string()) | |
virtual | ~CBaseGUIWindow () |
bool | isOpen () |
Returns false if the user has already closed the window. | |
virtual void | resize (unsigned int width, unsigned int height)=0 |
Resizes the window, stretching the image to fit into the display area. | |
virtual void | setPos (int x, int y)=0 |
Changes the position of the window on the screen. | |
virtual void | setWindowTitle (const std::string &str)=0 |
Changes the window title text. | |
int | waitForKey (bool ignoreControlKeys=true) |
Waits for any key to be pushed on the image or the console, and returns the key code. | |
bool | keyHit () const |
Returns true if a key has been pushed, without blocking waiting for a new key being pushed. | |
void | clearKeyHitFlag () |
Assure that "keyHit" will return false until the next pushed key. | |
Protected Attributes | |
synch::CSemaphore | m_semThreadReady |
This semaphore will be signaled when the wx window is built and ready. | |
synch::CSemaphore | m_semWindowDestroyed |
This semaphore will be signaled when the wx window is destroyed. | |
std::string | m_caption |
The caption of the window. | |
void_ptr_noncopy | m_hwnd |
The window handle. | |
volatile bool | m_keyPushed |
volatile int | m_keyPushedCode |
Friends | |
class | CWindowDialog |
class | C3DWindowDialog |
class | CWindowDialogPlots |
Definition at line 47 of file CBaseGUIWindow.h.
mrpt::gui::CBaseGUIWindow::CBaseGUIWindow | ( | const std::string & | initial_caption = std::string() |
) |
virtual mrpt::gui::CBaseGUIWindow::~CBaseGUIWindow | ( | ) | [virtual] |
void mrpt::gui::CBaseGUIWindow::clearKeyHitFlag | ( | ) | [inline] |
Assure that "keyHit" will return false until the next pushed key.
Definition at line 104 of file CBaseGUIWindow.h.
void* mrpt::gui::CBaseGUIWindow::getWxObject | ( | ) | [inline] |
bool mrpt::gui::CBaseGUIWindow::isOpen | ( | ) |
Returns false if the user has already closed the window.
bool mrpt::gui::CBaseGUIWindow::keyHit | ( | ) | const [inline] |
Returns true if a key has been pushed, without blocking waiting for a new key being pushed.
Definition at line 96 of file CBaseGUIWindow.h.
void mrpt::gui::CBaseGUIWindow::notifyChildWindowDestruction | ( | ) |
Called by wx main thread to set m_hwnd to NULL.
void mrpt::gui::CBaseGUIWindow::notifySemThreadReady | ( | ) |
Called by wx main thread to signal the semaphore that the wx window is built and ready.
virtual void mrpt::gui::CBaseGUIWindow::resize | ( | unsigned int | width, | |
unsigned int | height | |||
) | [pure virtual] |
Resizes the window, stretching the image to fit into the display area.
Implemented in mrpt::gui::CDisplayWindow, mrpt::gui::CDisplayWindow3D, and mrpt::gui::CDisplayWindowPlots.
virtual void mrpt::gui::CBaseGUIWindow::setPos | ( | int | x, | |
int | y | |||
) | [pure virtual] |
Changes the position of the window on the screen.
Implemented in mrpt::gui::CDisplayWindow, mrpt::gui::CDisplayWindow3D, and mrpt::gui::CDisplayWindowPlots.
virtual void mrpt::gui::CBaseGUIWindow::setWindowTitle | ( | const std::string & | str | ) | [pure virtual] |
Changes the window title text.
Implemented in mrpt::gui::CDisplayWindow, mrpt::gui::CDisplayWindow3D, and mrpt::gui::CDisplayWindowPlots.
int mrpt::gui::CBaseGUIWindow::waitForKey | ( | bool | ignoreControlKeys = true |
) |
Waits for any key to be pushed on the image or the console, and returns the key code.
Key codes are Virtual Key Codes from wxWidgets: http://docs.wxwidgets.org/stable/wx_keycodes.html
friend class C3DWindowDialog [friend] |
friend class CWindowDialog [friend] |
Definition at line 49 of file CBaseGUIWindow.h.
friend class CWindowDialogPlots [friend] |
std::string mrpt::gui::CBaseGUIWindow::m_caption [protected] |
void_ptr_noncopy mrpt::gui::CBaseGUIWindow::m_hwnd [protected] |
volatile bool mrpt::gui::CBaseGUIWindow::m_keyPushed [protected] |
Definition at line 60 of file CBaseGUIWindow.h.
volatile int mrpt::gui::CBaseGUIWindow::m_keyPushedCode [protected] |
Definition at line 61 of file CBaseGUIWindow.h.
This semaphore will be signaled when the wx window is built and ready.
Definition at line 54 of file CBaseGUIWindow.h.
This semaphore will be signaled when the wx window is destroyed.
Definition at line 55 of file CBaseGUIWindow.h.
Page generated by Doxygen 1.5.7.1 for MRPT 0.7.1 SVN: at Mon Aug 17 22:58:25 EDT 2009 |