LocalWEMLoad

MacroModule
genre WEMPersistence
author MeVis Medical Solutions AG
package MeVisLab/Standard
definition MLWEMModules.def
see also WEMLoad, WEMSave
keywords surface

Purpose

The module LocalWEMLoad loads a WEM in any supported format from a relative path.

Usage

Just set the filename which can be relative to a variable and load a file.

Details

The panel offers some examples of variables to use.

The module is based internally on WEMLoad, have a look at that module for the available file formats.

Windows

Default Panel

../../../Modules/ML/MLWEMModules/mhelp/Images/Screenshots/LocalWEMLoad._default.png

Output Fields

outWEM

name: outWEM, type: WEM(MLBase)

Output is a WEM.

For accessing this object via scripting see the Scripting Reference: MLWEMWrapper.

Parameter Fields

Field Index

Auto load: Bool Label: String Triangulate Faces: Bool
autoUpdate: Enum Load: Trigger True Name: String
Close: Trigger Mirror Faces: Bool  
Description: String Mode: Enum  
elapsedTime: Float Name: String  
Generate Edges: Bool Overwrite Label Description: Bool  
id: Integer progress: Float  
isProcessing: Bool Status: String  

Visible Fields

Name

name: name, type: String, default: $(DemoDataPath)/venus.off

The WEM file name, using a variable to specify a relative path.

For more information, see LocalImage.name.

True Name

name: trueName, type: String, persistent: no

The true name of the WEM to load. This is the file name in the current file system.

Mirror Faces

name: mirrorFaces, type: Bool, default: FALSE

If checked, all faces are mirrored to compensate for some formats with a reverse order of nodes.

Triangulate Faces

name: triangulateFaces, type: Bool, default: FALSE

If checked, all non-triangle faces will be triangulated.

Mode

name: triangulationMode, type: Enum, default: Strip

Sets the triangulation scheme in case that loaded faces should be triangulated.

Values:

Title Name
Center node Center node
Fan Fan
Strip Strip

Generate Edges

name: generateEdges, type: Bool, default: TRUE

If checked, edges will be generated for the output WEM in case that the loaded WEM does not yield any edges.

Close

name: unloadSurface, type: Trigger

If pressed, the internal WEM is cleared and attached modules are notified.

Auto load

name: autoApply, type: Bool, default: TRUE

If checked, the module loads on start-up and on changing any parameter.

Load

name: apply, type: Trigger

If pressed, the specified WEM is loaded.

Overwrite Label Description

name: overwriteLabelDescription, type: Bool, default: FALSE

If checked, the label and the description of the loaded WEM is overwritten.

Label

name: label, type: String

A label string for free use.

Description

name: description, type: String

A string description for free use.

Status

name: status, type: String, persistent: no

Displays the status of the module.

Hidden Fields

id

name: id, type: Integer, default: 0

autoUpdate

name: autoUpdate, type: Enum, default: AutoUpdate

Values:

Title Name Deprecated Name
Off Off FALSE
Auto Update AutoUpdate TRUE
Auto Clear AutoClear  

isProcessing

name: isProcessing, type: Bool, persistent: no

elapsedTime

name: elapsedTime, type: Float, persistent: no

progress

name: progress, type: Float, persistent: no