www.gusucode.com > mbcview 工具箱matlab源码程序 > mbcview/@cgsurfview/@app/setnodes.m
function setnodes(obj,nodes,selection) % CGSURFVIEW/SETNODES Changes the node list and updates all components % Copyright 2000-2004 The MathWorks, Inc. and Ford Global Technologies, Inc. datasets={}; cbenable = 0; if length(nodes)>0 cbenable = ~isempty(nodes(1).getconstraintfcn); nodedata=nodes(1).getoutputs; datasets={nodedata{:,1}}; end obj.hDataSel.cbenable = cbenable; obj.hDataSel.datasets = datasets; obj.hNodeSel.setnodes(nodes,selection); % the NodeSelectionChange event from this % will update everything else.