enum mrpt::gui::WxSubsystem::OpCode
Overview
Named opcodes for inter-thread requests. More…
#include <WxSubsystem.h> enum OpCode { WIN2D_CREATE = 200, WIN2D_UPDATE_IMAGE = 201, WIN2D_SET_POS = 202, WIN2D_SET_SIZE = 203, WIN2D_SET_TITLE = 204, WIN2D_DESTROY = 299, WIN3D_CREATE = 300, WIN3D_SET_POS = 302, WIN3D_SET_SIZE = 303, WIN3D_SET_TITLE = 304, WIN3D_FORCE_REPAINT = 350, WIN3D_DESTROY = 399, PLOTS_CREATE = 400, PLOTS_SET_POS = 402, PLOTS_SET_SIZE = 403, PLOTS_SET_TITLE = 404, PLOTS_DESTROY = 499, PLOTS_SET_MOUSE_PANZOOM = 410, PLOTS_SET_ASPECT_RATIO = 411, PLOTS_ZOOM_RECT = 412, PLOTS_AXIS_FIT = 413, PLOTS_CLEAR = 414, PLOTS_ADD_LINE = 420, PLOTS_ADD_ELLIPSE = 421, PLOTS_ADD_BITMAP = 422, PLOTS_INSERT_SUBMENU = 440, CAMERA_SELECT_DIALOG = 700, RUN_USER_FUNCTION = 800, SHUTDOWN = 999, };
Detailed Documentation
Named opcodes for inter-thread requests.
Enum Values
WIN2D_CREATE
Create a new 2D window.
caption=str, size=(x,y). voidPtr must point to a void* that will receive the new wxFrame*.
WIN2D_UPDATE_IMAGE
Update the displayed image.
voidPtr=CWindowDialog*, voidPtr2=wxImage* (ownership transferred).
WIN2D_SET_POS
Set window position to (x,y).
WIN2D_SET_SIZE
Resize window to (x,y).
WIN2D_SET_TITLE
Change window title to str.
WIN2D_DESTROY
Destroy 2D window.
WIN3D_CREATE
Create a new 3D window.
caption=str, size=(x,y). voidPtr must point to a void* that will receive the new wxFrame*.
WIN3D_SET_POS
Set window position to (x,y).
WIN3D_SET_SIZE
Resize window to (x,y).
WIN3D_SET_TITLE
Change window title to str.
WIN3D_FORCE_REPAINT
Force a repaint of the 3D window.
WIN3D_DESTROY
Destroy 3D window.
PLOTS_CREATE
Create a new Plots window.
caption=str, size=(x,y). voidPtr must point to a void* that will receive the new wxFrame*.
PLOTS_SET_POS
Set window position to (x,y).
PLOTS_SET_SIZE
Resize window to (x,y).
PLOTS_SET_TITLE
Change window title to str.
PLOTS_DESTROY
Destroy Plots window.
PLOTS_SET_MOUSE_PANZOOM
Enable/disable mouse pan+zoom according to boolVal.
PLOTS_SET_ASPECT_RATIO
Enable/disable aspect ratio lock according to boolVal.
PLOTS_ZOOM_RECT
Zoom to rect: vector_x[0..1] = x range, vector_y[0..1] = y range.
PLOTS_AXIS_FIT
Fit axes to data; boolVal controls aspect-ratio lock.
PLOTS_CLEAR
Clear all plot layer objects.
PLOTS_ADD_LINE
Add/update a 2D line/points plot.
x/y data = vector_x/vector_y, format string = str, name = plotName.
PLOTS_ADD_ELLIPSE
Add/update a 2D ellipse.
vector_x[0,1]=X/Y centre, vector_x[2]=quantiles, vector_y[0,1,2]=cov entries 00,11,01, boolVal=showName.
PLOTS_ADD_BITMAP
Add/update a bitmap image layer.
plotName=layer name, vector_x[0,1]=X/Y corner, vector_x[2,3]=W/H, voidPtr2=newly-created wxImage* (ownership transferred).
PLOTS_INSERT_SUBMENU
Insert a submenu entry into the popup menu.
plotName=label, x=user-defined integer ID.
CAMERA_SELECT_DIALOG
Show a camera-selection dialog.
voidPtr = std::promise<void>* (signalled when dialog is ready). voidPtr2 = std::promise<TReturnAskUserOpenCamera>* (filled on close).
RUN_USER_FUNCTION
Execute userFunction in the GUI thread.
SHUTDOWN
Shut down the wxWidgets subsystem.