⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 domouse.m

📁 一些制作正交曲线网格的matlab源程序
💻 M
字号:
function theResult = domouse(self, theEvent, varargin)% ps/domouse -- Process "ps" mouse events.%  domouse(self, 'theEvent') handles mouse events%   on behalf of self, a "ps" object. % Copyright (C) 1999 Dr. Charles R. Denham, ZYDECO.%  All Rights Reserved.%   Disclosure without explicit written consent from the%    copyright owner does not constitute publication. % Version of 05-Nov-1999 08:43:30.% Updated    14-Dec-1999 16:39:22.persistent OLD_NAMEpersistent OLD_NUMBER_TITLEpersistent OLD_POINTERpersistent SELECTION_TYPEswitch lower(theEvent)% Mouse play.	case 'windowbuttonmotionfcn'	pt = get(gca, 'CurrentPoint');	pt = mean(pt);	NEW_NAME = ['[' num2str(pt(1)) ', ' num2str(pt(2)) ', ' num2str(pt(3)) ']'];	set(gcbf, 'Name', NEW_NAME)case 'windowbuttondownfcn'	pt = get(gca, 'CurrentPoint');	pt = mean(pt);	SELECTION_TYPE = get(gcbf, 'SelectionType');	NEW_NAME = ['[' num2str(pt(1)) ', ' num2str(pt(2)) ', ' num2str(pt(3)) ']'];	NEW_NUMBER_TITLE = 'off';	NEW_POINTER = 'circle';	OLD_NAME = get(gcbf, 'Name');	OLD_NUMBER_TITLE = get(gcbf, 'NumberTitle');	OLD_POINTER = get(gcbf, 'Pointer');	set(gcbf, ...			'WindowButtonDownFcn', '', ...			'WindowButtonMotionFcn', ['psevent WindowButtonMotionFcn'], ...			'WindowButtonUpFcn', ['psevent WindowButtonUpFcn'], ...			'Name', NEW_NAME, 'NumberTitle', NEW_NUMBER_TITLE, ...			'Pointer', NEW_POINTER);case 'windowbuttonupfcn'	set(gcbf, ...			'WindowButtonMotionFcn', '', ...			'WindowButtonUpFcn', '', ...			'WindowButtonDownFcn', ['psevent WindowButtonDownFcn'], ...			'Name', OLD_NAME, 'NumberTitle', OLD_NUMBER_TITLE, ...			'Pointer', OLD_POINTER);	OLD_NAME = [];	OLD_POINTER = [];endif nargout > 0	theResult = self;end

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -