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

Simply set the filename, which can be relative to a variable, and load the 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 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

Sets 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

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

Mirror Faces

name: mirrorFaces, type: Bool, default: FALSE

If checked, all faces are mirrored to compensate for formats that have 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 if the loaded WEM does not have any edges.

Close

name: unloadSurface, type: Trigger

When pressed, the internal WEM is cleared and the 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

When 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

Sets a label string for free use.

Description

name: description, type: String

Sets a string description for free use.

Status

name: status, type: String, persistent: no

Shows the status of the module.

Hidden Fields

id

name: id, type: Integer, default: 0

autoUpdate

name: autoUpdate, type: Enum, persistent: no

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