MRPT  1.9.9
mrpt::gui::WxSubsystem::TRequestToWxMainThread Struct Reference

Detailed Description

The data structure for each inter-thread request:

Definition at line 190 of file WxSubsystem.h.

#include <mrpt/gui/WxSubsystem.h>

Public Member Functions

 TRequestToWxMainThread ()
 

Public Attributes

mrpt::gui::CDisplayWindowsource2D
 Only one of source* can be non-nullptr, indicating the class that generated the request. More...
 
mrpt::gui::CDisplayWindow3Dsource3D
 Only one of source* can be non-nullptr, indicating the class that generated the request. More...
 
mrpt::gui::CDisplayWindowPlotssourcePlots
 Only one of source* can be non-nullptr, indicating the class that generated the request. More...
 
bool sourceCameraSelectDialog
 Only one of source* can be non-nullptr, indicating the class that generated the request. More...
 
std::string str
 Parameters, depending on OPCODE. More...
 
voidvoidPtr
 Parameters, depending on OPCODE. More...
 
voidvoidPtr2
 
int x
 
int y
 
bool boolVal
 
mrpt::math::CVectorFloat vector_x
 
mrpt::math::CVectorFloat vector_y
 
std::string plotName
 
int OPCODE
 Valid codes are: For CDisplayWindow: More...
 

Constructor & Destructor Documentation

◆ TRequestToWxMainThread()

mrpt::gui::WxSubsystem::TRequestToWxMainThread::TRequestToWxMainThread ( )
inline

Definition at line 192 of file WxSubsystem.h.

Member Data Documentation

◆ boolVal

◆ OPCODE

int mrpt::gui::WxSubsystem::TRequestToWxMainThread::OPCODE

Valid codes are: For CDisplayWindow:

  • 200: Create a new 2D window, with caption "str" and initial size "x" & "y", and save the "wxFrame*" in the "void**" passed in voidPtr.
  • 201: Updates the image shown in the window, from a "wxImage*" passed in voidPtr2. The wxImage object will be freed with delete after that. voidPtr must be a "wxFrame*", a "CWindowDialog*" actually.
  • 202: Set position to x,y
  • 203: Change size to x,y
  • 204: Change title to "str"
  • 299: Delete the window associated with this source object.

For CDisplayWindow3D:

  • 300: Create a new 3D window, with caption "str" and initial size "x" & "y", and save the "wxFrame*" in the "void**" passed in voidPtr.
  • 302: Set position to x,y
  • 303: Change size to x,y
  • 304: Change title to "str"
    • 350: Force refresh
    • 360: Add a 2D text message: vector_x: [0]:x, [1]:y, [2,3,4]:R G B, "x": enum of desired font. "y": unique index, "str": String.
    • 361: Clear all 2D text messages.
    • 362: Add a 2D text message (vectorized fonts)
    • 370: Change min/max range: min=vector_x[0], max=vector_x[1]
  • 399: Delete the window associated with this source object.

For CDisplayWindowPlots:

  • 400: Create a new Plots window, with caption "str" and initial size "x" & "y",and save the "wxFrame*" in the "void**" passed in voidPtr.
  • 402: Set position to x,y
  • 403: Change size to x,y
  • 404: Change title to "str"
  • 499: Delete the window associated with this source object.
    • 410: Depending on "boolVal", enable/disable the mouse-zoom & pan
    • 411: Depending on "boolVal", enable/disable the aspect ratio fix
    • 412: Zoom over a rectangle vectorx[0-1] & vectory[0-1]
    • 413: Axis fit, with aspect ratio fix to boolVal.
    • 414: Clear all plot objects.
    • 420: Add/update a 2D line/points plot: x/y data= vector_x/vector_y, format string=str, plot name =plotName.
    • 421: Add/update a 2D ellipse: format string=str, plot name =plotName, vector_x[0,1]:X/Y center, vector_x[2]:quantiles, vector_y[0,1,2]: Covariance matrix entries 00,11,01, boolVal=showName?
    • 422: Add/update a bitmap: plot name =plotName, vector_x[0,1]:X/Y corner, vector_x[2,3]: X/Y widths, voidPtr2: pointer to a newly created wxImage with the bitmap.
    • 440: Insert submenu in the popup menu. plotName=menu label, x=user-defined ID.
    • 700: Shows a camera-pick-dialog and wait for user selection. "voidPtr" must point to a CSemaphore, which will be signaled twice (1st upon construction, 2nd upon dialog close); voidPtr2 must point to a "mrpt::gui::CPanelCameraSelection*" which will be filled with the selection (the panel must be deleted by the caller)

Definition at line 297 of file WxSubsystem.h.

Referenced by mrpt::gui::CDisplayWindowPlots::addPopupMenuEntry(), mrpt::gui::CDisplayWindow3D::addTextMessage(), mrpt::gui::CDisplayWindowPlots::axis(), mrpt::gui::CDisplayWindowPlots::axis_equal(), mrpt::gui::CDisplayWindowPlots::axis_fit(), mrpt::gui::CDisplayWindowPlots::clear(), mrpt::gui::CDisplayWindow3D::clearTextMessages(), mrpt::gui::CBaseGUIWindow::createWxWindow(), mrpt::gui::CBaseGUIWindow::destroyWxWindow(), mrpt::gui::CDisplayWindowPlots::enableMousePanZoom(), mrpt::gui::CDisplayWindow3D::forceRepaint(), mrpt::gui::CDisplayWindowPlots::image(), mrpt::gui::CDisplayWindowPlots::internal_plot(), mrpt::gui::WxSubsystem::CWXMainFrame::OnTimerProcessRequests(), mrpt::gui::CDisplayWindowPlots::plotEllipse(), mrpt::hwdrivers::prepareVideoSourceFromUserSelection(), mrpt::gui::CDisplayWindowPlots::resize(), mrpt::gui::CDisplayWindow3D::resize(), mrpt::gui::CDisplayWindow::resize(), mrpt::gui::CDisplayWindowPlots::setPos(), mrpt::gui::CDisplayWindow3D::setPos(), mrpt::gui::CDisplayWindow::setPos(), mrpt::gui::CDisplayWindowPlots::setWindowTitle(), mrpt::gui::CDisplayWindow3D::setWindowTitle(), mrpt::gui::CDisplayWindow::setWindowTitle(), mrpt::gui::CDisplayWindow::showImage(), and mrpt::gui::WxSubsystem::CAuxWxSubsystemShutdowner::~CAuxWxSubsystemShutdowner().

◆ plotName

◆ source2D

◆ source3D

◆ sourceCameraSelectDialog

bool mrpt::gui::WxSubsystem::TRequestToWxMainThread::sourceCameraSelectDialog

Only one of source* can be non-nullptr, indicating the class that generated the request.

Definition at line 219 of file WxSubsystem.h.

Referenced by mrpt::gui::WxSubsystem::CWXMainFrame::OnTimerProcessRequests(), and mrpt::hwdrivers::prepareVideoSourceFromUserSelection().

◆ sourcePlots

◆ str

◆ vector_x

◆ vector_y

◆ voidPtr

void* mrpt::gui::WxSubsystem::TRequestToWxMainThread::voidPtr

◆ voidPtr2

◆ x

◆ y




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