| 
    MeVisLab Scripting Reference
    
   | 
 
#include <mlRemoteRenderingWrapper.h>
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 | 
Enters 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 | 
Leaves the viewport area (sends leave event).
      
  | 
  slot | 
Returns the current maximum size.
      
  | 
  slot | 
Returns the current minimum size.
      
  | 
  slot | 
Clicks the given mouse button at the given position.
      
  | 
  slot | 
Clicks the given mouse button at the last moveTo position.
      
  | 
  slot | 
Double-clicks the given mouse button at the given position.
This will send a single click followed by a double click event.
      
  | 
  slot | 
Double-clicks the given mouse button at the last moveTo position.
This will send a single click followed by a double click event.
      
  | 
  slot | 
Sends 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 | 
Sends 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 | 
Moves the mouse to the given position.
      
  | 
  slot | 
Presses the given mouse button at the given position.
      
  | 
  slot | 
Presses the given mouse button at the last move to position.
      
  | 
  slot | 
Releases the given mouse button at the given position.
      
  | 
  slot | 
Releases the given mouse button at the last moveTo position.
      
  | 
  slot | 
Sends a mouse wheel movement; a delta of -120 and 120 is typical for normal resolution wheels.
      
  | 
  slot | 
Sends a mouse wheel movement; a delta of -120 and 120 is typical for normal resolution wheels.
      
  | 
  slot | 
Sends a backward mouse wheel movement with standard delta.
      
  | 
  slot | 
Sends a forward mouse wheel movement with standard delta.
      
  | 
  slot | 
Sets the requested size of rendering/viewport.
      
  | 
  signal | 
Emitted when the scene has changed.
      
  | 
  slot | 
Sends a low-level Qt event from slave; supported are: QEvent::Enter,Leave,Wheel,Mouse*,Key*.
Events can be created using PythonQt.QtCore/QtGui.
      
  | 
  slot | 
Requests an 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 | 
Sets the streaming quality of the remote rendering.
      
  | 
  slot | 
Returns the current size hint.
      
  | 
  signal | 
Emitted when size hints have changed.
      
  | 
  slot | 
Starts the streaming for the given listener.
      
  | 
  slot | 
Stops the streaming for the given listener.