draw_xld_modT_draw_xld_modDrawXldModDrawXldModdraw_xld_mod (Operator)

Name

draw_xld_modT_draw_xld_modDrawXldModDrawXldModdraw_xld_mod — 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)

def draw_xld_mod(cont_in: HObject, window_handle: HHandle, rotate: str, move: str, scale: str, keep_ratio: str, edit: str) -> HObject

Beschreibung

draw_xld_moddraw_xld_modDrawXldModDrawXldModdraw_xld_mod 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_modDrawXldModDrawXldModdraw_xld_mod 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.

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

ContInContInContIncontIncont_in (input_object)  xld_cont objectHXLDContHObjectHObjectHobject

Eingabekontur

ContOutContOutContOutcontOutcont_out (output_object)  xld_cont objectHXLDContHObjectHObjectHobject *

Modifizierte Kontur.

WindowHandleWindowHandleWindowHandlewindowHandlewindow_handle (input_control)  window HWindow, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Fenster-Handle.

RotateRotateRotaterotaterotate (input_control)  string HTuplestrHTupleHtuple (string) (string) (HString) (char*)

Rotation ermöglichen?

Default: 'true' "true" "true" "true" "true"

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

MoveMoveMovemovemove (input_control)  string HTuplestrHTupleHtuple (string) (string) (HString) (char*)

Verschieben ermöglichen?

Default: 'true' "true" "true" "true" "true"

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

ScaleScaleScalescalescale (input_control)  string HTuplestrHTupleHtuple (string) (string) (HString) (char*)

Skalieren ermöglichen?

Default: 'true' "true" "true" "true" "true"

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

KeepRatioKeepRatioKeepRatiokeepRatiokeep_ratio (input_control)  string HTuplestrHTupleHtuple (string) (string) (HString) (char*)

Seitenverhältnis beim Skalieren beibehalten?

Default: 'true' "true" "true" "true" "true"

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

EditEditEditeditedit (input_control)  string HTuplestrHTupleHtuple (string) (string) (HString) (char*)

Editieren ermöglichen?

Default: 'true' "true" "true" "true" "true"

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

Ergebnis

draw_xld_moddraw_xld_modDrawXldModDrawXldModdraw_xld_mod liefert den Wert 2 ( H_MSG_TRUE) , falls das Fenster gültig ist. Ansonsten wird eine Fehlerbehandlung durchgeführt.

Vorgänger

open_windowopen_windowOpenWindowOpenWindowopen_window

Nachfolger

reduce_domainreduce_domainReduceDomainReduceDomainreduce_domain, disp_regiondisp_regionDispRegionDispRegiondisp_region, set_coloredset_coloredSetColoredSetColoredset_colored, set_line_widthset_line_widthSetLineWidthSetLineWidthset_line_width, set_drawset_drawSetDrawSetDrawset_draw

Alternativen

draw_rectangle2draw_rectangle2DrawRectangle2DrawRectangle2draw_rectangle2, draw_rectangle1draw_rectangle1DrawRectangle1DrawRectangle1draw_rectangle1, draw_rectangle2draw_rectangle2DrawRectangle2DrawRectangle2draw_rectangle2, draw_regiondraw_regionDrawRegionDrawRegiondraw_region

Siehe auch

gen_rectangle2gen_rectangle2GenRectangle2GenRectangle2gen_rectangle2, draw_circledraw_circleDrawCircleDrawCircledraw_circle, draw_ellipsedraw_ellipseDrawEllipseDrawEllipsedraw_ellipse

Modul

Foundation