TOC PREV NEXT INDEX

draw_line

Synopsis

interactively draw lines on an object in a viewer

Input Port

in_pick

picked_xyz point (from a viewer's corresponding output)

ui_parent

ser interface parent object

Parameters

Pick Point

UItoggle

user is drawing line end points

New Line

UItoggle

user wants to start a new series of lines

Output Port

out_fld

Mesh

out_obj

output renderable object

Description

draw_line lets the user interactively draw polylines over an object in a viewer window.

Input

in_pick

The coordinates of the picked point. This red input port should connect to a renderer's picked_obj red output port.

ui_parent

A port to connect to a user interface object that contains the macro's widgets. By default, it is connected to the default user interface object in the application in which the macro is instanced. (This default connection is not drawn.)

Parameters

Pick Point

UItoggle. When on, the user is using the left mouse button to select a series of points on the object. Lines are drawn between each point. The default is on.

New Line

UItoggle. When on, the user wants to select a new "first" point and begin drawing a new series of lines. When off, the user is in the middle of drawing a series of lines and any left mouse button click is a line endpoint. The default is off.

Output Port

out_fld

The output is an unstructured mesh of cell type Polyline. Each cell is one line segment in the drawing.

out_obj

This is a renderable version of the output field.

Example

Not available

File

v/modules.v

See also related modules

Not applicable.

TOC PREV NEXT INDEX