- Timestamp:
- May 17, 2012, 10:55:41 AM (13 years ago)
- Location:
- trunk/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/mouse_down.m
r424 r425 324 324 end 325 325 UvData.Object{IndexObj}=ObjectData; 326 ListObject=get(hhuvmat.ListObject _1,'String');326 ListObject=get(hhuvmat.ListObject,'String'); 327 327 UvData.Object{IndexObj}.DisplayHandle_uvmat=AxeData.CurrentObject; 328 328 ObjectNameNew=ObjectData.Name; … … 353 353 %set(hhuvmat.ListObject,'Value',[IndexObj_old(1) IndexObj]) 354 354 set(hhuvmat.ListObject,'Value',IndexObj) 355 set(hhuvmat.ViewObject,'Value',1) 355 356 % if isempty(object_name) 356 357 % list_str{IndexObj}=[num2str(IndexObj) '-' ObjectData.Type]; -
trunk/src/mouse_up.m
r413 r425 173 173 174 174 end 175 set(hhuvmat.ViewField,'Value',1);% 175 176 set(hhuvmat.edit_object,'BackgroundColor',[1 1 0]);% paint the edit text in yellow 176 177 set(hhuvmat.edit_object,'Value',1);% -
trunk/src/update_obj.m
r379 r425 25 25 %plot uvmat 26 26 for iobj=1:length(Object_out) %change the view of all existing objects on the updated current object #IndexObj_1 27 27 hobject=[]; 28 28 if isfield(Object_out{iobj},'DisplayHandle_uvmat') && ~isempty(Object_out{iobj}.DisplayHandle_uvmat) && ishandle(Object_out{iobj}.DisplayHandle_uvmat) 29 29 hobject=Object_out{iobj}.DisplayHandle_uvmat;%graphic handle of object #iobj in the uvmat plot 30 30 end 31 Object_out{iobj}.DisplayHandle_uvmat=plot_object(Object_out{iobj},Object_out{IndexObj_1},hobject,'m');%update the object representation of Object_out{iobj} on Object_out{IndexObj_1} 31 if ~isequal(iobj,IndexObj_1)% object not visible when projected on itself 32 Object_out{iobj}.DisplayHandle_uvmat=plot_object(Object_out{iobj},Object_out{IndexObj_1},hobject,'m');%update the object representation of Object_out{iobj} on Object_out{IndexObj_1} 33 if isempty(Object_out{iobj}.DisplayHandle_uvmat)&&~isempty(hobject) 34 delete(hobject) 35 end 36 end 32 37 end 33 38 % plot view_field -
trunk/src/uvmat.m
r424 r425 3942 3942 function ListObject_1_Callback(hObject, eventdata, handles) 3943 3943 list_str=get(handles.ListObject_1,'String'); 3944 IndexObj=get(handles.ListObject_1,'Value');3945 3944 UvData=get(handles.uvmat,'UserData'); 3946 3945 ObjectData=UvData.Object{get(handles.ListObject_1,'Value')}; … … 3949 3948 ProjData= proj_field(UvData.Field,ObjectData);%project the current interface field on UvData.Object{IndexObj(1)} 3950 3949 plot_field(ProjData,handles.axes3,read_GUI(handles.uvmat));%read plotting parameters on the uvmat interfacPlotHandles); 3950 Object_out=update_obj(UvData,get(handles.ListObject_1,'Value'),[]) 3951 3951 3952 3952 %% display the object parameters if the GUI set_object is already opened 3953 hset_object=findobj(allchild(0),'tag','set_object'); 3954 if ~isempty(hset_object) 3953 % hset_object=findobj(allchild(0),'tag','set_object'); 3954 %if ~isempty(hset_object) 3955 if ~get(handles.ViewObject,'Value') 3955 3956 % delete(hset_object)% delete to refesh the content 3956 3957 ZBounds=0; % default … … 3959 3960 ZBounds(2)=UvData.Field.ZMax;%maximum for the Z slider 3960 3961 end 3961 ObjectData.Name=list_str{ IndexObj};3962 ObjectData.Name=list_str{get(handles.ListObject_1,'Value')}; 3962 3963 set_object(ObjectData,[],ZBounds); 3963 3964 set(handles.ViewObject,'Value',1)% show that the selected object in ListObject_1 is currently visualised … … 4473 4474 delete(handles.UVMAT_title)%delete the initial display of uvmat if no field has been entered 4474 4475 end 4475 set(handles.ListObject,'Visible','on') 4476 set(handles.ViewField,'Visible','on') 4477 set(handles.ViewField,'Value',1) % indicate that the object selected in ListObject (projection oin view_field) is visualised 4478 set(handles.ViewObject,'Value',0)% then the object selected in ListObject_1 is not visualised 4476 4477 %set(handles.ViewField,'Value',1) % indicate that the object selected in ListObject (projection oin view_field) is visualised 4478 %set(handles.ViewObject,'Value',1)% then the object selected in ListObject_1 is not visualised 4479 4479 hset_object=set_object(data,handles);% call the set_object interface 4480 4480 hhset_object=guidata(hset_object); -
trunk/src/view_field.m
r413 r425 113 113 if ~isempty(huvmat) 114 114 hhuvmat=guidata(huvmat); 115 set(hhuvmat. edit_object,'Value',0)116 set(hhuvmat.edit_object,'BackgroundColor',[0.7 0.7 0.7])%put unactivated buttons to gree115 set(hhuvmat.ViewField,'Value',0) 116 %set(hhuvmat.edit_object,'BackgroundColor',[0.7 0.7 0.7])%put unactivated buttons to gree 117 117 % deselect the object in ListObject when view_field is closed 118 118 if isempty(findobj(allchild(0),'Tag','set_object'))
Note: See TracChangeset
for help on using the changeset viewer.