enterCircle
enterCircle( [?promptsl_promptList] [?pointsl_pointList] [?forms_form] [?addPointProct_addProcName ][?delPointProct_delProcName] [?initProct_initProcName] [?doneProct_doneProcName] [?formProct_formProcName] [?dontDrawg_dontDraw] [?alwaysMapg_alwaysMap] [?acceptStringg_acceptString] [?acceptNumberg_acceptNumber] [?noInfixg_noInfix] [?cmdNamet_cmdName] [?cursorx_cursor ] ) =>l_bBox/nil
Description
Enters a circle in the current window.
Arguments
|
List of prompt strings to appear on the CIW prompt line. If supplied, only the first two strings are used. The first string corresponds to the center, which is the first point entered, and the second string corresponds to a point on the circumference. |
|
|
List of no more than two points. If both points are supplied, they are returned after adjustment with no further interaction. If one point is supplied, it is adjusted and you are prompted to enter the second point. The first point entered is the center of the circle. After entry, a rubberbanding circle appears about the center and passing through the cursor. When the second point is entered, the bounding box of the circle is computed and returned. |
|
|
Options form created with |
|
|
Name of the SKILL function to be called when a point is entered. |
|
|
Name of the SKILL function to be called when a point is deleted. |
|
|
Name of the SKILL function to be called immediately after the enterfunction is started and before any data entry. |
|
|
Name of the SKILL function to be called when the enterfunction is terminated. |
|
|
Name of the SKILL function to be called when the options form is displayed. |
|
|
Determines whether or not to immediately display the options form. |
|
|
Determines whether or not to accept string input without terminating the enterfunction. |
|
|
Determines whether or not to accept numeric input without terminating the enterfunction. |
|
|
Name you associate with the enterfunction. If the command name is set, it can be accessed with |
|
|
An integer argument that will default to an appropriate cursor. For example, |
|
Value Returned
Retrieve data through the callback procedure t_doneProcName instead of using the return value for this enterfunction.
Examples
Displays the prompt Enter the circle center on the CIW prompt line.
procedure( circleInit( w )
leSetEntryLayer( list("pdiff" "drawing"))
)
procedure( circleDone( w done pts )
if( done then
printf("Circle entered was %L. Layer is %L.\n" pts
leGetEntryLayer( ))
else
println("Circle entry aborted.")
)
)
enterCircle( ?prompts list( "Enter the circle center."
"Enter a point on the circumference." )
?doneProc "circleDone" ?initProc "circleInit"
)
The initProc forces the window current layer and purpose pair to be (“pdiff” “drawing”). When you enter point p1 the prompt changes to Enter a point on the circumference. A rubberband circle appears with center p1 and passing through the cursor. Enter point p2 and doneProc prints the circle points:
Circle entered was ( p1 p2 ). Layer is ("pdiff" "drawing").
Here, (c1 c2) is the bounding box of the circle entered. The enterfunction returns a list of the circle points:
( c1 c2 )

Related Topics
Return to top