DrawRectangle

MLModule
genre Draw,Geometry
author Lennart Tautz
package FMEwork/ReleaseMeVis
dll MLDrawRectangle
definition MLDrawRectangle.def
see also Draw3D
keywords draw, rect, box, rectangle

Purpose

This module draws a rectangle into an image volume.

Usage

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

Windows

Default Panel

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

Input Fields

input0

name: input0, type: Image

Image to draw the rectangle on.

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: Integer  
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.

Values:

Title Name
Ok Ok
Invalid input object Invalid input object
Invalid input parameter Invalid input parameter
Internal error Internal error

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: Integer, 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.