Changeset 61 for trunk/src/set_object.m


Ignore:
Timestamp:
Mar 24, 2010, 12:51:51 AM (11 years ago)
Author:
sommeria
Message:

gestion of projection objects improved. Implementation of view_field.fig
introduction of a circle to mark vectors with the mouse
various cleaning and debugging

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/set_object.m

    r55 r61  
    709709if ~isempty(huvmat)
    710710    hhuvmat=guidata(huvmat);
    711     set(hhuvmat.create,'Value',0)
    712     set(hhuvmat.create,'BackgroundColor',[0 1 0])%put unactivated buttons to green
     711%     set(hhuvmat.create,'Value',0)
     712%     set(hhuvmat.create,'BackgroundColor',[0 1 0])%put unactivated buttons to green
    713713%     set(hhuvmat.LINE,'Value',0)
    714714%     set(hhuvmat.LINE,'BackgroundColor',[0 1 0])%put unactivated buttons to green
     
    733733function PLOT_Callback(hObject, eventdata, handles)
    734734
    735 hsetobject=get(handles.PLOT,'parent');
    736 SetData=get(hsetobject,'UserData');%get the hidden interface data
     735SetData=get(handles.set_object,'UserData');%get the hidden interface data
    737736huvmat=findobj('Name','uvmat');%find the current uvmat interface handle
    738 hlist_object=findobj(huvmat,'Tag','list_object');%handles of the object list in the GUI uvmat
     737hlist_object=findobj(huvmat,'Tag','list_object_1');%handles of the object list in the GUI uvmat
    739738IndexObj=get(hlist_object,'Value');%position in the objet list
    740739UvData=get(huvmat,'UserData');%Data associated to the GUI uvmat
     
    767766UvData.Object{IndexObj}=update_obj(UvData,IndexObj,ObjectData,SetData.PlotHandles);
    768767
     768
    769769set(huvmat,'UserData',UvData)%update the data in the uvmat interface
    770770list_str=get(hlist_object,'String');
     
    772772% list_str{IndexObj}=[num2str(IndexObj) '-' TITLE];
    773773list_str{IndexObj}=[num2str(IndexObj) '-' ObjectData.Style];
    774 if isequal(length(list_str),IndexObj)
    775     list_str{IndexObj+1}='more...';
    776 end
    777 set(hlist_object,'String',list_str)
    778 set(hlist_object,'Value',IndexObj)
     774% if isequal(length(list_str),IndexObj)
     775%     list_str{IndexObj+1}='more...';
     776% end
     777set(hlist_object_1,'String',list_str)
     778set(hlist_object_1,'Value',IndexObj)
    779779
    780780%update create buttons on the GUI uvmat: set to object edit mode after object plotting
     
    782782%desactivate all create buttons in mode edit
    783783% if isequal(get(hhuvmat.edit,'Value'),0)
    784     set(hhuvmat.create,'Value',0)
    785     set(hhuvmat.create,'BackgroundColor',[0 1 0])%put unactivated buttons to green
     784%     set(hhuvmat.create,'Value',0)
     785%     set(hhuvmat.create,'BackgroundColor',[0 1 0])%put unactivated buttons to green
    786786%     set(hhuvmat.LINE,'Value',0)
    787787%     set(hhuvmat.LINE,'BackgroundColor',[0 1 0])%put unactivated buttons to green
Note: See TracChangeset for help on using the changeset viewer.