readme.m

来自「任意边界结构正交曲线网格生成程序」· M 代码 · 共 50 行

M
50
字号
README -- Documentation for the "ps" class. % 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 09-Dec-1999 01:55:25.% Updated    09-Dec-1999 01:55:25.The "ps" class in the "Presto" toolbox replaces the "px"class of the "Proxy" toolbox.  The new class is muchsimpler in design, easier to maintain, and extensible.Two features make "ps" objects attractive:	(1)	Their data can be extended arbitrarily, using simple		Matlab "." syntax for assigning and referencing the		fields.  Whenever such a field-name is thename of		an associated graphics property, the property itself		is targetted.  Unlike Matlab's "set/get" scheme, "ps"		subscripting can be nested to any depth that makes		sense, so that specific portions of a property or		field can be accessed directly.  Thus, "myPS.color(2)"		could refer to the second element of color in (say)		a figure attached to myPS, a "ps" object.			(2)	Classes can be derived from "ps" without restricting		access to any of the user's data.  This behavior is		unlike that seen in regular Matlab objects, whose		data is cosidered "private".		The "ps" class is designed for handling events generatedby graphical user interfaces, such as dialogs.  Menusand controls are easily created and connected to particularhandlers (methods).  Events are typically funneled intoa method called "doevent", whose argument is usually thename of the callback, as in "psevent ResizeFcn".The "ps_test.m" demonstration program shows hows to installmenus and controls in a figure.Needed:1.	A "bind()" routine, to be applied after the "ps" object	is created, so that the correct object is stored in the	"UserData" of the associated handle.	2.	Inheritance in "PST".

⌨️ 快捷键说明

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