Changeset 183 for trunk/src/set_object.m
- Timestamp:
- Jan 26, 2011, 5:03:40 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/set_object.m
r182 r183 84 84 end 85 85 set(hObject,'KeyPressFcn',{'keyboard_callback',handles})%set keyboard action function (allow action on uvmat when set_object is in front) 86 %set(handles.MenuCoord,'ListboxTop',1)87 % if ~exist('PlotHandles','var')88 % PlotHandles=[];89 % end90 86 enable_plot=0;%default: does not allow plot of object and projection 91 % SetData.PlotHandles=PlotHandles;92 % set(hObject,'UserData',SetData)93 87 94 88 % fill the interface as set in the input data: … … 99 93 if isfield(data,'Name') 100 94 set(handles.TITLE,'String',data.Name) 101 % set(hObject,'name',data.Name)102 95 end 103 96 if ~isfield(data,'NbDim')||~isequal(data.NbDim,3)%2D case … … 125 118 ObjectStyle_Callback(hObject, eventdata, handles) 126 119 if isfield(data,'ProjMenu') 127 set(handles.ProjMode,'String',data.ProjMenu); 120 set(handles.ProjMode,'String',data.ProjMenu);%overset the standard menu 128 121 end 129 122 if isfield(data,'ProjMode') … … 244 237 set(handles.CoordUnit,'String',data.CoordUnit) 245 238 end 246 % if isfield(data,'CoordType')&& isequal(data.CoordType,'px')247 % % if isequal(data.CoordType,'phys')248 % % set(handles.MenuCoord,'Value',1)249 % % elseif isequal(data.CoordType,'px')250 % set(handles.MenuCoord,'Value',2)251 % % end252 % end253 239 end 254 240 if enable_plot … … 267 253 end 268 254 255 %------------------------------------------------------------------------ 269 256 % --- Outputs from this function are returned to the command line. 270 257 function varargout = set_object_OutputFcn(hObject, eventdata, handles) 271 % varargout cell array for returning output args (see VARARGOUT); 272 % hObject handle to figure 273 % eventdata reserved - to be defined in a future version of MATLAB 274 % handles structure with handles and user data (see GUIDATA) 275 258 %------------------------------------------------------------------------ 276 259 % Get default command line output from handles structure 277 260 varargout{1} = handles.output; … … 281 264 % --- Executes on selection change in ObjectStyle. 282 265 function ObjectStyle_Callback(hObject, eventdata, handles) 266 %------------------------------------------------------------------------ 283 267 style_prev=get(handles.ObjectStyle,'UserData');%previous object style 284 268 str=get(handles.ObjectStyle,'String'); … … 286 270 style=str{val}; 287 271 % make correspondance between different object styles 288 % if ~isequal(str{val},style_prev)289 272 Xcolumn=get(handles.XObject,'String'); 290 273 Ycolumn=get(handles.YObject,'String'); … … 333 316 set(handles.ZObject,'String',z_new) 334 317 end 335 % end 318 336 319 switch style 337 320 case {'points','line','polyline','plane'} … … 542 525 s.ProjMode='none'; 543 526 end 544 %Display title545 % title=set_title(s.Style,s.ProjMode);%update the title546 % if ~isempty(huvmat)547 % hhuvmat=guidata(huvmat);548 % end549 % menu=get(handles.TITLE,'String');550 % for iline=1:length(menu)551 % if isequal(menu{iline},title)552 % set(handles.TITLE,'Value',iline)553 % break554 % end555 % end556 %TITLE_Callback(hObject, eventdata, handles)557 527 teststyle=0; 558 528 … … 585 555 586 556 ProjMode_Callback(hObject, eventdata, handles);%visualize the appropriate edit boxes 587 % if isfield(s,'CoordType')588 % if isequal(s.CoordType,'phys')589 % set(handles.MenuCoord,'Value',1)590 % elseif isequal(s.CoordType,'px')591 % set(handles.MenuCoord,'Value',2)592 % else593 % warndlg('unknown CoordType (px or phys) in set_object.m')594 % end595 % end596 557 if isfield(s,'XMax') 597 558 set(handles.XMax,'String',s.XMax)
Note: See TracChangeset
for help on using the changeset viewer.