DrawRectangle

MLModule

genre

Draw,Geometry

author

Lennart Tautz

package

FMEstable/ReleaseMeVis

dll

MLDrawRectangle

definition

MLDrawRectangle.def

see also

Draw3D, Draw3DMacro, XMarkerListToCircular, MarkerToImage, MarkerToMask, Raster, RasterFunctions

keywords

draw, rectangle, box, rectangle

Purpose

This module draws a rectangle into an image volume. Any valid rectangle voxel will be filled with the value Fill Value which is cast to the voxel type of the image.

A valid rectangle is defined with two corners in 6D, Start Point and End Point, with all components of Start Point <= End Point. The rectangle region may be located partially outside the image, valid image regions will be filled anyway. Any component of Start Point larger than the corresponding one in End Point will make the filled region empty.

Usage

Select 6D start and end points of the rectangle (in voxel coordinates) and an appropriate fill value, and press Update.

Windows

Default Panel

../../../Projects/MLDrawRectangle/Modules/mhelp/Images/Screenshots/DrawRectangle._default.png

Input Fields

input0

name: input0, type: Image

Image to draw the rectangle into.

Output Fields

output0

name: output0, type: Image

Output image with rectangle.

Parameter Fields

Field Index

[]: Trigger

Status Code: Enum

Clear: Trigger

Status Message: String

doNotClearOnFailedUpdate: Bool

Update: Trigger

End Point: IntVector6

Fill Value: Double

Has Valid Output: Bool

On Input Change Behavior: Enum

Start Point: IntVector6

Visible Fields

Update

name: update, type: Trigger

Update the result.

Clear

name: clear, type: Trigger

Clears all output field values to a clean initial state.

On Input Change Behavior

name: onInputChangeBehavior, type: Enum, default: Clear, deprecated name: shouldAutoUpdate,shouldUpdateAutomatically

Declares how the module should react if a value of an input field changes.

Values:

Title

Name

Deprecated Name

​Update

​Update

​TRUE,True

​Clear

​Clear

​False,FALSE

Status Code

name: statusCode, type: Enum, persistent: no

Reflects module’s status (successful or failed computations) as one of some predefined enumeration values. For possible error codes see the documentation of the base ML module class AlgorithmModule.

Status Message

name: statusMessage, type: String, persistent: no

Gives additional, detailed information about status code as human-readable message.

Has Valid Output

name: hasValidOutput, type: Bool, persistent: no

Indicates validity of output field values (success of computation).

[]

name: updateDone, type: Trigger, persistent: no

Notifies that an update was performed (Check status interface fields to identify success or failure).

Start Point

name: inRectangleStart, type: IntVector6, default: 0 0 0 0 0 0, deprecated name: start

6D start point in voxel coordinates, as space-separated string. Missing components are set to zero.

End Point

name: inRectangleEnd, type: IntVector6, default: 0 0 0 0 0 0, deprecated name: end

6D end point in voxel coordinates, as space-separated string. Missing components are set to zero.

Fill Value

name: inFillValue, type: Double, default: 1, deprecated name: fillValue

Fill value of the rectangle.

Hidden Fields

doNotClearOnFailedUpdate

name: doNotClearOnFailedUpdate, type: Bool, persistent: no

Prevents automated clear after update failed. This does not affect status fields. It enables the developer to analyze module’s state after failure.