gen_region_polygon_xldgen_region_polygon_xldGenRegionPolygonXldGenRegionPolygonXld (Operator)
Name
gen_region_polygon_xldgen_region_polygon_xldGenRegionPolygonXldGenRegionPolygonXld
— Generierung einer Region aus einem XLD-Polygon.
Signatur
Herror gen_region_polygon_xld(const Hobject Polygon, Hobject* Region, const char* Mode)
Herror T_gen_region_polygon_xld(const Hobject Polygon, Hobject* Region, const Htuple Mode)
Beschreibung
gen_region_polygon_xldgen_region_polygon_xldGenRegionPolygonXldGenRegionPolygonXldGenRegionPolygonXld
erzeugt eine pixelgenaue Region
RegionRegionRegionRegionregion
aus einem subpixelgenauen XLD-Polygon PolygonPolygonPolygonPolygonpolygon
.
Die örtliche Diskretisierung des Polygons erfolgt nach dem
Bresenham-Algorithmus und berücksichtigt die Nachbarschaftsbeziehung,
welche sich mit Hilfe des Parameters 'neighborhood'"neighborhood""neighborhood""neighborhood""neighborhood" des
Operators set_systemset_systemSetSystemSetSystemSetSystem
einstellen lässt. Offene Konturen werden
geschlossen, bevor sie in eine Region gewandelt werden. Der Parameter
ModeModeModeModemode
legt schließlich fest, ob die Region gefüllt
('filled'"filled""filled""filled""filled") oder nur ihr Rand ('margin'"margin""margin""margin""margin") zurückgegeben wird.
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
PolygonPolygonPolygonPolygonpolygon
(input_object) xld_poly(-array) →
objectHXLDPolyHXLDPolyHobject
Eingabe-Polygon(e).
RegionRegionRegionRegionregion
(output_object) region(-array) →
objectHRegionHRegionHobject *
Erzeugte Region(en).
ModeModeModeModemode
(input_control) string →
HTupleHTupleHtuple (string) (string) (HString) (char*)
Füllmodus der Region(en).
Defaultwert:
'filled'
"filled"
"filled"
"filled"
"filled"
Wertevorschläge: 'filled'"filled""filled""filled""filled", 'margin'"margin""margin""margin""margin"
Vorgänger
gen_polygons_xldgen_polygons_xldGenPolygonsXldGenPolygonsXldGenPolygonsXld
Alternativen
gen_region_polygongen_region_polygonGenRegionPolygonGenRegionPolygonGenRegionPolygon
,
gen_region_contour_xldgen_region_contour_xldGenRegionContourXldGenRegionContourXldGenRegionContourXld
Siehe auch
set_systemset_systemSetSystemSetSystemSetSystem
Modul
Foundation