📄 gmmouse1.m
字号:
function fig = gmmouse1()
% This is the machine-generated representation of a Handle Graphics object
% and its children. Note that handle values may change when these objects
% are re-created. This may cause problems with any callbacks written to
% depend on the value of the handle at the time the object was saved.
%
% To reopen this object, just type the name of the M-file at the MATLAB
% prompt. The M-file and its associated MAT-file must be on your path.
load gmmouse1
h0 = figure('Units','characters', ...
'Color',[0.8 0.8 0.8], ...
'Colormap',mat0, ...
'PointerShapeCData',mat1, ...
'Position',[83.2 7.076923076923078 132.6 49], ...
'Tag','Fig1');
h1 = axes('Parent',h0, ...
'Units','characters', ...
'CameraUpVector',[0 1 0], ...
'CameraUpVectorMode','manual', ...
'Color',[1 1 1], ...
'ColorOrder',mat2, ...
'DataAspectRatioMode','manual', ...
'NextPlot','add', ...
'Position',mat3, ...
'Tag','Axes1', ...
'WarpToFill','off', ...
'WarpToFillMode','manual', ...
'XColor',[0 0 0], ...
'XLimMode','manual', ...
'YColor',[0 0 0], ...
'YLimMode','manual', ...
'ZColor',[0 0 0]);
h2 = text('Parent',h1, ...
'Color',[0 0 0], ...
'HandleVisibility','off', ...
'HorizontalAlignment','center', ...
'Position',[0.4988764044943821 -0.05393258426966296 9.160254037844386], ...
'Tag','Axes1Text4', ...
'VerticalAlignment','cap');
set(get(h2,'Parent'),'XLabel',h2);
h2 = text('Parent',h1, ...
'Color',[0 0 0], ...
'HandleVisibility','off', ...
'HorizontalAlignment','center', ...
'Position',[-0.06516853932584271 0.4966292134831462 9.160254037844386], ...
'Rotation',90, ...
'Tag','Axes1Text3', ...
'VerticalAlignment','baseline');
set(get(h2,'Parent'),'YLabel',h2);
h2 = text('Parent',h1, ...
'Color',[0 0 0], ...
'HandleVisibility','off', ...
'HorizontalAlignment','right', ...
'Position',[-0.1662921348314607 1.107865168539326 9.160254037844386], ...
'Tag','Axes1Text2', ...
'Visible','off');
set(get(h2,'Parent'),'ZLabel',h2);
h2 = text('Parent',h1, ...
'Color',[0 0 0], ...
'HandleVisibility','off', ...
'HorizontalAlignment','center', ...
'Position',[0.4988764044943821 1.015730337078652 9.160254037844386], ...
'Tag','Axes1Text1', ...
'VerticalAlignment','bottom');
set(get(h2,'Parent'),'Title',h2);
h1 = uicontrol('Parent',h0, ...
'Units','characters', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'ListboxTop',0, ...
'Position',[1.4 5.384615384615384 33.33333333333334 1.538461538461538], ...
'String','Start of a new loop', ...
'Style','radiobutton', ...
'Tag','Radiobutton1', ...
'Value',1);
h1 = uicontrol('Parent',h0, ...
'Units','characters', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'Enable','off', ...
'ListboxTop',0, ...
'Position',[1.4 3.923076923076923 33.2 1.538461538461538], ...
'String','Start of a topological edge', ...
'Style','radiobutton', ...
'Tag','Radiobutton2', ...
'Value',0);
h1 = uicontrol('Parent',h0, ...
'Units','characters', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'Enable','off', ...
'ListboxTop',0, ...
'Position',[1.4 2.307692307692308 33.33333333333334 1.538461538461538], ...
'String','Start of a Bezier curve', ...
'Style','radiobutton', ...
'Tag','Radiobutton3', ...
'Value', 0);
h1 = uicontrol('Parent',h0, ...
'Units','characters', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'Enable','off', ...
'ListboxTop',0, ...
'Position',[1.4 0.7692307692307692 33.33333333333334 1.538461538461538], ...
'String','Internal Bezier control point', ...
'Style','radiobutton', ...
'Tag','Radiobutton4', ...
'Value', 0);
h1 = uicontrol('Parent',h0, ...
'Units','characters', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'ListboxTop',0, ...
'Position',[1.6 6.923076923076923 33.33333333333334 1.846153846153846], ...
'String','Next point clicked is...', ...
'Style','text', ...
'Tag','StaticText1');
h1 = uicontrol('Parent',h0, ...
'Units','characters', ...
'Enable','off', ...
'FontSize',12, ...
'ListboxTop',0, ...
'Position',[73.59999999999999 5.692307692307693 15.2 1.538461538461538], ...
'String','Close loop', ...
'Tag','Pushbutton1');
h1 = uicontrol('Parent',h0, ...
'Units','characters', ...
'Enable','off', ...
'FontSize',10, ...
'ListboxTop',0, ...
'Position',mat4, ...
'String','Done', ...
'Tag','Pushbutton2');
h1 = uicontrol('Parent',h0, ...
'Units','characters', ...
'FontSize',10, ...
'ListboxTop',0, ...
'Position',[102 5.692307692307693 12 1.538461538461538], ...
'String','Cancel', ...
'Tag','Pushbutton3');
h1 = uicontrol('Parent',h0, ...
'Units','characters', ...
'callback', 'set(findobj(gcf,''tag'',''StaticText2''), ''string'', sprintf(''Number of Bezier subdivisions displayed = %d'', floor(get(get(gcf,''CurrentObject''), ''Value''))))', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'ListboxTop',0, ...
'min', 1, ...
'max', 40, ...
'Position',[49 1.307692307692308 39.6 1.538461538461538], ...
'Style','slider', ...
'Tag','Slider1', ...
'Value', 10);
h1 = uicontrol('Parent',h0, ...
'Units','characters', ...
'ListboxTop',0, ...
'Position',[50.4 3.153846153846154 45 1.538461538461538], ...
'String','Number of Bezier subdivisions displayed = 4', ...
'Style','text', ...
'Tag','StaticText2');
if nargout > 0, fig = h0; end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -