MeVisLab Web Toolkit Reference
Loading...
Searching...
No Matches
MLAB.Core Namespace Reference

The Core namespace. More...

Classes

class  BaseField
class  BaseFieldHandlerBase
 Base class for base field handlers. More...
class  BaseFieldHandlerFactory
 This factory creates handlers for base fields. More...
class  BaseFieldMessage
class  BoolField
class  ClientSettingsMessage
class  ColorField
class  ConnectionSettings
 The settings for the web socket connection. More...
class  DoubleField
class  EnumField
class  EnumItem
class  Event
class  ExpressionParser
class  Field
 This class is based on the MeVisLab class MLABField. More...
class  FieldExpressionEvaluator
class  FieldExpressionParser
class  FieldExpressionValue
 Attempts to implement the same type conversion logic as QVariant. More...
class  FloatField
class  GenericBaseReplyMessage
class  GenericBaseRequestMessage
class  GenericReply
class  GenericRequest
class  IntegerField
class  ItemModelAttributesMessage
class  ItemModelChildrenDoneMessage
class  ItemModelDataChanged
class  ItemModelGetChildrenMessage
class  ItemModelHandler
class  ItemModelItem
class  ItemModelItemChanged
class  ItemModelItemsInserted
class  ItemModelItemsRemoved
class  KeyEvent
class  Logging
 The central logging class. More...
class  MatrixField
class  MCState
 This is the base class for module context states. More...
class  MCStateCreatingModule
 This module context state is active when the module is being created. More...
class  MCStateFailedToCreateModule
 This module context state is active when the module could not be created due to an error. More...
class  MCStateMDLReady
 This module context state is active when all widget controls and DOM elements are created from the MDL script. More...
class  MCStateModuleReady
 This module context state is active when the module was created and authentication was successful. More...
class  MCStateRenderingSlavesActivated
 This module context state is active when the remote rendering slaves are activated. More...
class  MCStateUninitialized
 This module context state is initially active. More...
class  Module
 The Module class. More...
class  ModuleBaseFieldTypeMessage
class  ModuleContext
 The module context is the communication interface between the MLAB.Core.Module, MLAB.GUI.WidgetControl, and MLAB.Core.Field on the client side and the MeVisLab process and module instance on the server side. More...
class  ModuleContextLogger
class  ModuleCreateMessage
class  ModuleFieldsMinMaxChangedMessage
class  ModuleFieldValuesBaseMessage
class  ModuleInfoMessage
 This message includes the module creation status. More...
class  ModuleLogMessage
class  ModuleProcessInformationMessage
class  ModuleReadyMessage
class  ModuleRequestStopProcessingMessage
class  ModuleSetFieldValuesMessage
class  ModuleShowIDEMessage
class  ModuleSubModuleRemovedMessage
class  ModuleVersionMessage
class  ModuleWebSetupMessage
class  ModuleWindowDefinitionsMessage
class  MouseEvent
class  NumberField
 The signal "minMaxValueChanged(this)" is emitted when the min/max values are changed from the backend. More...
class  Object
 Base class for objects with signals and slots. More...
class  ParallelResourceLoader
class  RemoteCallInterfaceHandler
class  RemoteManager
class  RemoteMessage
 This is the base class for messages that are sent and received via a web socket to and from a MeVisLab process. More...
class  RemoteRenderingBaseFieldHandler
class  RemoteRenderingEventHandler
 This class handles the JavaScript events for a RemoteRendering control. More...
class  RemoteRenderingSlave
class  RenderingQEventMessage
class  RenderingQKeyEventMessage
class  RenderingQMouseEventMessage
class  RenderingQWheelEventMessage
class  RenderingRenderedImageAcknowledgeMessage
class  RenderingRenderedImageMessage
class  RenderingRenderedImageTilesMessage
class  RenderingRenderRequestMessage
class  RenderingRenderSceneChangedMessage
class  RenderingRenderStartStreamingMessage
class  RenderingRenderStopStreamingMessage
class  RenderingSetCursorShapeMessage
class  RenderingSetRenderSizeMessage
class  RenderingSetSizeHintsMessage
class  RenderingSetStreamingQualityMessage
class  RenderingSlaveAddedMessage
class  RenderingSlaveRemovedMessage
class  RenderSettings
 This class stores settings for the remote rendering. More...
class  RequireJSResourceLoader
class  Resource
 Base class for resources. More...
class  ResourceLoader
 This class loads resources by creating and appending DOM nodes to the HTML header. More...
class  ResourceManager
 Manages loading of script and css resources. More...
class  ResponseHandler
 This response handles responses of generic requests that are send to the MeVisLab process with MLAB.Core.RemoteManager.sendGenericRequest(). More...
class  ScriptResource
 Resource class for scripts. More...
class  SequentialResourceLoader
class  StringField
class  StyleResource
 Resource class for css files. More...
class  SystemInfo
 Provides information about the client system (browser). More...
class  TextDataStream
 TextDataStream allows to read from a MeVisLab text message, which is given by one line for each value. More...
class  Timer
 This class implements a timer based window.setTimeout/clearTimeout. More...
class  TriggerField
class  Vector2Field
class  Vector3Field
class  Vector4Field
class  VectorField
class  WheelEvent
class  WindowEventHandler

Functions

 connect (sender, signal, receiver, slot)
 Connects a signal of the sender to the slots of the receiver.
 defineClass (className, properties, staticProperties)
 deriveClass (className, superClass, properties, staticProperties)
 disconnect (sender, signal, receiver, slot)
 Disconnects a signal of the sender from the slot of the receiver.
 getMessageTypeName (msgType)
 Map message type numbers to readable names.
 getName ()
 isLetterOrNumber (charCode)
 TODO: This function handles only ASCII!
 notifyModuleRequiresAuthentication (statusCode)
 Calls MLAB.Core.emitModuleReady() with the given status code as argument.
 translatePath (path)
 Translates a path beginning with a package variable $(MLAB_Xxxx_Yyyy) to an url beginning with MLAB_ROOT.

Detailed Description

The Core namespace.

Function Documentation

◆ connect()

connect ( sender,
signal,
receiver,
slot )

Connects a signal of the sender to the slots of the receiver.

This is a convenience function that calls sender.connect(signal, receiver, slot).

Parameters
senderThe sender of the signal.
signalThe signal that will be connected.
receiverThe receiver of the slot.
slotThe name of the slot that will be connected to the signal.
Exceptions
StringThrows an exception if the signal is not registered or if the slot is already connected to the signal.

Definition at line 3083 of file Core.py.

◆ defineClass()

defineClass ( className,
properties,
staticProperties )
Parameters
className
propertiesMandatory dictionary with class members. It must contain at least a constructor.
staticPropertiesOptional dictionary with static class members.

Definition at line 3063 of file Core.py.

◆ deriveClass()

deriveClass ( className,
superClass,
properties,
staticProperties )
Parameters
className
superClass
properties
staticProperties

Definition at line 3071 of file Core.py.

◆ disconnect()

disconnect ( sender,
signal,
receiver,
slot )

Disconnects a signal of the sender from the slot of the receiver.

This is a convenience function that calls sender.disconnect(signal, receiver, slot).

Parameters
senderThe sender of the signal.
signalThe signal that will be disconnected.
receiverThe receiver of the slot.
slotThe name of the slot that will be disconnected from the signal.
Exceptions
StringThrows an exception if the signal is not registered or if the slot is not connected to the signal.

Definition at line 3095 of file Core.py.

◆ getMessageTypeName()

getMessageTypeName ( msgType)

Map message type numbers to readable names.

Parameters
msgTypeA string representing a number.
Returns
A type name string.

Definition at line 3103 of file Core.py.

◆ getName()

getName ( )

Definition at line 3056 of file Core.py.

◆ isLetterOrNumber()

isLetterOrNumber ( charCode)

TODO: This function handles only ASCII!

Parameters
charCode

Definition at line 3125 of file Core.py.

◆ notifyModuleRequiresAuthentication()

notifyModuleRequiresAuthentication ( statusCode)

Calls MLAB.Core.emitModuleReady() with the given status code as argument.

Parameters
statusCodeThe status code of the MLAB.Core.ModuleInfoMessage.

Definition at line 3052 of file Core.py.

◆ translatePath()

translatePath ( path)

Translates a path beginning with a package variable $(MLAB_Xxxx_Yyyy) to an url beginning with MLAB_ROOT.

Returns null if the given path is null.

For example, C:/jh/mevislab/5.0_0/source/MeVisLab/Standard/Modules/Macros is translated into http://www.myserver.de/Packages/MeVisLab/Standard/Modules/Macros, where the url to MLAB_ROOT is http://www.myserver.de/Packages.

See also
MLAB.GUI.ApplicationSettings.getURLToMLABRoot()
Parameters
pathA path that begins with a package variable, e.g.: $(MLAB_Xxxx_Yyyy)/Modules/Macros, or null.
Returns
Returns the absolute url containing the url to MLAB_ROOT

Definition at line 3118 of file Core.py.