KlassenKlassenKlassenKlassen | | | | Operatoren

disp_ellipsedisp_ellipseDispEllipsedisp_ellipseDispEllipseDispEllipse (Operator)

Name

disp_ellipsedisp_ellipseDispEllipsedisp_ellipseDispEllipseDispEllipse — Ausgeben von Ellipsen.

Signatur

disp_ellipse( : : WindowHandle, CenterRow, CenterCol, Phi, Radius1, Radius2 : )

Herror disp_ellipse(const Hlong WindowHandle, const Hlong CenterRow, const Hlong CenterCol, double Phi, double Radius1, double Radius2)

Herror T_disp_ellipse(const Htuple WindowHandle, const Htuple CenterRow, const Htuple CenterCol, const Htuple Phi, const Htuple Radius1, const Htuple Radius2)

Herror disp_ellipse(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 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

void HOperatorSetX.DispEllipse(
[in] VARIANT WindowHandle, [in] VARIANT CenterRow, [in] VARIANT CenterCol, [in] VARIANT Phi, [in] VARIANT Radius1, [in] VARIANT Radius2)

void HWindowX.DispEllipse(
[in] VARIANT CenterRow, [in] VARIANT CenterCol, [in] VARIANT Phi, [in] VARIANT Radius1, [in] VARIANT Radius2)

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_ellipseDispEllipsedisp_ellipseDispEllipseDispEllipse trägt eine oder mehrere Ellipsen mit dem Schwerpunkt (CenterRowCenterRowCenterRowCenterRowCenterRowcenterRow,CenterColCenterColCenterColCenterColCenterColcenterCol), der Orientierung PhiPhiPhiPhiPhiphi (in Bogenmaß) und den Halbradien Radius1Radius1Radius1Radius1Radius1radius1 und Radius2Radius2Radius2Radius2Radius2radius2 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_regionDispRegiondisp_regionDispRegionDispRegion) mit den Operatoren set_colorset_colorSetColorset_colorSetColorSetColor, set_drawset_drawSetDrawset_drawSetDrawSetDraw, set_line_widthset_line_widthSetLineWidthset_line_widthSetLineWidthSetLineWidth, etc. bestimmt werden. Für die Behandlung der Farben bei mehr als einer Ellipse, siehe set_colorset_colorSetColorset_colorSetColorSetColor.

Achtung

Der Schwerpunkt muss innerhalb der Fensterkoordinaten liegen.

Parallelisierung

Parameter

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

Fenster-Handle.

CenterRowCenterRowCenterRowCenterRowCenterRowcenterRow (input_control)  ellipse.center.y(-array) HTupleHTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong) (Hlong)

Zeilenindex des Schwerpunktes.

Defaultwert: 64

Wertevorschläge: 0, 64, 128, 256

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

Minimale Schrittweite: 1

Empfohlene Schrittweite: 10

CenterColCenterColCenterColCenterColCenterColcenterCol (input_control)  ellipse.center.x(-array) HTupleHTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong) (Hlong)

Spaltenindex des Schwerpunktes.

Defaultwert: 64

Wertevorschläge: 0, 64, 128, 256

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

Minimale Schrittweite: 1

Empfohlene Schrittweite: 10

PhiPhiPhiPhiPhiphi (input_control)  ellipse.angle.rad(-array) HTupleHTupleHTupleVARIANTHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong) (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

Radius1Radius1Radius1Radius1Radius1radius1 (input_control)  ellipse.radius1(-array) HTupleHTupleHTupleVARIANTHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong) (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 radius1 ≤ 511.0 (lin)

Minimale Schrittweite: 1.0

Empfohlene Schrittweite: 10.0

Radius2Radius2Radius2Radius2Radius2radius2 (input_control)  ellipse.radius2(-array) HTupleHTupleHTupleVARIANTHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong) (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 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") ;
draw_region(&MyRegion,WindowHandle) ;
elliptic_axis(MyRegion,&Ra,&Rb,&Phi) ;
area_center(MyRegion,NULL,&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)

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_ellipseDispEllipsedisp_ellipseDispEllipseDispEllipse den Wert 2 (H_MSG_TRUE). Andernfalls wird eine Fehlerbehandlung durchgeführt.

Vorgänger

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, elliptic_axiselliptic_axisEllipticAxiselliptic_axisEllipticAxisEllipticAxis, area_centerarea_centerAreaCenterarea_centerAreaCenterAreaCenter

Alternativen

disp_circledisp_circleDispCircledisp_circleDispCircleDispCircle, disp_regiondisp_regionDispRegiondisp_regionDispRegionDispRegion, gen_ellipsegen_ellipseGenEllipsegen_ellipseGenEllipseGenEllipse, gen_circlegen_circleGenCirclegen_circleGenCircleGenCircle

Siehe auch

open_windowopen_windowOpenWindowopen_windowOpenWindowOpenWindow, open_textwindowopen_textwindowOpenTextwindowopen_textwindowOpenTextwindowOpenTextwindow, set_colorset_colorSetColorset_colorSetColorSetColor, set_rgbset_rgbSetRgbset_rgbSetRgbSetRgb, set_hsiset_hsiSetHsiset_hsiSetHsiSetHsi, set_drawset_drawSetDrawset_drawSetDrawSetDraw, set_line_widthset_line_widthSetLineWidthset_line_widthSetLineWidthSetLineWidth

Modul

Foundation


KlassenKlassenKlassenKlassen | | | | Operatoren