Name
set_line_approxset_line_approxSetLineApproxSetLineApprox — Festlegen der Glättung für die Konturdarstellung.
Warnung
set_line_approxset_line_approxSetLineApproxSetLineApproxSetLineApprox ist veraltet und wird nur aus Gründen
der Rückwärtskompatibilität zur Verfügung gestellt.
set_line_approxset_line_approxSetLineApproxSetLineApproxSetLineApprox bestimmt den Approximationsfehler bei der Darstellung
von Regionenrändern und XLD Kontouren im Fenster WindowHandleWindowHandleWindowHandleWindowHandlewindowHandle. Ein
Werte größer Null für ApproximationApproximationApproximationApproximationapproximation bewirkt eine
Vereinfachung/Glättung des Linienverlaufs mit weniger Punkten und ermöglicht
eine schnellere Visualisierung. Dabei gibt ApproximationApproximationApproximationApproximationapproximation die
maximale Abweichung des angenäherten Linienzugs vom ursprünglichen in Pixel
an (Ramer-Douglas-Peucker Algorithmus).
- Multithreading-Typ: reentrant (läuft parallel zu nicht-exklusiven Operatoren).
- Multithreading-Bereich: global (kann von jedem Thread aufgerufen werden).
- Wird ohne Parallelisierung verarbeitet.
Maximale Abweichung von der Originalkontur.
Defaultwert: 0
Typischer Wertebereich: 0
≤
Approximation
Approximation
Approximation
Approximation
approximation
Restriktion: Approximation >= 0
* Calling...
set_line_approx(WindowHandle,Approximation)
set_draw(WindowHandle,'margin')
disp_region(Obj,WindowHandle)
* ...corresponds with
get_region_polygon(Obj,Approximation,Row,Col)
disp_polygon(WindowHandle,Row,Col)
/* Calling... */
set_line_approx(WindowHandle,Approximation) ;
set_draw(WindowHandle,"margin") ;
disp_region(Obj,WindowHandle) ;
/* ...corresponds with */
Htuple Approximation,Row,Col, WindowHandleTuple ;
create_tuple(&Approximation,1) ;
set_i(Approximation,0,0) ;
create_tuple(&WindowHandleTuple,1) ;
set_i(WindowHandleTuple,WindowHandle, 0) ;
T_get_region_polygon(Obj,Approximation,&Row,&Col) ;
T_disp_polygon(WindowHandleTuple,Row,Col) ;
* Calling...
set_line_approx(WindowHandle,Approximation)
set_draw(WindowHandle,'margin')
disp_region(Obj,WindowHandle)
* ...corresponds with
get_region_polygon(Obj,Approximation,Row,Col)
disp_polygon(WindowHandle,Row,Col)
* Calling...
set_line_approx(WindowHandle,Approximation)
set_draw(WindowHandle,'margin')
disp_region(Obj,WindowHandle)
* ...corresponds with
get_region_polygon(Obj,Approximation,Row,Col)
disp_polygon(WindowHandle,Row,Col)
* Calling...
set_line_approx(WindowHandle,Approximation)
set_draw(WindowHandle,'margin')
disp_region(Obj,WindowHandle)
* ...corresponds with
get_region_polygon(Obj,Approximation,Row,Col)
disp_polygon(WindowHandle,Row,Col)
set_line_approxset_line_approxSetLineApproxSetLineApproxSetLineApprox liefert den Wert 2 (H_MSG_TRUE), falls der Parameter
korrekt ist und das Fenster gültig ist.
Ansonsten wird eine Fehlerbehandlung durchgeführt.
get_line_approxget_line_approxGetLineApproxGetLineApproxGetLineApprox
disp_regiondisp_regionDispRegionDispRegionDispRegion
get_region_polygonget_region_polygonGetRegionPolygonGetRegionPolygonGetRegionPolygon,
disp_polygondisp_polygonDispPolygonDispPolygonDispPolygon
get_line_approxget_line_approxGetLineApproxGetLineApproxGetLineApprox,
set_line_styleset_line_styleSetLineStyleSetLineStyleSetLineStyle,
set_drawset_drawSetDrawSetDrawSetDraw,
disp_regiondisp_regionDispRegionDispRegionDispRegion,
disp_polygondisp_polygonDispPolygonDispPolygonDispPolygon
Foundation