Synopsis
display an interactive cross-hair cursor
Note: This object has superceded a previous version of an object with the same name. Please note that the older version's template is VIEW.Viewers.DrawCursor2D, and this version's template is GDM.Viewers.DrawCursor2D. The render_view input port present in the old template is no longer necessary when used with the new Uviewers.
V name
GDM.DrawCursor2D
Input Ports
view |
GDview_templ |
obj_in |
GDobject_templ |
Output Ports
draw_cursor.GDdraw2D_cursor.out_mesh |
Mesh |
Description
DrawCursor2D displays a 2D cross-hair cursor and translates the cursor's screen coordinates to a field. DrawCursor2D is a macro that combines the following:
a UItwoPoint interactor
GDdraw2d_cursor
a user interface, which the user accesses through the Module Panel provided by the DataViewer or ModuleStack (as appropriate)
Input Ports
view
A connection to a view.
obj_in
An optional connection to an object. Without an object, DrawCursor2D converts the selected point to a field in the camera's coordinate system. With an object, DrawCursor2D converts the selected point to a field in the object's coordinate system.
Parameters
immed
UItoggle. This parameter when set to 1 indicates that immediate mode is on. In immediate mode, DrawCursor2D translates the cursor's position to a field continually during the UItwoPoint interaction. When immed is set to 0, DrawCursor2D translates the cursor's position to a field only at the end of the UItwoPoint interaction.
Output Ports
out_mesh
A mesh representing the point in the appropriate coordinate system.
Example
Libraries.Examples.Graphics_Display.DrawCursor2D
Libraries.Examples.Graphics_Display.ImageProbe
File
v/view.v
See also