Changeset 735 for trunk/src/uvmat.m
- Timestamp:
- Apr 9, 2014, 9:37:44 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/uvmat.m
r729 r735 338 338 end 339 339 % desable set_object editing action if detected 340 hh=findobj(allchild(0),' tag','set_object');340 hh=findobj(allchild(0),'name','set_object'); 341 341 if ~isempty(hh) 342 342 hhh=findobj(hh,'tag','PLOT'); … … 1376 1376 if isempty(MaskFile) 1377 1377 Mask.File=''; 1378 elseif ischar(MaskFile) 1379 Mask.File=MaskFile; 1378 1380 else 1379 1381 Mask.File=MaskFile{1}; … … 2534 2536 UvData.ProjObject{1}.enable_plot=1; 2535 2537 set_object(UvData.ProjObject{1},handles,ZBounds); 2538 set(hset_object,'name','set_object');% rename if set_object already used with series 2536 2539 set(handles.ListObject,'Value',1); 2537 2540 set(handles.ListObject,'String',{'1-PLANE'}); … … 3580 3583 [hset_object,UvData.sethandles]=set_object(data,PlotHandles);% call the set_object interface with action on haxes, 3581 3584 % associate the set_object interface handle to the plotting axes 3582 %set(hset_object,'Position',get(handles.uvmat,'Position')+UvData.OpenParam.PosSetObject)3585 set(hset_object,'name','set_object') 3583 3586 UvData.MouseAction='create_object'; 3584 3587 else … … 4245 4248 end 4246 4249 ObjectData.Name=list_str{get(handles.ListObject_1,'Value')}; 4247 set_object(ObjectData,[],ZBounds); 4250 hset_object=set_object(ObjectData,[],ZBounds); 4251 set(hset_object,'name','set_object') 4248 4252 set(handles.CheckViewObject,'Value',1)% show that the selected object in ListObject_1 is currently visualised 4249 4253 end … … 4272 4276 %% show object features if view_object isselected 4273 4277 if get(handles.CheckViewObject,'value') 4274 set_object(ObjectData,[],ZBounds); 4275 end 4276 4277 %% The object is displayed in set_object if this GUI is already opened 4278 % 4279 % hset_object=findobj(allchild(0),'tag','set_object'); 4280 % if ~isempty(hset_object) 4281 % 4282 % ObjectData.Name=list_str{IndexObj}; 4283 % set_object(ObjectData,[],ZBounds); 4284 % set(handles.CheckViewField,'Value',1)% show that the selected object in ListObject is currently visualised 4285 % end 4278 hset_object=set_object(ObjectData,[],ZBounds); 4279 set(hset_object,'name','set_object') 4280 end 4286 4281 4287 4282 %% desactivate the edit object mode for security 4288 4283 set(handles.CheckEditObject,'Value',0) 4289 4290 % set(handles.CheckEditObject,'BackgroundColor',[0.7,0.7,0.7])4291 4284 4292 4285 %% update the plot on view_field if view_field is already openened … … 4423 4416 end 4424 4417 hset_object=set_object(data,[],ZBounds); 4418 set(hset_object,'name','set_object') 4425 4419 hhset_object=guidata(hset_object); 4426 4420 if get(handles.CheckEditObject,'Value')% edit mode
Note: See TracChangeset
for help on using the changeset viewer.