Skip to content

draw_circle_modDrawCircleModDrawCircleModdraw_circle_modT_draw_circle_modπŸ”—

Short descriptionπŸ”—

draw_circle_modDrawCircleModDrawCircleModdraw_circle_modT_draw_circle_mod β€” Interactive drawing of a circle.

SignatureπŸ”—

draw_circle_mod( window WindowHandle, circle.center.y RowIn, circle.center.x ColumnIn, circle.radius RadiusIn, out circle.center.y Row, out circle.center.x Column, out circle.radius Radius )void DrawCircleMod( const HTuple& WindowHandle, const HTuple& RowIn, const HTuple& ColumnIn, const HTuple& RadiusIn, HTuple* Row, HTuple* Column, HTuple* Radius )static void HOperatorSet.DrawCircleMod( HTuple windowHandle, HTuple rowIn, HTuple columnIn, HTuple radiusIn, out HTuple row, out HTuple column, out HTuple radius )def draw_circle_mod( window_handle: HHandle, row_in: float, column_in: float, radius_in: float ) -> Tuple[float, float, float]

Herror T_draw_circle_mod( const Htuple WindowHandle, const Htuple RowIn, const Htuple ColumnIn, const Htuple RadiusIn, Htuple* Row, Htuple* Column, Htuple* Radius )

void HWindow::DrawCircleMod( double RowIn, double ColumnIn, double RadiusIn, double* Row, double* Column, double* Radius ) const

void HWindow.DrawCircleMod( double rowIn, double columnIn, double radiusIn, out double row, out double column, out double radius )

DescriptionπŸ”—

draw_circle_modDrawCircleMod produces the parameter for a circle created interactive by the user in the window.

To create a circle are expected the coordinates RowInrowInrow_in and ColumnIncolumnIncolumn_in of the center of a circle with radius RadiusInradiusInradius_in. After another mouse click in the created circle center you can move it. A clicking close to the circular arc you can modify the Radiusradiusradius of the circle. Pressing the right mouse button terminates the procedure. After terminating the procedure the circle is not visible in the window any longer.

AttentionπŸ”—

If used in a buffer window, mouse events have to be supplied by the application, while the draw operator must be run in another thread.

Execution informationπŸ”—

Execution information
  • Multithreading type: reentrant (runs in parallel with non-exclusive operators).

  • Multithreading scope: global (may be called from any thread).

  • Processed without parallelization.

ParametersπŸ”—

WindowHandlewindowHandlewindow_handle (input_control) window β†’ (handle)HTuple (HHandle)HWindow, HTuple (IntPtr)HHandleHtuple (handle)

Window handle.

RowInrowInrow_in (input_control) circle.center.y β†’ (real)HTuple (double)HTuple (double)floatHtuple (double)

Row index of the center.

ColumnIncolumnIncolumn_in (input_control) circle.center.x β†’ (real)HTuple (double)HTuple (double)floatHtuple (double)

Column index of the center.

RadiusInradiusInradius_in (input_control) circle.radius β†’ (real)HTuple (double)HTuple (double)floatHtuple (double)

Radius of the circle.

Rowrowrow (output_control) circle.center.y β†’ (real)HTuple (double)HTuple (double)floatHtuple (double)

Row index of the center.

Columncolumncolumn (output_control) circle.center.x β†’ (real)HTuple (double)HTuple (double)floatHtuple (double)

Column index of the center.

Radiusradiusradius (output_control) circle.radius β†’ (real)HTuple (double)HTuple (double)floatHtuple (double)

Circle’s radius.

ExampleπŸ”—

(HDevelop)

read_image(Image,'monkey')
draw_circle_mod(WindowHandle,20,20,15,Row,Column,Radius)
gen_circle(Circle,Row,Column,Radius)
reduce_domain(Image,Circle,ImageReduced)
invert_image (ImageReduced, ImageInvert)
dev_display (ImageInvert)
(C)
read_image(&Image,"monkey")\;
draw_circle_mod(WindowHandle,20,20,15,&Row,&Column,&Radius)\;
gen_circle(&Circle,Row,Column,Radius)\;
reduce_domain(Image,Circle,&GrayCircle)\;
disp_image(GrayCircle,WindowHandle)\;

ResultπŸ”—

draw_circle_modDrawCircleMod returns 2 (H_MSG_TRUE) if the window is valid. If necessary, an exception is raised.

Combinations with other operatorsπŸ”—

Combinations

Possible predecessors

open_windowOpenWindow

Possible successors

reduce_domainReduceDomain, disp_regionDispRegion, set_coloredSetColored, set_line_widthSetLineWidth, set_drawSetDraw

Alternatives

draw_circleDrawCircle, draw_ellipseDrawEllipse, draw_regionDrawRegion

See also

gen_circleGenCircle, draw_rectangle1DrawRectangle1, draw_rectangle2DrawRectangle2, draw_polygonDrawPolygon

ModuleπŸ”—

Foundation