Changeset 183 for trunk/src/set_object.m


Ignore:
Timestamp:
Jan 26, 2011, 5:03:40 PM (13 years ago)
Author:
sommeria
Message:

small bug repair: reading movies in read_fields, plotting rectangles and ellipes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/set_object.m

    r182 r183  
    8484end
    8585set(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 % end
    9086enable_plot=0;%default: does not allow plot of object and projection
    91 % SetData.PlotHandles=PlotHandles;
    92 % set(hObject,'UserData',SetData)
    9387
    9488% fill the interface as set in the input data:
     
    9993    if isfield(data,'Name')
    10094        set(handles.TITLE,'String',data.Name)
    101 %         set(hObject,'name',data.Name)
    10295    end
    10396    if ~isfield(data,'NbDim')||~isequal(data.NbDim,3)%2D case
     
    125118    ObjectStyle_Callback(hObject, eventdata, handles)
    126119    if isfield(data,'ProjMenu')
    127         set(handles.ProjMode,'String',data.ProjMenu);
     120        set(handles.ProjMode,'String',data.ProjMenu);%overset the standard menu
    128121    end
    129122    if isfield(data,'ProjMode')
     
    244237        set(handles.CoordUnit,'String',data.CoordUnit)
    245238    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 % %         end
    252 %     end
    253239end
    254240if enable_plot
     
    267253end
    268254
     255%------------------------------------------------------------------------
    269256% --- Outputs from this function are returned to the command line.
    270257function 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%------------------------------------------------------------------------
    276259% Get default command line output from handles structure
    277260varargout{1} = handles.output;
     
    281264% --- Executes on selection change in ObjectStyle.
    282265function ObjectStyle_Callback(hObject, eventdata, handles)
     266%------------------------------------------------------------------------
    283267style_prev=get(handles.ObjectStyle,'UserData');%previous object style
    284268str=get(handles.ObjectStyle,'String');
     
    286270style=str{val};
    287271% make correspondance between different object styles
    288 % if ~isequal(str{val},style_prev)
    289272Xcolumn=get(handles.XObject,'String');
    290273Ycolumn=get(handles.YObject,'String');
     
    333316     set(handles.ZObject,'String',z_new)
    334317end
    335 % end
     318
    336319switch style
    337320    case {'points','line','polyline','plane'}
     
    542525     s.ProjMode='none';
    543526 end
    544 %Display title
    545 % title=set_title(s.Style,s.ProjMode);%update the title
    546 % if ~isempty(huvmat)
    547 %     hhuvmat=guidata(huvmat);
    548 % end
    549 % menu=get(handles.TITLE,'String');
    550 % for iline=1:length(menu)
    551 %      if isequal(menu{iline},title)
    552 %          set(handles.TITLE,'Value',iline)
    553 %          break
    554 %      end
    555 % end
    556 %TITLE_Callback(hObject, eventdata, handles)
    557527teststyle=0;
    558528
     
    585555
    586556ProjMode_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 %     else
    593 %         warndlg('unknown CoordType (px or phys) in set_object.m')
    594 %     end
    595 % end
    596557if isfield(s,'XMax')
    597558    set(handles.XMax,'String',s.XMax)
Note: See TracChangeset for help on using the changeset viewer.