disp_arcT_disp_arcDispArcDispArcdisp_arc (Operator)

Name

disp_arcT_disp_arcDispArcDispArcdisp_arc — Ausgeben von Bögen in ein Fenster.

Signatur

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

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

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

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)

def disp_arc(window_handle: HHandle, center_row: Union[int, float], center_col: Union[int, float], angle: Union[int, float], begin_row: MaybeSequence[Union[int, float]], begin_col: MaybeSequence[Union[int, float]]) -> None

Beschreibung

disp_arcdisp_arcDispArcDispArcdisp_arc trägt einen oder mehrere Bögen, die durch den Schwerpunkt (CenterRowCenterRowCenterRowcenterRowcenter_row,CenterColCenterColCenterColcenterColcenter_col), den Winkel zwischen Anfang und Ende des Bogens (AngleAngleAngleangleangle in Bogenmaß) und den ersten Punkt (BeginRowBeginRowBeginRowbeginRowbegin_row,BeginColBeginColBeginColbeginColbegin_col) beschrieben werden, in das Ausgabefenster ein. Die Ausgabe des Bogens geschieht im Uhrzeigersinn. Die Parameter für die Ausgabe können - wie bei der Darstellung einer Region (disp_regiondisp_regionDispRegionDispRegiondisp_region) - mit den Operatoren set_colorset_colorSetColorSetColorset_color, set_grayset_graySetGraySetGrayset_gray, set_drawset_drawSetDrawSetDrawset_draw, etc., bestimmt werden. Es können mehrere Bögen bei einem Aufruf gezeichnet werden, indem jeweils Tupel übergeben werden. Für die Behandlung der Farben bei mehr als einem Bogen, siehe set_colorset_colorSetColorSetColorset_color.

Achtung

Der Schwerpunkt muss innerhalb des Fensters liegen. Der Bogen muss mindestens einen Radius von 2 Pixel haben.

Ausführungsinformationen

Parameter

WindowHandleWindowHandleWindowHandlewindowHandlewindow_handle (input_control)  window HWindow, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Fenster-Handle.

CenterRowCenterRowCenterRowcenterRowcenter_row (input_control)  arc.center.y HTupleUnion[int, float]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)

Zeilenindex des Schwerpunktes.

Default: 64

Wertevorschläge: 0, 64, 128, 256

Wertebereich: 0 ≤ CenterRow CenterRow CenterRow centerRow center_row ≤ 511 (lin)

Minimale Schrittweite: 1

Empfohlene Schrittweite: 1

CenterColCenterColCenterColcenterColcenter_col (input_control)  arc.center.x HTupleUnion[int, float]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)

Spaltenindex des Schwerpunktes.

Default: 64

Wertevorschläge: 0, 64, 128, 256

Wertebereich: 0 ≤ CenterCol CenterCol CenterCol centerCol center_col ≤ 511 (lin)

Minimale Schrittweite: 1

Empfohlene Schrittweite: 1

AngleAngleAngleangleangle (input_control)  arc.angle.rad HTupleUnion[int, float]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)

Winkel zwischen Anfang und Ende des Bogens in Bogenmaß.

Default: 3.1415926

Wertevorschläge: 0.0, 0.785398, 1.570796, 3.1415926, 6.283185

Wertebereich: 0.0 ≤ Angle Angle Angle angle angle ≤ 6.283185 (lin)

Minimale Schrittweite: 0.01

Empfohlene Schrittweite: 0.1

Restriktion: Angle > 0.0

BeginRowBeginRowBeginRowbeginRowbegin_row (input_control)  arc.begin.y(-array) HTupleMaybeSequence[Union[int, float]]HTupleHtuple (integer / real) (int / long / double) (Hlong / double) (Hlong / double)

Zeilenindex des Anfangs des Bogens.

Default: 32

Wertevorschläge: 0, 64, 128, 256

Wertebereich: 0 ≤ BeginRow BeginRow BeginRow beginRow begin_row ≤ 511 (lin)

Minimale Schrittweite: 1

Empfohlene Schrittweite: 1

BeginColBeginColBeginColbeginColbegin_col (input_control)  arc.begin.x(-array) HTupleMaybeSequence[Union[int, float]]HTupleHtuple (integer / real) (int / long / double) (Hlong / double) (Hlong / double)

Spaltenindex des Anfangs des Bogens.

Default: 32

Wertevorschläge: 0, 64, 128, 256

Wertebereich: 0 ≤ BeginCol BeginCol BeginCol beginCol begin_col ≤ 511 (lin)

Minimale Schrittweite: 1

Empfohlene Schrittweite: 1

Beispiel (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)

Ergebnis

disp_arcdisp_arcDispArcDispArcdisp_arc liefert den Wert 2 ( H_MSG_TRUE) .

Vorgänger

open_windowopen_windowOpenWindowOpenWindowopen_window, set_drawset_drawSetDrawSetDrawset_draw, set_colorset_colorSetColorSetColorset_color, set_coloredset_coloredSetColoredSetColoredset_colored, set_line_widthset_line_widthSetLineWidthSetLineWidthset_line_width, set_rgbset_rgbSetRgbSetRgbset_rgb, set_hsiset_hsiSetHsiSetHsiset_hsi

Alternativen

disp_circledisp_circleDispCircleDispCircledisp_circle, disp_ellipsedisp_ellipseDispEllipseDispEllipsedisp_ellipse, disp_regiondisp_regionDispRegionDispRegiondisp_region, gen_circlegen_circleGenCircleGenCirclegen_circle, gen_ellipsegen_ellipseGenEllipseGenEllipsegen_ellipse

Siehe auch

open_windowopen_windowOpenWindowOpenWindowopen_window, set_colorset_colorSetColorSetColorset_color, set_drawset_drawSetDrawSetDrawset_draw, set_rgbset_rgbSetRgbSetRgbset_rgb, set_hsiset_hsiSetHsiSetHsiset_hsi

Modul

Foundation