disp_rectangle2T_disp_rectangle2DispRectangle2DispRectangle2disp_rectangle2 (Operator)
Name
disp_rectangle2T_disp_rectangle2DispRectangle2DispRectangle2disp_rectangle2 — Ausgeben von beliebig orientierten Rechtecken.
Signatur
void DispRectangle2(const HTuple& WindowHandle, const HTuple& CenterRow, const HTuple& CenterCol, const HTuple& Phi, const HTuple& Length1, const HTuple& Length2)
void HWindow::DispRectangle2(const HTuple& CenterRow, const HTuple& CenterCol, const HTuple& Phi, const HTuple& Length1, const HTuple& Length2) const
void HWindow::DispRectangle2(double CenterRow, double CenterCol, double Phi, double Length1, double Length2) const
static void HOperatorSet.DispRectangle2(HTuple windowHandle, HTuple centerRow, HTuple centerCol, HTuple phi, HTuple length1, HTuple length2)
void HWindow.DispRectangle2(HTuple centerRow, HTuple centerCol, HTuple phi, HTuple length1, HTuple length2)
void HWindow.DispRectangle2(double centerRow, double centerCol, double phi, double length1, double length2)
def disp_rectangle2(window_handle: HHandle, center_row: MaybeSequence[Union[int, float]], center_col: MaybeSequence[Union[int, float]], phi: MaybeSequence[Union[int, float]], length_1: MaybeSequence[Union[int, float]], length_2: MaybeSequence[Union[int, float]]) -> None
Beschreibung
disp_rectangle2disp_rectangle2DispRectangle2DispRectangle2DispRectangle2disp_rectangle2 trägt ein oder mehrere Rechtecke mit dem
Schwerpunkt (CenterRowCenterRowCenterRowCenterRowcenterRowcenter_row,CenterColCenterColCenterColCenterColcenterColcenter_col), der Orientierung
PhiPhiPhiPhiphiphi (in Bogenmaß) und den halben Kantenlängen
Length1Length1Length1Length1length1length_1 und Length2Length2Length2Length2length2length_2 in das Ausgabefenster
ein. Es kann mehr als ein Rechteck gezeichnet werden, indem jeweils
Tupel von Koordinaten übergeben werden. Für die Behandlung der Farben
bei mehr als einem Rechteck, siehe set_colorset_colorSetColorSetColorSetColorset_color.
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.
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) rectangle2.center.y(-array) → HTupleMaybeSequence[Union[int, float]]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)
Zeilenindex des Schwerpunktes.
Defaultwert: 48
Wertevorschläge: 0, 64, 128, 256, 511
Typischer Wertebereich: 0
≤
CenterRow
CenterRow
CenterRow
CenterRow
centerRow
center_row
≤
511 (lin)
Minimale Schrittweite: 1
Empfohlene Schrittweite: 10
CenterColCenterColCenterColCenterColcenterColcenter_col (input_control) rectangle2.center.x(-array) → HTupleMaybeSequence[Union[int, float]]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)
Spaltenindex des Schwerpunktes.
Defaultwert: 64
Wertevorschläge: 0, 64, 128, 256, 511
Typischer Wertebereich: 0
≤
CenterCol
CenterCol
CenterCol
CenterCol
centerCol
center_col
≤
511 (lin)
Minimale Schrittweite: 1
Empfohlene Schrittweite: 10
PhiPhiPhiPhiphiphi (input_control) rectangle2.angle.rad(-array) → HTupleMaybeSequence[Union[int, float]]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)
Orientierung des Rechtecks 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
Length1Length1Length1Length1length1length_1 (input_control) rectangle2.hwidth(-array) → HTupleMaybeSequence[Union[int, float]]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)
Hälfte der größeren Seitenlänge.
Defaultwert: 48
Wertevorschläge: 0, 64, 128, 256, 511
Typischer Wertebereich: 0
≤
Length1
Length1
Length1
Length1
length1
length_1
≤
511 (lin)
Minimale Schrittweite: 1
Empfohlene Schrittweite: 10
Length2Length2Length2Length2length2length_2 (input_control) rectangle2.hheight(-array) → HTupleMaybeSequence[Union[int, float]]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)
Hälfte der kürzeren Seitenlänge.
Defaultwert: 32
Wertevorschläge: 0, 64, 128, 256, 511
Typischer Wertebereich: 0
≤
Length2
Length2
Length2
Length2
length2
length_2
≤
511 (lin)
Minimale Schrittweite: 1
Empfohlene Schrittweite: 10
Restriktion: Length2 < Length1
Beispiel (HDevelop)
set_color(WindowHandle,'green')
draw_region(MyRegion,WindowHandle)
elliptic_axis(MyRegion,Ra,Rb,Phi)
area_center(MyRegion,_,Row,Column)
disp_rectangle2(WindowHandle,Row,Column,Phi,Ra,Rb)
Ergebnis
Sind die Parameterwerte korrekt, dann liefert
disp_rectangle2disp_rectangle2DispRectangle2DispRectangle2DispRectangle2disp_rectangle2 den Wert TRUE.
Andernfalls wird eine Fehlerbehandlung durchgeführt.
Vorgänger
open_windowopen_windowOpenWindowOpenWindowOpenWindowopen_window,
set_rgbset_rgbSetRgbSetRgbSetRgbset_rgb,
set_lutset_lutSetLutSetLutSetLutset_lut,
set_hsiset_hsiSetHsiSetHsiSetHsiset_hsi,
set_drawset_drawSetDrawSetDrawSetDrawset_draw,
set_colorset_colorSetColorSetColorSetColorset_color,
set_coloredset_coloredSetColoredSetColoredSetColoredset_colored,
set_line_widthset_line_widthSetLineWidthSetLineWidthSetLineWidthset_line_width
Alternativen
disp_regiondisp_regionDispRegionDispRegionDispRegiondisp_region,
gen_rectangle2gen_rectangle2GenRectangle2GenRectangle2GenRectangle2gen_rectangle2,
disp_rectangle1disp_rectangle1DispRectangle1DispRectangle1DispRectangle1disp_rectangle1,
set_shapeset_shapeSetShapeSetShapeSetShapeset_shape
Siehe auch
open_windowopen_windowOpenWindowOpenWindowOpenWindowopen_window,
disp_regiondisp_regionDispRegionDispRegionDispRegiondisp_region,
set_colorset_colorSetColorSetColorSetColorset_color,
set_drawset_drawSetDrawSetDrawSetDrawset_draw,
set_line_widthset_line_widthSetLineWidthSetLineWidthSetLineWidthset_line_width
Modul
Foundation