ClassesClassesClassesClasses | | | | Operators

draw_circle_moddraw_circle_modDrawCircleModdraw_circle_modDrawCircleModDrawCircleMod (Operator)

Name

draw_circle_moddraw_circle_modDrawCircleModdraw_circle_modDrawCircleModDrawCircleMod — Interactive drawing of a circle.

Signature

draw_circle_mod( : : WindowHandle, RowIn, ColumnIn, RadiusIn : Row, Column, Radius)

Herror draw_circle_mod(const Hlong WindowHandle, double RowIn, double ColumnIn, double RadiusIn, double* Row, double* Column, double* Radius)

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

Herror draw_circle_mod(const HTuple& WindowHandle, const HTuple& RowIn, const HTuple& ColumnIn, const HTuple& RadiusIn, double* Row, double* Column, double* Radius)

double HWindow::DrawCircleMod(const HTuple& RowIn, const HTuple& ColumnIn, const HTuple& RadiusIn, HTuple* Column, HTuple* Radius) const

void DrawCircleMod(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 HOperatorSetX.DrawCircleMod(
[in] VARIANT WindowHandle, [in] VARIANT RowIn, [in] VARIANT ColumnIn, [in] VARIANT RadiusIn, [out] VARIANT* Row, [out] VARIANT* Column, [out] VARIANT* Radius)

double HWindowX.DrawCircleMod(
[in] double RowIn, [in] double ColumnIn, [in] double RadiusIn, [out] double* Column, [out] double* Radius)

static void HOperatorSet.DrawCircleMod(HTuple windowHandle, HTuple rowIn, HTuple columnIn, HTuple radiusIn, out HTuple row, out HTuple column, out HTuple radius)

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

Description

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

To create a circle are expected the coordinates RowInRowInRowInRowInRowInrowIn and ColumnInColumnInColumnInColumnInColumnIncolumnIn of the center of a circle with radius RadiusInRadiusInRadiusInRadiusInRadiusInradiusIn. After another mouse click in the created circle center you can move it. A clicking close to the circular arc you can modify the RadiusRadiusRadiusRadiusRadiusradius of the circle. Pressing the right mousebutton terminates the procedure. On OS X draw_circle_moddraw_circle_modDrawCircleModdraw_circle_modDrawCircleModDrawCircleMod can also be terminated by pressing the escape key. After terminating the procedure the circle is not visible in the window any longer.

Parallelization

Parameters

WindowHandleWindowHandleWindowHandleWindowHandleWindowHandlewindowHandle (input_control)  window HWindow, HTupleHTupleHTupleHWindowX, VARIANTHtuple (integer) (IntPtr) (Hlong) (Hlong) (Hlong) (Hlong)

Window identifier.

RowInRowInRowInRowInRowInrowIn (input_control)  circle.center.y HTupleHTupleHTupleVARIANTHtuple (real) (double) (double) (double) (double) (double)

Row index of the center.

ColumnInColumnInColumnInColumnInColumnIncolumnIn (input_control)  circle.center.x HTupleHTupleHTupleVARIANTHtuple (real) (double) (double) (double) (double) (double)

Column index of the center.

RadiusInRadiusInRadiusInRadiusInRadiusInradiusIn (input_control)  circle.radius HTupleHTupleHTupleVARIANTHtuple (real) (double) (double) (double) (double) (double)

Radius of the circle.

RowRowRowRowRowrow (output_control)  circle.center.y HTupleHTupleHTupleVARIANTHtuple (real) (double) (double) (double) (double) (double)

Row index of the center.

ColumnColumnColumnColumnColumncolumn (output_control)  circle.center.x HTupleHTupleHTupleVARIANTHtuple (real) (double) (double) (double) (double) (double)

Column index of the center.

RadiusRadiusRadiusRadiusRadiusradius (output_control)  circle.radius HTupleHTupleHTupleVARIANTHtuple (real) (double) (double) (double) (double) (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)

Example (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) ;

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)

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)

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)

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)

Result

draw_circle_moddraw_circle_modDrawCircleModdraw_circle_modDrawCircleModDrawCircleMod returns 2 (H_MSG_TRUE) if the window is valid and the needed drawing mode (see set_insertset_insertSetInsertset_insertSetInsertSetInsert) is available. If necessary, an exception is raised.

Possible Predecessors

open_windowopen_windowOpenWindowopen_windowOpenWindowOpenWindow

Possible Successors

reduce_domainreduce_domainReduceDomainreduce_domainReduceDomainReduceDomain, disp_regiondisp_regionDispRegiondisp_regionDispRegionDispRegion, set_coloredset_coloredSetColoredset_coloredSetColoredSetColored, set_line_widthset_line_widthSetLineWidthset_line_widthSetLineWidthSetLineWidth, set_drawset_drawSetDrawset_drawSetDrawSetDraw, set_insertset_insertSetInsertset_insertSetInsertSetInsert

Alternatives

draw_circledraw_circleDrawCircledraw_circleDrawCircleDrawCircle, draw_ellipsedraw_ellipseDrawEllipsedraw_ellipseDrawEllipseDrawEllipse, draw_regiondraw_regionDrawRegiondraw_regionDrawRegionDrawRegion

See also

gen_circlegen_circleGenCirclegen_circleGenCircleGenCircle, draw_rectangle1draw_rectangle1DrawRectangle1draw_rectangle1DrawRectangle1DrawRectangle1, draw_rectangle2draw_rectangle2DrawRectangle2draw_rectangle2DrawRectangle2DrawRectangle2, draw_polygondraw_polygonDrawPolygondraw_polygonDrawPolygonDrawPolygon, set_insertset_insertSetInsertset_insertSetInsertSetInsert

Module

Foundation


ClassesClassesClassesClasses | | | | Operators