ClassesClassesClassesClasses | | | | Operators

disp_arcdisp_arcDispArcdisp_arcDispArcDispArc (Operator)

Name

disp_arcdisp_arcDispArcdisp_arcDispArcDispArc — Displays circular arcs in a window.

Signature

disp_arc( : : WindowHandle, CenterRow, CenterCol, Angle, BeginRow, BeginCol : )

Herror disp_arc(const Hlong WindowHandle, double CenterRow, double CenterCol, double Angle, const Hlong BeginRow, const Hlong BeginCol)

Herror T_disp_arc(const Htuple WindowHandle, const Htuple CenterRow, const Htuple CenterCol, const Htuple Angle, const Htuple BeginRow, const Htuple BeginCol)

Herror disp_arc(const HTuple& WindowHandle, const HTuple& CenterRow, const HTuple& CenterCol, const HTuple& Angle, const HTuple& BeginRow, const HTuple& BeginCol)

void HWindow::DispArc(const HTuple& CenterRow, const HTuple& CenterCol, const HTuple& Angle, const HTuple& BeginRow, const HTuple& BeginCol) const

void DispArc(const HTuple& WindowHandle, const HTuple& CenterRow, const HTuple& CenterCol, const HTuple& Angle, const HTuple& BeginRow, const HTuple& BeginCol)

void HWindow::DispArc(const HTuple& CenterRow, const HTuple& CenterCol, const HTuple& Angle, const HTuple& BeginRow, const HTuple& BeginCol) const

void HWindow::DispArc(double CenterRow, double CenterCol, double Angle, Hlong BeginRow, Hlong BeginCol) const

void HOperatorSetX.DispArc(
[in] VARIANT WindowHandle, [in] VARIANT CenterRow, [in] VARIANT CenterCol, [in] VARIANT Angle, [in] VARIANT BeginRow, [in] VARIANT BeginCol)

void HWindowX.DispArc(
[in] VARIANT CenterRow, [in] VARIANT CenterCol, [in] VARIANT Angle, [in] VARIANT BeginRow, [in] VARIANT BeginCol)

static void HOperatorSet.DispArc(HTuple windowHandle, HTuple centerRow, HTuple centerCol, HTuple angle, HTuple beginRow, HTuple beginCol)

void HWindow.DispArc(HTuple centerRow, HTuple centerCol, HTuple angle, HTuple beginRow, HTuple beginCol)

void HWindow.DispArc(double centerRow, double centerCol, double angle, int beginRow, int beginCol)

Description

disp_arcdisp_arcDispArcdisp_arcDispArcDispArc displays one or several circular arcs in the output window. An arc is described by its center point (CenterRowCenterRowCenterRowCenterRowCenterRowcenterRow,CenterColCenterColCenterColCenterColCenterColcenterCol), the angle between start and end of the arc (AngleAngleAngleAngleAngleangle in radians) and the first point of the arc (BeginRowBeginRowBeginRowBeginRowBeginRowbeginRow,BeginColBeginColBeginColBeginColBeginColbeginCol). The arc is displayed in clockwise direction. The parameters for output can be determined - as with the output of regions - with the operators set_colorset_colorSetColorset_colorSetColorSetColor, set_grayset_graySetGrayset_graySetGraySetGray, set_drawset_drawSetDrawset_drawSetDrawSetDraw, etc. It is possible to draw several arcs with one call by using tupel parameters. For the use of colors with several arcs, see set_colorset_colorSetColorset_colorSetColorSetColor.

Attention

The center point has to be within the window. The radius of the arc has be at least 2 pixel.

Parallelization

Parameters

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

Window identifier.

CenterRowCenterRowCenterRowCenterRowCenterRowcenterRow (input_control)  arc.center.y HTupleHTupleHTupleVARIANTHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong) (double / Hlong) (double / Hlong)

Row coordinate of center point.

Default value: 64

Suggested values: 0, 64, 128, 256

Typical range of values: 0 ≤ CenterRow CenterRow CenterRow CenterRow CenterRow centerRow ≤ 511 (lin)

Minimum increment: 1

Recommended increment: 1

CenterColCenterColCenterColCenterColCenterColcenterCol (input_control)  arc.center.x HTupleHTupleHTupleVARIANTHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong) (double / Hlong) (double / Hlong)

Column coordinate of center point.

Default value: 64

Suggested values: 0, 64, 128, 256

Typical range of values: 0 ≤ CenterCol CenterCol CenterCol CenterCol CenterCol centerCol ≤ 511 (lin)

Minimum increment: 1

Recommended increment: 1

AngleAngleAngleAngleAngleangle (input_control)  arc.angle.rad HTupleHTupleHTupleVARIANTHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong) (double / Hlong) (double / Hlong)

Angle between start and end of the arc (in radians).

Default value: 3.1415926

Suggested values: 0.0, 0.785398, 1.570796, 3.1415926, 6.283185

Typical range of values: 0.0 ≤ Angle Angle Angle Angle Angle angle ≤ 6.283185 (lin)

Minimum increment: 0.01

Recommended increment: 0.1

Restriction: Angle > 0.0

BeginRowBeginRowBeginRowBeginRowBeginRowbeginRow (input_control)  arc.begin.y(-array) HTupleHTupleHTupleVARIANTHtuple (integer / real) (int / long / double) (Hlong / double) (Hlong / double) (Hlong / double) (Hlong / double)

Row coordinate of the start of the arc.

Default value: 32

Suggested values: 0, 64, 128, 256

Typical range of values: 0 ≤ BeginRow BeginRow BeginRow BeginRow BeginRow beginRow ≤ 511 (lin)

Minimum increment: 1

Recommended increment: 1

BeginColBeginColBeginColBeginColBeginColbeginCol (input_control)  arc.begin.x(-array) HTupleHTupleHTupleVARIANTHtuple (integer / real) (int / long / double) (Hlong / double) (Hlong / double) (Hlong / double) (Hlong / double)

Column coordinate of the start of the arc.

Default value: 32

Suggested values: 0, 64, 128, 256

Typical range of values: 0 ≤ BeginCol BeginCol BeginCol BeginCol BeginCol beginCol ≤ 511 (lin)

Minimum increment: 1

Recommended increment: 1

Example (HDevelop)

open_window(0,0,-1,-1,'root','visible','',WindowHandle)
set_draw(WindowHandle,'fill')
set_color(WindowHandle,'white')
Row := 100
Column := 100
disp_arc(WindowHandle,Row,Column,3.14,Row+10,Column+10)
close_window(WindowHandle)

Example (C)

double Row, Column, WindowHandle;
open_window(0,0,-1,-1,"root","visible","",&WindowHandle) ;
set_draw(WindowHandle,"fill") ;
set_color(WindowHandle,"white") ;
Row = 100 ;
Column = 100 ;
disp_arc(WindowHandle,Row,Column,(double)3.14,(int)Row+10,(int)Column+10) ;
close_window(WindowHandle).

Example (HDevelop)

open_window(0,0,-1,-1,'root','visible','',WindowHandle)
set_draw(WindowHandle,'fill')
set_color(WindowHandle,'white')
Row := 100
Column := 100
disp_arc(WindowHandle,Row,Column,3.14,Row+10,Column+10)
close_window(WindowHandle)

Example (HDevelop)

open_window(0,0,-1,-1,'root','visible','',WindowHandle)
set_draw(WindowHandle,'fill')
set_color(WindowHandle,'white')
Row := 100
Column := 100
disp_arc(WindowHandle,Row,Column,3.14,Row+10,Column+10)
close_window(WindowHandle)

Example (HDevelop)

open_window(0,0,-1,-1,'root','visible','',WindowHandle)
set_draw(WindowHandle,'fill')
set_color(WindowHandle,'white')
Row := 100
Column := 100
disp_arc(WindowHandle,Row,Column,3.14,Row+10,Column+10)
close_window(WindowHandle)

Example (HDevelop)

open_window(0,0,-1,-1,'root','visible','',WindowHandle)
set_draw(WindowHandle,'fill')
set_color(WindowHandle,'white')
Row := 100
Column := 100
disp_arc(WindowHandle,Row,Column,3.14,Row+10,Column+10)
close_window(WindowHandle)

Result

disp_arcdisp_arcDispArcdisp_arcDispArcDispArc returns 2 (H_MSG_TRUE).

Possible Predecessors

open_windowopen_windowOpenWindowopen_windowOpenWindowOpenWindow, set_drawset_drawSetDrawset_drawSetDrawSetDraw, set_colorset_colorSetColorset_colorSetColorSetColor, set_coloredset_coloredSetColoredset_coloredSetColoredSetColored, set_line_widthset_line_widthSetLineWidthset_line_widthSetLineWidthSetLineWidth, set_rgbset_rgbSetRgbset_rgbSetRgbSetRgb, set_hsiset_hsiSetHsiset_hsiSetHsiSetHsi

Alternatives

disp_circledisp_circleDispCircledisp_circleDispCircleDispCircle, disp_ellipsedisp_ellipseDispEllipsedisp_ellipseDispEllipseDispEllipse, disp_regiondisp_regionDispRegiondisp_regionDispRegionDispRegion, gen_circlegen_circleGenCirclegen_circleGenCircleGenCircle, gen_ellipsegen_ellipseGenEllipsegen_ellipseGenEllipseGenEllipse

See also

open_windowopen_windowOpenWindowopen_windowOpenWindowOpenWindow, open_textwindowopen_textwindowOpenTextwindowopen_textwindowOpenTextwindowOpenTextwindow, set_colorset_colorSetColorset_colorSetColorSetColor, set_drawset_drawSetDrawset_drawSetDrawSetDraw, set_rgbset_rgbSetRgbset_rgbSetRgbSetRgb, set_hsiset_hsiSetHsiset_hsiSetHsiSetHsi

Module

Foundation


ClassesClassesClassesClasses | | | | Operators