disp_ellipseT_disp_ellipseDispEllipseDispEllipse (Operator)
Name
disp_ellipseT_disp_ellipseDispEllipseDispEllipse
— 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_ellipseDispEllipseDispEllipseDispEllipse
trägt eine oder mehrere Ellipsen mit dem
Schwerpunkt (CenterRowCenterRowCenterRowCenterRowcenterRow
,CenterColCenterColCenterColCenterColcenterCol
), der Orientierung
PhiPhiPhiPhiphi
(in Bogenmaß) und den Halbradien Radius1Radius1Radius1Radius1radius1
und Radius2Radius2Radius2Radius2radius2
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_regionDispRegionDispRegionDispRegion
) mit den Operatoren set_colorset_colorSetColorSetColorSetColor
,
set_drawset_drawSetDrawSetDrawSetDraw
, set_line_widthset_line_widthSetLineWidthSetLineWidthSetLineWidth
, etc. bestimmt werden.
Für die Behandlung der Farben bei mehr als einer Ellipse,
siehe set_colorset_colorSetColorSetColorSetColor
.
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
WindowHandleWindowHandleWindowHandleWindowHandlewindowHandle
(input_control) window →
HWindow, HTupleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
Fenster-Handle.
CenterRowCenterRowCenterRowCenterRowcenterRow
(input_control) ellipse.center.y(-array) →
HTupleHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Zeilenindex des Schwerpunktes.
Defaultwert: 64
Wertevorschläge: 0, 64, 128, 256
Typischer Wertebereich: 0
≤
CenterRow
CenterRow
CenterRow
CenterRow
centerRow
≤
511
(lin)
Minimale Schrittweite: 1
Empfohlene Schrittweite: 10
CenterColCenterColCenterColCenterColcenterCol
(input_control) ellipse.center.x(-array) →
HTupleHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Spaltenindex des Schwerpunktes.
Defaultwert: 64
Wertevorschläge: 0, 64, 128, 256
Typischer Wertebereich: 0
≤
CenterCol
CenterCol
CenterCol
CenterCol
centerCol
≤
511
(lin)
Minimale Schrittweite: 1
Empfohlene Schrittweite: 10
PhiPhiPhiPhiphi
(input_control) ellipse.angle.rad(-array) →
HTupleHTupleHtuple (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
≤
6.283185
(lin)
Minimale Schrittweite: 0.01
Empfohlene Schrittweite: 0.1
Radius1Radius1Radius1Radius1radius1
(input_control) ellipse.radius1(-array) →
HTupleHTupleHtuple (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
≤
511.0
(lin)
Minimale Schrittweite: 1.0
Empfohlene Schrittweite: 10.0
Radius2Radius2Radius2Radius2radius2
(input_control) ellipse.radius2(-array) →
HTupleHTupleHtuple (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
≤
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_ellipseDispEllipseDispEllipseDispEllipse
den Wert 2 (H_MSG_TRUE). Andernfalls wird eine
Fehlerbehandlung durchgeführt.
Vorgänger
open_windowopen_windowOpenWindowOpenWindowOpenWindow
,
set_drawset_drawSetDrawSetDrawSetDraw
,
set_colorset_colorSetColorSetColorSetColor
,
set_coloredset_coloredSetColoredSetColoredSetColored
,
set_line_widthset_line_widthSetLineWidthSetLineWidthSetLineWidth
,
set_rgbset_rgbSetRgbSetRgbSetRgb
,
set_hsiset_hsiSetHsiSetHsiSetHsi
,
elliptic_axiselliptic_axisEllipticAxisEllipticAxisEllipticAxis
,
area_centerarea_centerAreaCenterAreaCenterAreaCenter
Alternativen
disp_circledisp_circleDispCircleDispCircleDispCircle
,
disp_regiondisp_regionDispRegionDispRegionDispRegion
,
gen_ellipsegen_ellipseGenEllipseGenEllipseGenEllipse
,
gen_circlegen_circleGenCircleGenCircleGenCircle
Siehe auch
open_windowopen_windowOpenWindowOpenWindowOpenWindow
,
set_colorset_colorSetColorSetColorSetColor
,
set_rgbset_rgbSetRgbSetRgbSetRgb
,
set_hsiset_hsiSetHsiSetHsiSetHsi
,
set_drawset_drawSetDrawSetDrawSetDraw
,
set_line_widthset_line_widthSetLineWidthSetLineWidthSetLineWidth
Modul
Foundation