function fig = bsplinegui() % 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 bsplinegui h0 = figure('Color',[0.8 0.8 0.8], ... 'Colormap',mat0, ... 'PointerShapeCData',mat1, ... 'Position',[160 114 711 592], ... 'Tag','Fig1'); h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'Callback','makecontrol(''start'')', ... 'ListboxTop',0, ... 'Position',mat2, ... 'String','Make Polygon', ... 'Tag','PushMake'); h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'Callback','makecontrol(''hide'')', ... 'ListboxTop',0, ... 'Position',mat3, ... 'String','Hide Polygon', ... 'Tag','PushHide'); h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'Callback','convexprop(''strong'')', ... 'ListboxTop',0, ... 'Position',[327.1034482758622 191.1724137931035 78.82758620689657 17.37931034482759], ... 'String','Strong Convex Hull', ... 'Tag','Strongbutton'); h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'Callback','convexprop(''weak'')', ... 'ListboxTop',0, ... 'Position',[326.4827586206897 160.1379310344828 78.82758620689657 17.37931034482759], ... 'String','Weak Convex Hull', ... 'Tag','Weakbutton'); h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'Callback','drawbspline(''erase'')', ... 'ListboxTop',0, ... 'Position',[325.8620689655173 129.7241379310345 78.82758620689657 17.37931034482759], ... 'String','Erase curve', ... 'Tag','Curvebutton'); h1 = axes('Parent',h0, ... 'CameraUpVector',[0 1 0], ... 'CameraUpVectorMode','manual', ... 'Color',[1 1 1], ... 'ColorOrder',mat4, ... 'DataAspectRatioMode','manual', ... 'NextPlot','add', ... 'PlotBoxAspectRatio',[2.5 2.5 1], ... 'PlotBoxAspectRatioMode','manual', ... 'Position',[0.02976190476190476 0.09145129224652086 0.6428571428571428 0.8270377733598409], ... 'Tag','CurveAxes', ... 'WarpToFill','off', ... 'WarpToFillMode','manual', ... 'XColor',[0 0 0], ... 'XLim',[0 5], ... 'XLimMode','manual', ... 'YColor',[0 0 0], ... 'YLim',[0 5], ... 'YLimMode','manual', ... 'ZColor',[0 0 0]); h2 = text('Parent',h1, ... 'Color',[0 0 0], ... 'HandleVisibility','off', ... 'HorizontalAlignment','center', ... 'Position',[2.489035087719298 -0.307017543859649 36.74234614174767], ... 'Tag','Axes1Text4', ... 'VerticalAlignment','cap'); set(get(h2,'Parent'),'XLabel',h2); h2 = text('Parent',h1, ... 'Color',[0 0 0], ... 'HandleVisibility','off', ... 'HorizontalAlignment','center', ... 'Position',[-0.3837719298245621 2.489035087719298 36.74234614174767], ... '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.2412280701754392 5.690789473684212 36.74234614174767], ... 'Tag','Axes1Text2', ... 'Visible','off'); set(get(h2,'Parent'),'ZLabel',h2); h2 = text('Parent',h1, ... 'Color',[0 0 0], ... 'HandleVisibility','off', ... 'HorizontalAlignment','center', ... 'Position',[2.489035087719298 5.087719298245615 36.74234614174767], ... 'Tag','Axes1Text1', ... 'VerticalAlignment','bottom'); set(get(h2,'Parent'),'Title',h2); h2 = line('Parent',h1, ... 'Color',[1 0 0], ... 'EraseMode','xor', ... 'LineStyle','--', ... 'Marker','o', ... 'Tag','Bpolygon', ... 'XData',mat5, ... 'YData',mat6); h2 = line('Parent',h1, ... 'ButtonDownFcn','drawbspline(''start'')', ... 'Color',[0 0 1], ... 'EraseMode','xor', ... 'Tag','Bcurve', ... 'UserData',mat7, ... 'XData',mat8, ... 'YData',mat9); if nargout > 0, fig = h0; end