- Timestamp:
- Jan 23, 2011, 6:55:29 PM (14 years ago)
- Location:
- trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/civ.m
r180 r182 4639 4639 hfig=figure; 4640 4640 set(hfig,'name','civ_status') 4641 hlist=uicontrol('Style','listbox','Units','normalized', 'Position',[0.05 0.0 5 0.9 0.75], 'Callback', @open_view_field,'tag','list');4641 hlist=uicontrol('Style','listbox','Units','normalized', 'Position',[0.05 0.09 0.9 0.71], 'Callback', @open_view_field,'tag','list'); 4642 4642 uicontrol('Style','listbox','Units','normalized', 'Position', [0.05 0.87 0.9 0.1],'tag','msgbox'); 4643 4643 uicontrol('Style','frame','Units','normalized', 'Position', [0.05 0.81 0.9 0.05]); 4644 uicontrol('Style','pushbutton','Units','normalized', 'Position', [0.7 0.01 0.2 0.07],'String','OK','FontWeight','bold','FontUnits','normalized','FontSize',0.9,'Callback',@close_GUI); 4644 4645 BarPosition=[0.05 0.81 0.01 0.05]; 4645 4646 hwaitbar=uicontrol('Style','frame','Units','normalized', 'Position',BarPosition ,'BackgroundColor',[1 0 0],'tag','waitbar'); … … 4736 4737 end 4737 4738 4738 4739 %------------------------------------------------------------------- 4740 % call 'view_field.fig' to display the selected field 4741 function close_GUI(hObject, eventdata) 4742 %------------------------------------------------------------------- 4743 delete(gcbf) -
trunk/src/read_field.m
r181 r182 120 120 ParamOut.FieldName='image'; 121 121 ParamOut.FieldList={'image'}; 122 Npz=1;%default 122 123 switch FileType 123 124 case 'movie' … … 151 152 FieldName='image'; 152 153 end 153 Npz=1;%default154 154 npxy=size(A); 155 ParamOut.Npx=npxy(2);% display image size on the interface156 ParamOut.Npy=npxy(1);157 155 Rangx=[0.5 npxy(2)-0.5]; % coordinates of the first and last pixel centers 158 156 Rangy=[npxy(1)-0.5 0.5]; % … … 165 163 Field.AY=[npxy(1)-0.5 0.5]; 166 164 Field.AX=[0.5 npxy(2)-0.5]; % coordinates of the first and last pixel centers 165 ParamOut.Npx=npxy(2);% display image size on the interface 166 ParamOut.Npy=npxy(1); 167 167 else 168 168 Field.NbDim=3; … … 172 172 Field.AY=[npxy(2)-0.5 0.5]; 173 173 Field.AX=[0.5 npxy(3)-0.5]; % coordinates of the first and last pixel centers 174 ParamOut.Npx=npxy(3);% display image size on the interface 175 ParamOut.Npy=npxy(2); 174 176 end 175 177 else … … 177 179 Field.AY=[npxy(1)-0.5 0.5]; 178 180 Field.AX=[0.5 npxy(2)-0.5]; % coordinates of the first and last pixel centers 181 ParamOut.Npx=npxy(2);% display image size on the interface 182 ParamOut.Npy=npxy(1); 179 183 end 180 184 Field.A=A; -
trunk/src/set_object.m
r180 r182 744 744 projview='view_field';%default 745 745 if strcmp(ListObject{IndexObj_1},ObjectName)% we are editing the object whose projection is viewed in the uvmat frame 746 % ObjectData.HandlesDisplay=hhuvmat.axes3;747 % Object_set{iobj}.DisplayHandle_view_field748 746 IndexObj=IndexObj_1; 749 747 projview='uvmat'; … … 751 749 elseif ~isempty(IndexObj_2) && IndexObj_2<=numel(ListObject)&& strcmp(ListObject{IndexObj_2},ObjectName)% we are editing the object whose projection is viewed in view_field 752 750 IndexObj=IndexObj_2; 753 % projview='view_field';754 751 else %new object 755 752 testnew=1; … … 759 756 PlotHandles=guidata(hview_field); 760 757 plotaxes=PlotHandles.axes3;%handle of axes3 in view_field 761 % ObjectData.HandlesDisplay=PlotHandles.axes3;%handle of axes3 in view_field762 758 end 763 759 end … … 803 799 ObjectData.DisplayHandle_uvmat=hhuvmat.axes3; 804 800 ObjectData.DisplayHandle_view_field=[]; 805 elseif isfield(UvData.Object{IndexObj},'DisplayHandle_uvmat')% save the previous object graph handles 806 ObjectData.DisplayHandle_uvmat=UvData.Object{IndexObj}.DisplayHandle_uvmat; 807 ObjectData.DisplayHandle_view_field=UvData.Object{IndexObj}.DisplayHandle_view_field; 808 else 809 ObjectData.DisplayHandle_uvmat=hhuvmat.axes3; 810 ObjectData.DisplayHandle_view_field=[]; 801 else 802 if isfield(UvData.Object{IndexObj},'DisplayHandle_uvmat')% save the previous object graph handles 803 ObjectData.DisplayHandle_uvmat=UvData.Object{IndexObj}.DisplayHandle_uvmat; 804 else 805 ObjectData.DisplayHandle_uvmat=hhuvmat.axes3;%there is no object handle, than the axes handles is used as input 806 end 807 if isfield(UvData.Object{IndexObj},'DisplayHandle_view_field')% save the previous object graph handles 808 ObjectData.DisplayHandle_view_field=UvData.Object{IndexObj}.DisplayHandle_view_field; 809 else 810 ObjectData.DisplayHandle_view_field=[]; 811 end 811 812 end 812 813 UvData.Object{IndexObj}=ObjectData;%update the current object properties
Note: See TracChangeset
for help on using the changeset viewer.