uipolygonmoveWindowButtonDownFcn

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - User interface
Introduced first in SolidGeometry 4.4, Creation date: 2018-12-26, Last change: 2025-09-14

callback fnct and interactive fnct to move and rotate polygons and to attach ui context menu

Description

This function is typically installed automatically as callback function for polygons by the figure function uipolygonSelectWindowButtonUp.

This function can be used to move a polygon from the command line or to attach it as callback function to a polygon

See Also: uipolygonSelectWindowButtonUp , uipolygoncontextmenu , uipolygonselect

Example Illustration

 missing image of uipolygonmoveWindowButtonDownFcn(h,st)

Syntax

[h,hp]=uipolygonmoveWindowButtonDownFcn(h,st)

Input Parameter

h: calling function
st: calling event

Output Parameter

h: handle to polygon
hp: gandle to all polygons

Examples


SGfigure; CPLplotasPS(CPLsample(14)); h=uipolygonselect([0 0 ]); set(h,'Selected','on');
h=findobj(gca,'Type','polygon','selected','on'); set(h,'ButtonDownFcn',@uipolygonmoveWindowButtonDownFcn);
rotate3d off




Copyright 2018-2025 Tim C. Lueth. All rights reserved. The code is the property of Tim C. Lueth and may not be redistributed or modified without explicit written permission. This software may be used free of charge for academic research and teaching purposes only. Commercial use, redistribution, modification, or reverse engineering is strictly prohibited. Access to source code is restricted and granted only under specific agreements. For licensing inquiries or commercial use, please contact: Tim C. Lueth

Last html export of this page out of FM database by TL: 2025-09-21