MeVisLab Scripting Reference
|
Inherits QObject, and ml::RemoteRendering::SlaveListener.
Public Types | |
enum | ImageType { JPG = ml::RemoteRendering::JPG , PNG = ml::RemoteRendering::PNG , SHARED_MEMORY_BGR = ml::RemoteRendering::SHARED_MEMORY_BGR , SHARED_MEMORY_BGRA = ml::RemoteRendering::SHARED_MEMORY_BGRA } |
Public Slots | |
Scripting access | |
| |
void | mouseMoveTo (int x, int y) |
void | mousePress (Qt::MouseButton button=Qt::LeftButton) |
void | mousePress (Qt::MouseButton button, int x, int y) |
void | mouseRelease (Qt::MouseButton button=Qt::LeftButton) |
void | mouseRelease (Qt::MouseButton button, int x, int y) |
void | mouseClick (Qt::MouseButton button=Qt::LeftButton) |
void | mouseClick (Qt::MouseButton button, int x, int y) |
void | mouseDoubleClick (Qt::MouseButton button=Qt::LeftButton) |
void | mouseDoubleClick (Qt::MouseButton button, int x, int y) |
void | mouseDoubleClickPress (Qt::MouseButton button=Qt::LeftButton) |
void | mouseDoubleClickPress (Qt::MouseButton button, int x, int y) |
void | enter () |
void | leave () |
void | keyPress (Qt::Key key) |
void | keyRelease (Qt::Key key) |
void | keyStroke (Qt::Key key) |
void | mouseWheelForward () |
void | mouseWheelBackward () |
void | mouseWheel (int delta) |
void | mouseWheel (int delta, int x, int y) |
void | sendEvent (QEvent *event) |
void | resize (int x, int y) |
void | sendRenderRequest (ImageType type) |
void | startStreaming () |
void | stopStreaming () |
void | setStreamingSettings (const QVariantMap &settings) |
QSize | sizeHint () |
QSize | minimumSize () |
QSize | maximumSize () |
void | setMousePosition (int x, int y) |
void | setKeyboardModifiers (Qt::KeyboardModifiers modifiers) |
void | setMouseButtonState (Qt::MouseButtons buttons) |
Signals | |
Signals | |
| |
void | cursorChanged (int id, const QCursor &cursor) |
void | sceneChanged () |
void | imageReceived (const QImage &image, ImageType type, const QVariantMap &metaInformation) |
void | sizeHintsChanged () |
Script wrapper for a single RemoteRendering slave The first method to call on a slave is setRenderSize(), otherwise the remote side does not know the reference viewport for the events and the image rendering.
|
signal |
Emitted when the cursor changed.
|
slot |
enter the viewport area (sends enter event)
|
signal |
Emitted when an image was received.
|
slot |
sends that the given key was pressed.
If the key is a modifier key, the internal modifier state is adjusted.
|
slot |
sends that the given key was released
|
slot |
sends that the given key was pressed and released again
|
slot |
leave the viewport area (sends leave event)
|
slot |
get the current maximum size
|
slot |
get the current minimum size
|
slot |
click the given mouse button at the given position
|
slot |
click the given mouse button at the last moveTo position
|
slot |
double-click the given mouse button at the given position (this will send a single click followed by a double click event)
|
slot |
double-click the given mouse button at the last moveTo position (this will send a single click followed by a double click event)
|
slot |
send a single double-click event for the given mouse button at the given position (this will only send a single press event, in contrast to mouseDoubleClick(), which will perform a full single click, double click and release)
|
slot |
send a single double-click event for the given mouse button at the last moveTo position (this will only send a single press event, in contrast to mouseDoubleClick(), which will perform a full single click, double click and release)
|
slot |
move the mouse to the given position.
|
slot |
press the given mouse button at the given position
|
slot |
press the given mouse button at the last move to position
|
slot |
release the given mouse button at the given position
|
slot |
release the given mouse button at the last moveTo position
|
slot |
send a mouse wheel movement, delta of -120 and 120 is typically for normal resolution wheels
|
slot |
send a mouse wheel movement, delta of -120 and 120 is typically for normal resolution wheels
|
slot |
send a backward mouse wheel movement with standard delta
|
slot |
send a forward mouse wheel movement with standard delta
|
slot |
set requested size of rendering/viewport
|
signal |
Emitted when the scene has changed.
|
slot |
send a low-level Qt event from slave, supported are QEvent::Enter,Leave,Wheel,Mouse*,Key* (Events can be created using PythonQt.QtCore/QtGui).
|
slot |
request update of the rendering
|
inlineslot |
Sets the keyboard modifiers to the given value.
NOTE: It is better to send the correct key press event (SHIFT, ALT, CONTROL) to the scene, this method is mainly for testing the synthetic generation of missing events.
|
inlineslot |
Sets the mouse button state to the given value.
NOTE: It is better to send the correct button press event to the scene, this method is mainly for testing the synthetic generation of missing events.
|
slot |
sets the mouse position without sending a MouseMove event.
The given position will be used for all further events. NOTE: Please prefer the mouseMoveTo() method, this method is mainly for testing the automatic generation of MouseMove events when they are missing.
|
slot |
set the streaming quality of the remote rendering
|
slot |
get the current size hint
|
signal |
Emitted when size hints have changed.
|
slot |
start the streaming for the given listener
|
slot |
stop the streaming for the given listener