draw_xld_modT_draw_xld_modDrawXldModDrawXldMod (Operator)

Name

draw_xld_modT_draw_xld_modDrawXldModDrawXldMod — Interaktives Modifizieren einer Kontur.

Signatur

draw_xld_mod(ContIn : ContOut : WindowHandle, Rotate, Move, Scale, KeepRatio, Edit : )

Herror T_draw_xld_mod(const Hobject ContIn, Hobject* ContOut, const Htuple WindowHandle, const Htuple Rotate, const Htuple Move, const Htuple Scale, const Htuple KeepRatio, const Htuple Edit)

void DrawXldMod(const HObject& ContIn, HObject* ContOut, const HTuple& WindowHandle, const HTuple& Rotate, const HTuple& Move, const HTuple& Scale, const HTuple& KeepRatio, const HTuple& Edit)

HXLDCont HXLDCont::DrawXldMod(const HWindow& WindowHandle, const HString& Rotate, const HString& Move, const HString& Scale, const HString& KeepRatio, const HString& Edit) const

HXLDCont HXLDCont::DrawXldMod(const HWindow& WindowHandle, const char* Rotate, const char* Move, const char* Scale, const char* KeepRatio, const char* Edit) const

HXLDCont HXLDCont::DrawXldMod(const HWindow& WindowHandle, const wchar_t* Rotate, const wchar_t* Move, const wchar_t* Scale, const wchar_t* KeepRatio, const wchar_t* Edit) const   (Nur Windows)

HXLDCont HWindow::DrawXldMod(const HXLDCont& ContIn, const HString& Rotate, const HString& Move, const HString& Scale, const HString& KeepRatio, const HString& Edit) const

HXLDCont HWindow::DrawXldMod(const HXLDCont& ContIn, const char* Rotate, const char* Move, const char* Scale, const char* KeepRatio, const char* Edit) const

HXLDCont HWindow::DrawXldMod(const HXLDCont& ContIn, const wchar_t* Rotate, const wchar_t* Move, const wchar_t* Scale, const wchar_t* KeepRatio, const wchar_t* Edit) const   (Nur Windows)

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

HXLDCont HXLDCont.DrawXldMod(HWindow windowHandle, string rotate, string move, string scale, string keepRatio, string edit)

HXLDCont HWindow.DrawXldMod(HXLDCont contIn, string rotate, string move, string scale, string keepRatio, string edit)

Beschreibung

draw_xld_moddraw_xld_modDrawXldModDrawXldModDrawXldMod liefert eine Kontur, die interaktiv durch den Benutzer im Fenster modifiziert worden ist.

Die Kontur kann auf zwei Arten modifiziert werden: Durch Editieren, zum Beispiel durch Einfügen oder Verschieben von Punkten, oder durch das Transformieren der Kontur als Ganzes, zum Beispiel durch Rotation, Verschieben oder Skalieren. Die Kontur kann jedoch nur editiert werden, wenn der Parameter EditEditEditEditedit auf 'true'"true""true""true""true" gesetzt wurde. Die Parameter RotateRotateRotateRotaterotate, MoveMoveMoveMovemove und ScaleScaleScaleScalescale müssen auf 'true'"true""true""true""true" gesetzt werden, damit die entsprechende Bearbeitung durchgeführt werden kann. draw_xld_moddraw_xld_modDrawXldModDrawXldModDrawXldMod beginnt im Modus zum Transformieren. Durch Drücken der Umschalttaste kann in den Modus zum Editieren gewechselt werden; durch erneutes Drücken der Taste wechselt man zurück in den Modus zum Transformieren.

Transformieren In diesem Modus kann die Kontur rotiert, verschoben und skaliert werden, jedoch nur wenn der entsprechenden Parameter RotateRotateRotateRotaterotate, MoveMoveMoveMovemove und ScaleScaleScaleScalescale auf 'true'"true""true""true""true" gesetzt wurde. Die Kontur wird zusammen mit einem Kreuz in der Mitte und einem Pfeil nach rechts, falls RotateRotateRotateRotaterotate auf 'true'"true""true""true""true" gesetzt wurde, und einem Doppelpfeil, falls ScaleScaleScaleScalescale auf 'true'"true""true""true""true" gesetzt wurde, dargestellt.

Editieren In diesem Modus wird die Kontur zusammen mit 5 sogenannten Pickpunkten dargestellt. Diese befinden sich in der Mitte und an den vier Ecken des umschließenden Rechtecks. Bei geschlossener Kontur werden diese Pickpunkte als Rechtecke dargestellt, ansonsten gleicht deren Form einem 'u'. Durch Drücken auf diese Pickpunkte kann eine geöffnete Kontur geschlossen werden und umgekehrt. Abhängig vom Zustand der Kontur können unterschiedliche Modifikationen vorgenommen werden. Geöffnete Kontur (Pickpunkte gleichen einem 'u')

Geschlossene Kontur (rechteckige Pickpunkte)

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

Achtung

Für die Nutzung des Zeichenoperators in einem Puffer-Fenster muss die Anwendung Maus-Events senden. Der Zeichenoperator muss dabei in einem anderen Thread ausgeführt werden.

Ausführungsinformationen

Parameter

ContInContInContInContIncontIn (input_object)  xld_cont objectHXLDContHXLDContHobject

Eingabekontur

ContOutContOutContOutContOutcontOut (output_object)  xld_cont objectHXLDContHXLDContHobject *

Modifizierte Kontur.

WindowHandleWindowHandleWindowHandleWindowHandlewindowHandle (input_control)  window HWindow, HTupleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Fenster-Handle.

RotateRotateRotateRotaterotate (input_control)  string HTupleHTupleHtuple (string) (string) (HString) (char*)

Rotation ermöglichen?

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

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

MoveMoveMoveMovemove (input_control)  string HTupleHTupleHtuple (string) (string) (HString) (char*)

Verschieben ermöglichen?

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

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

ScaleScaleScaleScalescale (input_control)  string HTupleHTupleHtuple (string) (string) (HString) (char*)

Skalieren ermöglichen?

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

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

KeepRatioKeepRatioKeepRatioKeepRatiokeepRatio (input_control)  string HTupleHTupleHtuple (string) (string) (HString) (char*)

Seitenverhältnis beim Skalieren beibehalten?

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

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

EditEditEditEditedit (input_control)  string HTupleHTupleHtuple (string) (string) (HString) (char*)

Editieren ermöglichen?

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

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

Ergebnis

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

Vorgänger

open_windowopen_windowOpenWindowOpenWindowOpenWindow

Nachfolger

reduce_domainreduce_domainReduceDomainReduceDomainReduceDomain, disp_regiondisp_regionDispRegionDispRegionDispRegion, set_coloredset_coloredSetColoredSetColoredSetColored, set_line_widthset_line_widthSetLineWidthSetLineWidthSetLineWidth, set_drawset_drawSetDrawSetDrawSetDraw, set_insertset_insertSetInsertSetInsertSetInsert

Alternativen

draw_rectangle2draw_rectangle2DrawRectangle2DrawRectangle2DrawRectangle2, draw_rectangle1draw_rectangle1DrawRectangle1DrawRectangle1DrawRectangle1, draw_rectangle2draw_rectangle2DrawRectangle2DrawRectangle2DrawRectangle2, draw_regiondraw_regionDrawRegionDrawRegionDrawRegion

Siehe auch

gen_rectangle2gen_rectangle2GenRectangle2GenRectangle2GenRectangle2, draw_circledraw_circleDrawCircleDrawCircleDrawCircle, draw_ellipsedraw_ellipseDrawEllipseDrawEllipseDrawEllipse, set_insertset_insertSetInsertSetInsertSetInsert

Modul

Foundation