www.gusucode.com > mbcview 工具箱matlab源码程序 > mbcview/@cgfeaturenode/cgbsupport.m

    function supp=cgbsupport(nd, pSub, supp)
%CGBSUPPORT Get cgbrowser supported options
%
%  SUPP=CGBSUPPORT(OBJ, pSUB, SUPP) where SUPP is a structure of options
%  and pSUB is a pointer to the subitem to be shown, gets the options for
%  this particular node/subitem combination.

%  Copyright 2000-2008 The MathWorks, Inc. and Ford Global Technologies, Inc.


supp.calmanager=1;
if ~issubfeature( nd )
    supp.allowremoval=1;
else
    % this must be a subfeature, hence can not be deleted
    supp.allowremoval=0;
end

supp.renderer='painters';
supp.surfaceviewer=1;
supp.helptopics={'&Feature Help','CGFEATUREVIEW'};