MeVisLab Web Toolkit Reference
Loading...
Searching...
No Matches
MLAB.GUI.RemoteRenderingControl Class Reference
Inheritance diagram for MLAB.GUI.RemoteRenderingControl:
MLAB.GUI.WidgetControl MLAB.GUI.WidgetControlModuleInterface MLAB.Core.Object

Public Member Functions

 destroy ()
 Destructor.
 fieldChanged ()
 Reimplemented from MLAB.GUI.WidgetControl to react on changes of the base field type.
 getMaximumSize ()
 Returns the maximum size of the viewport.
 getMinimumSize ()
 Returns the minimum size of the viewport.
 getSlave ()
 Returns the remote rendering slave.
 getViewportSize ()
 Returns the viewport size.
 resizeViewport (w, h)
 Resizes the viewport.
 resizeViewportToSizeHint ()
 This method resizes the viewport to the size hint, or the viewport size if the size hint is invalid.
 setMaximumSize (size)
 Sets the maximum size of the viewport.
 setMinimumSize (size)
 Sets the maximum size of the viewport.
 setScaleImageOnResize (flag)
 Sets if scaling of the image on the canvas is done on resize.
 setSizeHint (sizeHint)
 Sets the size hint for the viewport.
 setupTypicalTags ()
 Reimplements MLAB.GUI.WidgetControl.setupTypicalTags() to check if a fixed size is given.
 slaveWasAdded ()
 Called from the slave when it is added.
 useSizeHintHeight ()
 Returns true if the height of the size hint should be used.
 useSizeHintWidth ()
 Returns true if the width of the size hint should be used.
Signals

See MLAB.Core.Object about use.

#

 metaInformationChanged (metaInformation)
 Is emitted whenever new image meta information is received from the server.
Public Member Functions inherited from MLAB.GUI.WidgetControl
 __init__ (mdlTree, module)
 Creates a new MLAB.GUI.WidgetControl.
 getName ()
 Returns the name of the control.
 getQualifiedName ()
 Returns the name of the control containing all sub module names.
Public Member Functions inherited from MLAB.GUI.WidgetControlModuleInterface
 createSubControl (mdlTree)
 Calls MLAB.Core.Module.createControl() and returns the control, or null if it could not be created.
 field (fieldName)
 Looks for a field and it by calling MLAB.Core.Module.getFieldByRawName().
 getDOMDocument ()
 Returns the owner document of this.
 getModule ()
 Returns the module.
 log (message)
 Logs a message by calling MLAB.Core.Module.log().
 logError (error)
 Logs an error message by calling MLAB.Core.Module.logError().
 logException (exception)
 Logs an exception by calling MLAB.Core.Module.logException().
 sendBaseFieldMessage (baseFieldMessageClass, data)
 Creates a base field message using the provided class and data.
 sendGenericRequest (request, args)
 Passes the request and arguments to MLAB.Core.Module.sendGenericRequest().
 sendMessage (message)
 Sends the message via MLAB.Core.Module.sendMessage() to the server.
 setDOMDocument (A)
 Sets a new owner document to this.
Public Member Functions inherited from MLAB.Core.Object
 __init__ ()
 Creates a new MLAB.Core.Object.
 blockSignals (blocked)
 Sets if signals are blocked, which means that signals are suppressed in situations where they would have been emitted.
 connect (signal, receiver, slot)
 Connects a signal of this object to the slot of the receiver.
 connectCallback (signal, callback)
 Connects a signal of this object to the given callback function.
 connectSignal (signal, receiver, targetSignal)
 Connects a signal of this object to the signal of the receiver, so that if this signal is emitted, the target signal on the receiver is also emitted.
 disconnect (signal, receiver, signal)
 Disconnects a signal of this object from the slot of the receiver.
 disconnectCallback (signal, callback)
 Disconnects a signal of this object from the given callback function.
 disconnectReceiver (signal, receiver)
 Disconnects a signal of this object from all slots of the receiver.
 emit (signal)
 Emits a signal.
 isSignalRegistered ()
 Returns true if the given signal is registered.
 registerSignal (signal)
 Registers a signal.
 signalsBlocked ()
 Returns true if signals are blocked.

Protected Member Functions

 _createSlave ()
 Creates the remote rendering slave.
 _destroySlave ()
 Deactivates the slave (MLAB.Core.RemoteRenderingSlave.remove()) and removes it from the remote rendering base field handler (MLAB.Core.RemoteRenderingBaseFieldHandler.removeSlave()).

Detailed Description

Definition at line 964 of file GUI.py.

Member Function Documentation

◆ _createSlave()

MLAB.GUI.RemoteRenderingControl._createSlave ( )
protected

Creates the remote rendering slave.

An existing slave is first destroyed and a new one is created if MLAB.Core.BaseField.getBaseType() returns "RemoteRendering". The slave is then added to the MLAB.Core.RemoteRenderingBaseFieldHandler.

Definition at line 1079 of file GUI.py.

◆ _destroySlave()

MLAB.GUI.RemoteRenderingControl._destroySlave ( )
protected

Deactivates the slave (MLAB.Core.RemoteRenderingSlave.remove()) and removes it from the remote rendering base field handler (MLAB.Core.RemoteRenderingBaseFieldHandler.removeSlave()).

Definition at line 1072 of file GUI.py.

◆ destroy()

MLAB.GUI.RemoteRenderingControl.destroy ( )

Destructor.

Destroys the slave and calls the inherited destructor of MLAB.GUI.WidgetControl.

Reimplemented from MLAB.GUI.WidgetControl.

Definition at line 1066 of file GUI.py.

◆ fieldChanged()

MLAB.GUI.RemoteRenderingControl.fieldChanged ( )

Reimplemented from MLAB.GUI.WidgetControl to react on changes of the base field type.

Calls _createSlave()

Definition at line 1085 of file GUI.py.

◆ getMaximumSize()

MLAB.GUI.RemoteRenderingControl.getMaximumSize ( )

Returns the maximum size of the viewport.

Returns
An array with two elements: [width, height]

Definition at line 1026 of file GUI.py.

◆ getMinimumSize()

MLAB.GUI.RemoteRenderingControl.getMinimumSize ( )

Returns the minimum size of the viewport.

Returns
An array with two elements: [width, height]

Definition at line 1040 of file GUI.py.

◆ getSlave()

MLAB.GUI.RemoteRenderingControl.getSlave ( )

Returns the remote rendering slave.

Returns
The MLAB.Core.RemoteRenderingSlave, or null if it was not yet created or the base field type is not "RemoteRendering".

Definition at line 976 of file GUI.py.

◆ getViewportSize()

MLAB.GUI.RemoteRenderingControl.getViewportSize ( )

Returns the viewport size.

Returns
The viewport size as array with two elements: [width, height].

Definition at line 983 of file GUI.py.

◆ metaInformationChanged()

MLAB.GUI.RemoteRenderingControl.metaInformationChanged ( metaInformation)

Is emitted whenever new image meta information is received from the server.

Parameters
metaInformationthe meta information object

Definition at line 1096 of file GUI.py.

◆ resizeViewport()

MLAB.GUI.RemoteRenderingControl.resizeViewport ( w,
h )

Resizes the viewport.

Parameters
wThe new viewport width.
hThe new viewport height.

Definition at line 991 of file GUI.py.

◆ resizeViewportToSizeHint()

MLAB.GUI.RemoteRenderingControl.resizeViewportToSizeHint ( )

This method resizes the viewport to the size hint, or the viewport size if the size hint is invalid.

MLAB.Core.RemoteRenderingSlave.setSizeHints() calls this function.

Definition at line 1012 of file GUI.py.

◆ setMaximumSize()

MLAB.GUI.RemoteRenderingControl.setMaximumSize ( size)

Sets the maximum size of the viewport.

Parameters
sizeAn array with two elements is expected: [width, height]

Definition at line 1019 of file GUI.py.

◆ setMinimumSize()

MLAB.GUI.RemoteRenderingControl.setMinimumSize ( size)

Sets the maximum size of the viewport.

Parameters
sizeAn array with two elements is expected: [width, height]

Definition at line 1033 of file GUI.py.

◆ setScaleImageOnResize()

MLAB.GUI.RemoteRenderingControl.setScaleImageOnResize ( flag)

Sets if scaling of the image on the canvas is done on resize.

It is enabled by default.

Parameters
flagFlag if scaling should be done.

Definition at line 999 of file GUI.py.

◆ setSizeHint()

MLAB.GUI.RemoteRenderingControl.setSizeHint ( sizeHint)

Sets the size hint for the viewport.

Parameters
sizeHintAn array with two elements is expected: [width, height]

Definition at line 1006 of file GUI.py.

◆ setupTypicalTags()

MLAB.GUI.RemoteRenderingControl.setupTypicalTags ( )

Reimplements MLAB.GUI.WidgetControl.setupTypicalTags() to check if a fixed size is given.

If it is not, then the default size is 400x400 and the size hint will be used, if it is valid. The remote rendering slave is also created here.

Definition at line 1061 of file GUI.py.

◆ slaveWasAdded()

MLAB.GUI.RemoteRenderingControl.slaveWasAdded ( )

Called from the slave when it is added.

If this control is visible, then the slave is enabled. Otherwise the slave will be enabled when the control is shown (setVisible()).

Definition at line 969 of file GUI.py.

◆ useSizeHintHeight()

MLAB.GUI.RemoteRenderingControl.useSizeHintHeight ( )

Returns true if the height of the size hint should be used.

Returns
A boolean value.

Definition at line 1054 of file GUI.py.

◆ useSizeHintWidth()

MLAB.GUI.RemoteRenderingControl.useSizeHintWidth ( )

Returns true if the width of the size hint should be used.

Returns
A boolean value.

Definition at line 1047 of file GUI.py.


The documentation for this class was generated from the following file:
  • C:/jh/mevislab/5.0_0/build/doc.gen/public/SDK/MeVisLabWebToolkitReference/source/MLAB/GUI.py