KlassenKlassenKlassenKlassen | | | | Operatoren

draw_xlddraw_xldDrawXlddraw_xldDrawXldDrawXld (Operator)

Name

draw_xlddraw_xldDrawXlddraw_xldDrawXldDrawXld — Interaktives Erstellen einer Kontur.

Signatur

draw_xld( : ContOut : WindowHandle, Rotate, Move, Scale, KeepRatio : )

Herror draw_xld(Hobject* ContOut, const Hlong WindowHandle, const char* Rotate, const char* Move, const char* Scale, const char* KeepRatio)

Herror T_draw_xld(Hobject* ContOut, const Htuple WindowHandle, const Htuple Rotate, const Htuple Move, const Htuple Scale, const Htuple KeepRatio)

Herror draw_xld(Hobject* ContOut, const HTuple& WindowHandle, const HTuple& Rotate, const HTuple& Move, const HTuple& Scale, const HTuple& KeepRatio)

HXLDCont HXLDCont::DrawXld(const HTuple& WindowHandle, const HTuple& Rotate, const HTuple& Move, const HTuple& Scale, const HTuple& KeepRatio)

void DrawXld(HObject* ContOut, const HTuple& WindowHandle, const HTuple& Rotate, const HTuple& Move, const HTuple& Scale, const HTuple& KeepRatio)

void HXLDCont::DrawXld(const HWindow& WindowHandle, const HString& Rotate, const HString& Move, const HString& Scale, const HString& KeepRatio)

void HXLDCont::DrawXld(const HWindow& WindowHandle, const char* Rotate, const char* Move, const char* Scale, const char* KeepRatio)

HXLDCont HWindow::DrawXld(const HString& Rotate, const HString& Move, const HString& Scale, const HString& KeepRatio) const

HXLDCont HWindow::DrawXld(const char* Rotate, const char* Move, const char* Scale, const char* KeepRatio) const

void HOperatorSetX.DrawXld(
[out] IHUntypedObjectX*ContOut, [in] VARIANT WindowHandle, [in] VARIANT Rotate, [in] VARIANT Move, [in] VARIANT Scale, [in] VARIANT KeepRatio)

void HXLDContX.DrawXld(
[in] IHWindowX* WindowHandle, [in] BSTR Rotate, [in] BSTR Move, [in] BSTR Scale, [in] BSTR KeepRatio)

IHXLDContX* HWindowX.DrawXld(
[in] BSTR Rotate, [in] BSTR Move, [in] BSTR Scale, [in] BSTR KeepRatio)

static void HOperatorSet.DrawXld(out HObject contOut, HTuple windowHandle, HTuple rotate, HTuple move, HTuple scale, HTuple keepRatio)

void HXLDCont.DrawXld(HWindow windowHandle, string rotate, string move, string scale, string keepRatio)

HXLDCont HWindow.DrawXld(string rotate, string move, string scale, string keepRatio)

Beschreibung

draw_xlddraw_xldDrawXlddraw_xldDrawXldDrawXld liefert eine Kontur, die interaktiv durch den Benutzer im Fenster erzeugt worden ist.

Direkt nach dem Aufruf von draw_xlddraw_xldDrawXlddraw_xldDrawXldDrawXld kann man, durch Drücken der linken Maustaste, Punkte zur Kontur hinzufügen. Der zuletzt angehängte Punkt kann durch Drücken der Steuerungstaste (Strg, Ctrl) gelöscht werden. Sobald die Kontur aus 3 Punkten besteht, werden 5 Pickpunkte dargestellt, einer in der Mitte und die anderen an den 4 Ecken des umschließenden Rechtecks. Durch Klicken auf einen dieser Pickpunkte kann die Kontur geschlossen und wieder geöffnet werden. Bei einer geschlossenen Kontur werden die Pickpunkte als Rechtecke dargestellt, ansonsten gleicht ihre Form einem ´u´.

Bei einer geschlossene Kontur kann man

Durch Drücken der Umschalttaste kann in den Modus zum Transformieren der Kontur gewechselt werden. In diesem Modus kann die Kontur rotiert, verschoben und skaliert werden, jedoch nur wenn der entsprechenden Parameter RotateRotateRotateRotateRotaterotate, MoveMoveMoveMoveMovemove und ScaleScaleScaleScaleScalescale auf 'true'"true""true""true""true""true" gesetzt wurde. Die Kontur wird zusammen mit einem Kreuz in der Mitte und einem Pfeil nach rechts, falls RotateRotateRotateRotateRotaterotate auf 'true'"true""true""true""true""true" gesetzt wurde, und einem Doppelpfeil, falls ScaleScaleScaleScaleScalescale auf 'true'"true""true""true""true""true" gesetzt wurde, dargestellt.

Die Kontur kann

Ein Klick mit der rechten Maustaste beendet die Prozedur. Unter OS X kann draw_xlddraw_xldDrawXlddraw_xldDrawXldDrawXld auch durch Drücken der Escape-Taste beendet werden.

Parallelisierung

Parameter

ContOutContOutContOutContOutContOutcontOut (output_object)  xld_cont objectHXLDContHXLDContHXLDContHXLDContXHobject *

Modifizierte Kontur.

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

Fenster-Handle.

RotateRotateRotateRotateRotaterotate (input_control)  string HTupleHTupleHTupleVARIANTHtuple (string) (string) (HString) (char*) (BSTR) (char*)

Rotation ermöglichen?

Defaultwert: 'true' "true" "true" "true" "true" "true"

Werteliste: 'false'"false""false""false""false""false", 'true'"true""true""true""true""true"

MoveMoveMoveMoveMovemove (input_control)  string HTupleHTupleHTupleVARIANTHtuple (string) (string) (HString) (char*) (BSTR) (char*)

Verschieben ermöglichen?

Defaultwert: 'true' "true" "true" "true" "true" "true"

Werteliste: 'false'"false""false""false""false""false", 'true'"true""true""true""true""true"

ScaleScaleScaleScaleScalescale (input_control)  string HTupleHTupleHTupleVARIANTHtuple (string) (string) (HString) (char*) (BSTR) (char*)

Skalieren ermöglichen?

Defaultwert: 'true' "true" "true" "true" "true" "true"

Werteliste: 'false'"false""false""false""false""false", 'true'"true""true""true""true""true"

KeepRatioKeepRatioKeepRatioKeepRatioKeepRatiokeepRatio (input_control)  string HTupleHTupleHTupleVARIANTHtuple (string) (string) (HString) (char*) (BSTR) (char*)

Seitenverhältnis beim Skalieren beibehalten?

Defaultwert: 'true' "true" "true" "true" "true" "true"

Werteliste: 'false'"false""false""false""false""false", 'true'"true""true""true""true""true"

Ergebnis

draw_xlddraw_xldDrawXlddraw_xldDrawXldDrawXld liefert den Wert 2 (H_MSG_TRUE), falls das Fenster gültig und der benötigte Zeichenmodus (siehe set_insertset_insertSetInsertset_insertSetInsertSetInsert) verfügbar ist. Ansonsten wird eine Fehlerbehandlung durchgeführt.

Vorgänger

open_windowopen_windowOpenWindowopen_windowOpenWindowOpenWindow

Nachfolger

reduce_domainreduce_domainReduceDomainreduce_domainReduceDomainReduceDomain, disp_regiondisp_regionDispRegiondisp_regionDispRegionDispRegion, set_coloredset_coloredSetColoredset_coloredSetColoredSetColored, set_line_widthset_line_widthSetLineWidthset_line_widthSetLineWidthSetLineWidth, set_drawset_drawSetDrawset_drawSetDrawSetDraw, set_insertset_insertSetInsertset_insertSetInsertSetInsert

Alternativen

draw_rectangle2draw_rectangle2DrawRectangle2draw_rectangle2DrawRectangle2DrawRectangle2, draw_rectangle1draw_rectangle1DrawRectangle1draw_rectangle1DrawRectangle1DrawRectangle1, draw_rectangle2draw_rectangle2DrawRectangle2draw_rectangle2DrawRectangle2DrawRectangle2, draw_regiondraw_regionDrawRegiondraw_regionDrawRegionDrawRegion

Siehe auch

gen_rectangle2gen_rectangle2GenRectangle2gen_rectangle2GenRectangle2GenRectangle2, draw_circledraw_circleDrawCircledraw_circleDrawCircleDrawCircle, draw_ellipsedraw_ellipseDrawEllipsedraw_ellipseDrawEllipseDrawEllipse, set_insertset_insertSetInsertset_insertSetInsertSetInsert

Modul

Foundation


KlassenKlassenKlassenKlassen | | | | Operatoren