Changeset 71 for trunk/src/view_field.m


Ignore:
Timestamp:
Mar 29, 2010, 6:34:55 PM (14 years ago)
Author:
sommeria
Message:

civ3D updated: introduction of image size
imadoc2struct: reding of image size from the xml file
set_object, view_field and related functions: improvement of projection object editing
mouse: possibility of adjusting the calibrations points with the mouse

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/view_field.m

    r67 r71  
    23442344global CurData
    23452345huvmat=findobj(allchild(0),'Name','uvmat');
    2346 CurData=get(huvmat,'UserData');
     2346UvData=get(huvmat,'UserData');
     2347CurData=UvData.ProjField_2;
    23472348evalin('base','global CurData')%make CurData global in the workspace
    23482349display(['UserData of view_field :'])
     
    24712472
    24722473
    2473 % --- Executes during object creation, after setting all properties.
    2474 function colcode1_CreateFcn(hObject, eventdata, handles)
    2475 % hObject    handle to colcode1 (see GCBO)
     2474
     2475% --- Executes on button press in checkbox42.
     2476function checkbox42_Callback(hObject, eventdata, handles)
     2477% hObject    handle to checkbox42 (see GCBO)
    24762478% eventdata  reserved - to be defined in a future version of MATLAB
    2477 % handles    empty - handles not created until after all CreateFcns called
    2478 
    2479 % Hint: edit controls usually have a white background on Windows.
    2480 %       See ISPC and COMPUTER.
    2481 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
    2482     set(hObject,'BackgroundColor','white');
    2483 end
    2484 
    2485 
    2486 % --- Executes during object creation, after setting all properties.
    2487 function slider2_CreateFcn(hObject, eventdata, handles)
    2488 % hObject    handle to slider2 (see GCBO)
     2479% handles    structure with handles and user data (see GUIDATA)
     2480
     2481% Hint: get(hObject,'Value') returns toggle state of checkbox42
     2482
     2483
     2484% --- Executes on button press in checkbox43.
     2485function checkbox43_Callback(hObject, eventdata, handles)
     2486% hObject    handle to checkbox43 (see GCBO)
    24892487% eventdata  reserved - to be defined in a future version of MATLAB
    2490 % handles    empty - handles not created until after all CreateFcns called
    2491 
    2492 % Hint: slider controls usually have a light gray background.
    2493 if isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
    2494     set(hObject,'BackgroundColor',[.9 .9 .9]);
    2495 end
    2496 
    2497 
    2498 % --- Executes during object creation, after setting all properties.
    2499 function slider1_CreateFcn(hObject, eventdata, handles)
    2500 % hObject    handle to slider1 (see GCBO)
     2488% handles    structure with handles and user data (see GUIDATA)
     2489
     2490% Hint: get(hObject,'Value') returns toggle state of checkbox43
     2491
     2492
     2493% --- Executes on button press in checkbox44.
     2494function checkbox44_Callback(hObject, eventdata, handles)
     2495% hObject    handle to checkbox44 (see GCBO)
    25012496% eventdata  reserved - to be defined in a future version of MATLAB
    2502 % handles    empty - handles not created until after all CreateFcns called
    2503 
    2504 % Hint: slider controls usually have a light gray background.
    2505 if isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
    2506     set(hObject,'BackgroundColor',[.9 .9 .9]);
    2507 end
    2508 
    2509 
    2510 % --- Executes during object creation, after setting all properties.
    2511 function colcode2_CreateFcn(hObject, eventdata, handles)
    2512 % hObject    handle to colcode2 (see GCBO)
     2497% handles    structure with handles and user data (see GUIDATA)
     2498
     2499% Hint: get(hObject,'Value') returns toggle state of checkbox44
     2500
     2501
     2502% --- Executes on selection change in popupmenu18.
     2503function popupmenu18_Callback(hObject, eventdata, handles)
     2504
     2505
     2506function edit91_Callback(hObject, eventdata, handles)
     2507% hObject    handle to edit91 (see GCBO)
    25132508% eventdata  reserved - to be defined in a future version of MATLAB
    2514 % handles    empty - handles not created until after all CreateFcns called
    2515 
    2516 % Hint: edit controls usually have a white background on Windows.
    2517 %       See ISPC and COMPUTER.
    2518 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
    2519     set(hObject,'BackgroundColor','white');
    2520 end
    2521 
    2522 
     2509% handles    structure with handles and user data (see GUIDATA)
     2510
     2511% Hints: get(hObject,'String') returns contents of edit91 as text
     2512%        str2double(get(hObject,'String')) returns contents of edit91 as a double
     2513
     2514
     2515% --- Executes on button press in checkbox45.
     2516function checkbox45_Callback(hObject, eventdata, handles)
     2517% hObject    handle to checkbox45 (see GCBO)
     2518% eventdata  reserved - to be defined in a future version of MATLAB
     2519% handles    structure with handles and user data (see GUIDATA)
     2520
     2521% Hint: get(hObject,'Value') returns toggle state of checkbox45
     2522
     2523
     2524% --- Executes on selection change in popupmenu19.
     2525function popupmenu19_Callback(hObject, eventdata, handles)
     2526% hObject    handle to popupmenu19 (see GCBO)
     2527% eventdata  reserved - to be defined in a future version of MATLAB
     2528% handles    structure with handles and user data (see GUIDATA)
     2529
     2530% Hints: contents = get(hObject,'String') returns popupmenu19 contents as cell array
     2531%        contents{get(hObject,'Value')} returns selected item from popupmenu19
     2532
     2533
     2534
     2535
Note: See TracChangeset for help on using the changeset viewer.