disp_ellipseT_disp_ellipseDispEllipseDispEllipsedisp_ellipse (Operator)
Name
disp_ellipseT_disp_ellipseDispEllipseDispEllipsedisp_ellipse — Ausgeben von Ellipsen.
Signatur
void DispEllipse(const HTuple& WindowHandle, const HTuple& CenterRow, const HTuple& CenterCol, const HTuple& Phi, const HTuple& Radius1, const HTuple& Radius2)
void HWindow::DispEllipse(const HTuple& CenterRow, const HTuple& CenterCol, const HTuple& Phi, const HTuple& Radius1, const HTuple& Radius2) const
void HWindow::DispEllipse(Hlong CenterRow, Hlong CenterCol, double Phi, double Radius1, double Radius2) const
static void HOperatorSet.DispEllipse(HTuple windowHandle, HTuple centerRow, HTuple centerCol, HTuple phi, HTuple radius1, HTuple radius2)
void HWindow.DispEllipse(HTuple centerRow, HTuple centerCol, HTuple phi, HTuple radius1, HTuple radius2)
void HWindow.DispEllipse(int centerRow, int centerCol, double phi, double radius1, double radius2)
Beschreibung
disp_ellipsedisp_ellipseDispEllipseDispEllipseDispEllipsedisp_ellipse trägt eine oder mehrere Ellipsen mit dem
Schwerpunkt (CenterRowCenterRowCenterRowCenterRowcenterRowcenter_row,CenterColCenterColCenterColCenterColcenterColcenter_col), der Orientierung
PhiPhiPhiPhiphiphi (in Bogenmaß) und den Halbradien Radius1Radius1Radius1Radius1radius1radius_1
und Radius2Radius2Radius2Radius2radius2radius_2 in das Ausgabefenster ein.
Es kann mehr als eine Ellipse ausgegeben werden, indem Tupel
von Punkten, Winkeln und Halbradien übergeben werden.
Die Parameter für die Ausgabe können wie bei der Darstellung von Regionen
(disp_regiondisp_regionDispRegionDispRegionDispRegiondisp_region) mit den Operatoren set_colorset_colorSetColorSetColorSetColorset_color,
set_drawset_drawSetDrawSetDrawSetDrawset_draw, set_line_widthset_line_widthSetLineWidthSetLineWidthSetLineWidthset_line_width, etc. bestimmt werden.
Für die Behandlung der Farben bei mehr als einer Ellipse,
siehe set_colorset_colorSetColorSetColorSetColorset_color.
Achtung
Der Schwerpunkt muss innerhalb der Fensterkoordinaten liegen.
Ausführungsinformationen
- Multithreading-Typ: reentrant (läuft parallel zu nicht-exklusiven Operatoren).
- Multithreading-Bereich: global (kann von jedem Thread aufgerufen werden).
- Wird ohne Parallelisierung verarbeitet.
Parameter
WindowHandleWindowHandleWindowHandleWindowHandlewindowHandlewindow_handle (input_control) window → HWindow, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
Fenster-Handle.
CenterRowCenterRowCenterRowCenterRowcenterRowcenter_row (input_control) ellipse.center.y(-array) → HTupleMaybeSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Zeilenindex des Schwerpunktes.
Defaultwert: 64
Wertevorschläge: 0, 64, 128, 256
Typischer Wertebereich: 0
≤
CenterRow
CenterRow
CenterRow
CenterRow
centerRow
center_row
≤
511 (lin)
Minimale Schrittweite: 1
Empfohlene Schrittweite: 10
CenterColCenterColCenterColCenterColcenterColcenter_col (input_control) ellipse.center.x(-array) → HTupleMaybeSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Spaltenindex des Schwerpunktes.
Defaultwert: 64
Wertevorschläge: 0, 64, 128, 256
Typischer Wertebereich: 0
≤
CenterCol
CenterCol
CenterCol
CenterCol
centerCol
center_col
≤
511 (lin)
Minimale Schrittweite: 1
Empfohlene Schrittweite: 10
PhiPhiPhiPhiphiphi (input_control) ellipse.angle.rad(-array) → HTupleMaybeSequence[Union[int, float]]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)
Orientierung der Ellipse in Bogenmaß.
Defaultwert: 0.0
Wertevorschläge: 0.0, 0.785398, 1.570796, 3.1415926, 6.283185
Typischer Wertebereich: 0.0
≤
Phi
Phi
Phi
Phi
phi
phi
≤
6.283185 (lin)
Minimale Schrittweite: 0.01
Empfohlene Schrittweite: 0.1
Radius1Radius1Radius1Radius1radius1radius_1 (input_control) ellipse.radius1(-array) → HTupleMaybeSequence[Union[int, float]]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)
Lange Halbachse der Ellipse.
Defaultwert: 24.0
Wertevorschläge: 0.0, 64.0, 128.0, 256.0
Typischer Wertebereich: 0.0
≤
Radius1
Radius1
Radius1
Radius1
radius1
radius_1
≤
511.0 (lin)
Minimale Schrittweite: 1.0
Empfohlene Schrittweite: 10.0
Radius2Radius2Radius2Radius2radius2radius_2 (input_control) ellipse.radius2(-array) → HTupleMaybeSequence[Union[int, float]]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)
Kurze Halbachse der Ellipse.
Defaultwert: 14.0
Wertevorschläge: 0.0, 64.0, 128.0, 256.0
Typischer Wertebereich: 0.0
≤
Radius2
Radius2
Radius2
Radius2
radius2
radius_2
≤
511.0 (lin)
Minimale Schrittweite: 1.0
Empfohlene Schrittweite: 10.0
Beispiel (HDevelop)
set_color(WindowHandle,'red')
draw_region(MyRegion,WindowHandle)
elliptic_axis(MyRegion,Ra,Rb,Phi)
area_center(MyRegion,_,Row,Column)
disp_ellipse(WindowHandle,Row,Column,Phi,Ra,Rb)
Beispiel (C)
set_color(WindowHandle,"red");
T_draw_region(&MyRegion,WindowHandle);
elliptic_axis(MyRegion,&Ra,&Rb,&Phi);
area_center(MyRegion,NULL,&Row,&Column);
T_disp_ellipse(WindowHandle,Row,Column,Phi,Ra,Rb);
Beispiel (HDevelop)
set_color(WindowHandle,'red')
draw_region(MyRegion,WindowHandle)
elliptic_axis(MyRegion,Ra,Rb,Phi)
area_center(MyRegion,_,Row,Column)
disp_ellipse(WindowHandle,Row,Column,Phi,Ra,Rb)
Beispiel (HDevelop)
set_color(WindowHandle,'red')
draw_region(MyRegion,WindowHandle)
elliptic_axis(MyRegion,Ra,Rb,Phi)
area_center(MyRegion,_,Row,Column)
disp_ellipse(WindowHandle,Row,Column,Phi,Ra,Rb)
Beispiel (HDevelop)
set_color(WindowHandle,'red')
draw_region(MyRegion,WindowHandle)
elliptic_axis(MyRegion,Ra,Rb,Phi)
area_center(MyRegion,_,Row,Column)
disp_ellipse(WindowHandle,Row,Column,Phi,Ra,Rb)
Ergebnis
Sind die Parameterwerte korrekt, dann liefert
disp_ellipsedisp_ellipseDispEllipseDispEllipseDispEllipsedisp_ellipse den Wert 2 (H_MSG_TRUE). Andernfalls wird eine
Fehlerbehandlung durchgeführt.
Vorgänger
open_windowopen_windowOpenWindowOpenWindowOpenWindowopen_window,
set_drawset_drawSetDrawSetDrawSetDrawset_draw,
set_colorset_colorSetColorSetColorSetColorset_color,
set_coloredset_coloredSetColoredSetColoredSetColoredset_colored,
set_line_widthset_line_widthSetLineWidthSetLineWidthSetLineWidthset_line_width,
set_rgbset_rgbSetRgbSetRgbSetRgbset_rgb,
set_hsiset_hsiSetHsiSetHsiSetHsiset_hsi,
elliptic_axiselliptic_axisEllipticAxisEllipticAxisEllipticAxiselliptic_axis,
area_centerarea_centerAreaCenterAreaCenterAreaCenterarea_center
Alternativen
disp_circledisp_circleDispCircleDispCircleDispCircledisp_circle,
disp_regiondisp_regionDispRegionDispRegionDispRegiondisp_region,
gen_ellipsegen_ellipseGenEllipseGenEllipseGenEllipsegen_ellipse,
gen_circlegen_circleGenCircleGenCircleGenCirclegen_circle
Siehe auch
open_windowopen_windowOpenWindowOpenWindowOpenWindowopen_window,
set_colorset_colorSetColorSetColorSetColorset_color,
set_rgbset_rgbSetRgbSetRgbSetRgbset_rgb,
set_hsiset_hsiSetHsiSetHsiSetHsiset_hsi,
set_drawset_drawSetDrawSetDrawSetDrawset_draw,
set_line_widthset_line_widthSetLineWidthSetLineWidthSetLineWidthset_line_width
Modul
Foundation