Changeset 491 for trunk/src/set_object.m
- Timestamp:
- Jul 11, 2012, 2:56:40 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/set_object.m
r477 r491 468 468 obj_handle=UvData.Object{IndexObj}.DisplayHandle.uvmat; 469 469 end 470 UvData.Object{IndexObj}=ObjectData; 470 UvData.Object{IndexObj}=ObjectData;%record the current object properties in uvmat 471 471 if check_handle 472 472 UvData.Object{IndexObj}.DisplayHandle.uvmat=obj_handle; %preserve the object plot handle if valid … … 474 474 UvData.Object{IndexObj}.DisplayHandle.uvmat=hhuvmat.axes3; %axes taken as object display handle by defualt 475 475 end 476 set(hhuvmat.edit_object,'Value',1)% set the current object to edit mode 477 % %IndexObj=numel(ListObject)+1;% append an object to the list in uvmat 478 % 479 % set(hhuvmat.ListObject,'String',[ListObject;{ObjectName}]);%complement the object list 480 % set(hhuvmat.ListObject_1,'String',[ListObject;{ObjectName}]);%complement the object list 481 % set(hhuvmat.ListObject,'Value',IndexObj) 482 % set(hhuvmat.ViewObject,'Value',1)% indicate that the currently selected objected is viewed on set_object 483 % UvData.Object{IndexObj}=[];%initiate a new object (empty yet) 484 % UvData.Object{IndexObj}.DisplayHandle.uvmat=hhuvmat.axes3; %axes taken as object display handle by defualt 485 % end 476 %set(hhuvmat.edit_object,'Value',1)% set the current object to edit mode 486 477 487 478 %% plot the field projected on the object … … 497 488 end 498 489 if isequal(IndexObj_1,IndexObj) % if the projection is in uvmat 499 PlotType=plot_field(ProjData,hhuvmat.axes3,read_GUI(get(hhuvmat.axes3,'parent')));%update the current uvmat plot500 else % if the projection is in v eiw_field490 PlotType=plot_field(ProjData,hhuvmat.axes3,read_GUI(get(hhuvmat.axes3,'parent')));%update the current uvmat plot 491 else % if the projection is in view_field 501 492 hview_field=findobj(allchild(0),'tag','view_field'); 502 493 if isempty(hview_field) … … 519 510 set(hview_field,'Position',Data.GUISize) 520 511 end 521 set(hhuvmat.ViewField,'Value',1)% indicate that the field projection on the current object is plotted in view_field512 % set(hhuvmat.ViewField,'Value',1)% indicate that the field projection on the current object is plotted in view_field 522 513 end 523 514 end … … 528 519 if isequal(IndexObj_1,IndexObj) 529 520 %update the representation of the current object for projection field represented in view_field 530 % UvData.Object{iobj}.DisplayHandle.view_field=...531 % plot_object(UvData.Object{IndexObj},UvData.Object{IndexObj_1},UvData.Object{iobj}.DisplayHandle.uvmat,'m');532 % update the representation of all objects in uvmat533 521 for iobj=1:numel(UvData.Object) 534 522 UvData.Object{iobj}.DisplayHandle.uvmat=... … … 551 539 end 552 540 end 553 % UvData.Object{IndexObj}.DisplayHandle.uvmat=plot_object(ObjectData,UvData.Object{IndexObj_1},hobject,'m');%draw the object in uvmat554 % if ~isempty(hview_field)555 % if isfield(UvData.Object{IndexObj}.DisplayHandle,'view_field')556 % hobject=UvData.Object{IndexObj}.DisplayHandle.view_field;557 % end558 % if isempty(hobject)559 % hobject=haxes;560 % end561 % %draw the object in view_field562 % if ~isequal(IndexObj_1,IndexObj) % if the projection is in uvmat563 % UvData.Object{IndexObj}.DisplayHandle.view_field=plot_object(ObjectData,UvData.Object{IndexObj},hobject,'m');564 % end565 % end566 541 set(huvmat,'UserData',UvData) 567 542 568 543 %% update the GUI uvmat 569 hhuvmat=guidata(huvmat);%handles of elements in the uvmat GUI570 544 set(hhuvmat.MenuEditObject,'enable','on') 571 545 set(hhuvmat.edit_object,'Value',1) % set uvmat to object edit mode to allow further object update
Note: See TracChangeset
for help on using the changeset viewer.