KlassenKlassenKlassenKlassen | | | | Operatoren

disp_linedisp_lineDispLinedisp_lineDispLineDispLine (Operator)

Name

disp_linedisp_lineDispLinedisp_lineDispLineDispLine — Zeichnen von Linien in ein Fenster.

Signatur

disp_line( : : WindowHandle, Row1, Column1, Row2, Column2 : )

Herror disp_line(const Hlong WindowHandle, double Row1, double Column1, double Row2, double Column2)

Herror T_disp_line(const Htuple WindowHandle, const Htuple Row1, const Htuple Column1, const Htuple Row2, const Htuple Column2)

Herror disp_line(const HTuple& WindowHandle, const HTuple& Row1, const HTuple& Column1, const HTuple& Row2, const HTuple& Column2)

void HWindow::DispLine(const HTuple& Row1, const HTuple& Column1, const HTuple& Row2, const HTuple& Column2) const

void DispLine(const HTuple& WindowHandle, const HTuple& Row1, const HTuple& Column1, const HTuple& Row2, const HTuple& Column2)

void HWindow::DispLine(const HTuple& Row1, const HTuple& Column1, const HTuple& Row2, const HTuple& Column2) const

void HWindow::DispLine(double Row1, double Column1, double Row2, double Column2) const

void HOperatorSetX.DispLine(
[in] VARIANT WindowHandle, [in] VARIANT Row1, [in] VARIANT Column1, [in] VARIANT Row2, [in] VARIANT Column2)

void HWindowX.DispLine(
[in] VARIANT Row1, [in] VARIANT Column1, [in] VARIANT Row2, [in] VARIANT Column2)

static void HOperatorSet.DispLine(HTuple windowHandle, HTuple row1, HTuple column1, HTuple row2, HTuple column2)

void HWindow.DispLine(HTuple row1, HTuple column1, HTuple row2, HTuple column2)

void HWindow.DispLine(double row1, double column1, double row2, double column2)

Beschreibung

disp_linedisp_lineDispLinedisp_lineDispLineDispLine trägt eine oder mehrere Linien mit Anfangskoordinaten (Row1Row1Row1Row1Row1row1,Column1Column1Column1Column1Column1column1) und Endkoordinaten (Row2Row2Row2Row2Row2row2,Column2Column2Column2Column2Column2column2) in das Ausgabefenster ein. Bei der Darstellung von mehr als einer Linie müssen die Koordinaten dabei jeweils in Form eines Tupels übergeben werden. Für die Behandlung der Farben bei mehr als einer Linie, siehe set_colorset_colorSetColorset_colorSetColorSetColor.

Die Parameter für die Ausgabe können wie bei der Darstellung einer Region (disp_regiondisp_regionDispRegiondisp_regionDispRegionDispRegion) mit den Operatoren set_colorset_colorSetColorset_colorSetColorSetColor, set_grayset_graySetGrayset_graySetGraySetGray, set_drawset_drawSetDrawset_drawSetDrawSetDraw, set_line_widthset_line_widthSetLineWidthset_line_widthSetLineWidthSetLineWidth, etc. bestimmt werden.

Achtung

Die Anfangs- und Endpunkte der Linien müssen innerhalb des Fensters liegen.

Parallelisierung

Parameter

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

Fenster-Handle.

Row1Row1Row1Row1Row1row1 (input_control)  line.begin.y(-array) HTupleHTupleHTupleVARIANTHtuple (real) (double) (double) (double) (double) (double)

Zeilenindex des Anfangspunktes.

Defaultwert: 32.0

Wertevorschläge: 0.0, 64.0, 128.0, 256.0, 511.0

Typischer Wertebereich: 0 ≤ Row1 Row1 Row1 Row1 Row1 row1 ≤ 511 (lin)

Minimale Schrittweite: 1

Empfohlene Schrittweite: 10

Column1Column1Column1Column1Column1column1 (input_control)  line.begin.x(-array) HTupleHTupleHTupleVARIANTHtuple (real) (double) (double) (double) (double) (double)

Spaltenindex des Anfangspunktes.

Defaultwert: 32.0

Wertevorschläge: 0.0, 64.0, 128.0, 256.0, 511.0

Typischer Wertebereich: 0 ≤ Column1 Column1 Column1 Column1 Column1 column1 ≤ 511 (lin)

Minimale Schrittweite: 1

Empfohlene Schrittweite: 10

Row2Row2Row2Row2Row2row2 (input_control)  line.end.y(-array) HTupleHTupleHTupleVARIANTHtuple (real) (double) (double) (double) (double) (double)

Zeilenindex des Endpunktes.

Defaultwert: 64.0

Wertevorschläge: 0.0, 64.0, 128.0, 256.0, 511.0

Typischer Wertebereich: 0 ≤ Row2 Row2 Row2 Row2 Row2 row2 ≤ 511 (lin)

Minimale Schrittweite: 1

Empfohlene Schrittweite: 10

Column2Column2Column2Column2Column2column2 (input_control)  line.end.x(-array) HTupleHTupleHTupleVARIANTHtuple (real) (double) (double) (double) (double) (double)

Spaltenindex des Endpunktes.

Defaultwert: 64.0

Wertevorschläge: 0.0, 64.0, 128.0, 256.0, 511.0

Typischer Wertebereich: 0 ≤ Column2 Column2 Column2 Column2 Column2 column2 ≤ 511 (lin)

Minimale Schrittweite: 1

Empfohlene Schrittweite: 10

Beispiel (HDevelop)

* Display contour of a rectangle
disp_line(WindowHandle,Row1,Column1,Row1,Column2)
disp_line(WindowHandle,Row1,Column2,Row2,Column2)
disp_line(WindowHandle,Row2,Column2,Row2,Column1)
disp_line(WindowHandle,Row2,Column1,Row1,Column1)

Beispiel (C)

/* Display contour of a rectangle */
disp_rectangle1_margin(Hlong WindowHandle,
                       Hlong Row1, long Column1,
                       Hlong Row2, long Column2)
{
  disp_line(WindowHandle,Row1,Column1,Row1,Column2) ;
  disp_line(WindowHandle,Row1,Column2,Row2,Column2) ;
  disp_line(WindowHandle,Row2,Column2,Row2,Column1) ;
  disp_line(WindowHandle,Row2,Column1,Row1,Column1) ;
}
  

Beispiel (HDevelop)

* Display contour of a rectangle
disp_line(WindowHandle,Row1,Column1,Row1,Column2)
disp_line(WindowHandle,Row1,Column2,Row2,Column2)
disp_line(WindowHandle,Row2,Column2,Row2,Column1)
disp_line(WindowHandle,Row2,Column1,Row1,Column1)

Beispiel (HDevelop)

* Display contour of a rectangle
disp_line(WindowHandle,Row1,Column1,Row1,Column2)
disp_line(WindowHandle,Row1,Column2,Row2,Column2)
disp_line(WindowHandle,Row2,Column2,Row2,Column1)
disp_line(WindowHandle,Row2,Column1,Row1,Column1)

Beispiel (HDevelop)

* Display contour of a rectangle
disp_line(WindowHandle,Row1,Column1,Row1,Column2)
disp_line(WindowHandle,Row1,Column2,Row2,Column2)
disp_line(WindowHandle,Row2,Column2,Row2,Column1)
disp_line(WindowHandle,Row2,Column1,Row1,Column1)

Beispiel (HDevelop)

* Display contour of a rectangle
disp_line(WindowHandle,Row1,Column1,Row1,Column2)
disp_line(WindowHandle,Row1,Column2,Row2,Column2)
disp_line(WindowHandle,Row2,Column2,Row2,Column1)
disp_line(WindowHandle,Row2,Column1,Row1,Column1)

Ergebnis

disp_linedisp_lineDispLinedisp_lineDispLineDispLine liefert den Wert 2 (H_MSG_TRUE).

Vorgänger

open_windowopen_windowOpenWindowopen_windowOpenWindowOpenWindow, set_rgbset_rgbSetRgbset_rgbSetRgbSetRgb, set_lutset_lutSetLutset_lutSetLutSetLut, set_hsiset_hsiSetHsiset_hsiSetHsiSetHsi, set_drawset_drawSetDrawset_drawSetDrawSetDraw, set_colorset_colorSetColorset_colorSetColorSetColor, set_coloredset_coloredSetColoredset_coloredSetColoredSetColored, set_line_widthset_line_widthSetLineWidthset_line_widthSetLineWidthSetLineWidth

Alternativen

disp_arrowdisp_arrowDispArrowdisp_arrowDispArrowDispArrow, disp_rectangle1disp_rectangle1DispRectangle1disp_rectangle1DispRectangle1DispRectangle1, disp_rectangle2disp_rectangle2DispRectangle2disp_rectangle2DispRectangle2DispRectangle2, disp_regiondisp_regionDispRegiondisp_regionDispRegionDispRegion, gen_region_polygongen_region_polygonGenRegionPolygongen_region_polygonGenRegionPolygonGenRegionPolygon, gen_region_pointsgen_region_pointsGenRegionPointsgen_region_pointsGenRegionPointsGenRegionPoints

Siehe auch

open_windowopen_windowOpenWindowopen_windowOpenWindowOpenWindow, set_colorset_colorSetColorset_colorSetColorSetColor, set_rgbset_rgbSetRgbset_rgbSetRgbSetRgb, set_hsiset_hsiSetHsiset_hsiSetHsiSetHsi, set_insertset_insertSetInsertset_insertSetInsertSetInsert, set_line_widthset_line_widthSetLineWidthset_line_widthSetLineWidthSetLineWidth

Modul

Foundation


KlassenKlassenKlassenKlassen | | | | Operatoren