Changeset 67 for trunk/src/view_field.m


Ignore:
Timestamp:
Mar 25, 2010, 6:48:48 PM (14 years ago)
Author:
sommeria
Message:

civ: RUN civ lounched out of the Matlab work space. RUN and BATCH now runned by a unique sub-function lounch.m.
FiLE PARAM.xml modified to provide different paths for Batch and Run !!!!!
RUN_FIX: minor error message modif
geometry_calib: calib point editing by the mouse
improvement of the interactions between the different GUIs. Close function...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/view_field.m

    r61 r67  
    8989set(hObject,'WindowButtonDownFcn',{'mouse_down'})%set mouse click action function
    9090set(hObject,'WindowButtonUpFcn',{'mouse_up',handles_mouse})
    91 % set(hObject,'CloseRequestFcn ',{'close_fcn'})
     91set(hObject,'CloseRequestFcn',{@closefcn})%
    9292
    9393[PlotType,PlotParamOut,haxes]= plot_field(Field,handles.axes3)%,PlotParam,KeepLim,PosColorbar)
     
    23372337write_plot_param(handles,PlotParamOut); %update the auto plot parameters
    23382338
    2339 
    2340 
    23412339%------------------------------------------------------
    23422340% --- Executes on button press in Menu/Export/field in workspace.
     
    23672365
    23682366function npx_Callback(hObject, eventdata, handles)
    2369 % hObject    handle to npx (see GCBO)
    2370 % eventdata  reserved - to be defined in a future version of MATLAB
    2371 % handles    structure with handles and user data (see GUIDATA)
    2372 
    2373 % Hints: get(hObject,'String') returns contents of npx as text
    2374 %        str2double(get(hObject,'String')) returns contents of npx as a double
    2375 
    2376 
    2377 % --- Executes during object creation, after setting all properties.
    2378 function npx_CreateFcn(hObject, eventdata, handles)
    2379 % hObject    handle to npx (see GCBO)
    2380 % eventdata  reserved - to be defined in a future version of MATLAB
    2381 % handles    empty - handles not created until after all CreateFcns called
    2382 
    2383 % Hint: edit controls usually have a white background on Windows.
    2384 %       See ISPC and COMPUTER.
    2385 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
    2386     set(hObject,'BackgroundColor','white');
    2387 end
    23882367
    23892368
    23902369
    23912370function npy_Callback(hObject, eventdata, handles)
    2392 % hObject    handle to npy (see GCBO)
    2393 % eventdata  reserved - to be defined in a future version of MATLAB
    2394 % handles    structure with handles and user data (see GUIDATA)
    2395 
    2396 % Hints: get(hObject,'String') returns contents of npy as text
    2397 %        str2double(get(hObject,'String')) returns contents of npy as a double
    2398 
    2399 
    2400 % --- Executes during object creation, after setting all properties.
    2401 function npy_CreateFcn(hObject, eventdata, handles)
    2402 % hObject    handle to npy (see GCBO)
    2403 % eventdata  reserved - to be defined in a future version of MATLAB
    2404 % handles    empty - handles not created until after all CreateFcns called
    2405 
    2406 % Hint: edit controls usually have a white background on Windows.
    2407 %       See ISPC and COMPUTER.
    2408 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
    2409     set(hObject,'BackgroundColor','white');
    2410 end
    2411 
    24122371
    24132372
    24142373function edit86_Callback(hObject, eventdata, handles)
    2415 % hObject    handle to MaxA (see GCBO)
    2416 % eventdata  reserved - to be defined in a future version of MATLAB
    2417 % handles    structure with handles and user data (see GUIDATA)
    2418 
    2419 % Hints: get(hObject,'String') returns contents of MaxA as text
    2420 %        str2double(get(hObject,'String')) returns contents of MaxA as a double
    2421 
    2422 
    2423 % --- Executes during object creation, after setting all properties.
    2424 function MaxA_CreateFcn(hObject, eventdata, handles)
    2425 % hObject    handle to MaxA (see GCBO)
    2426 % eventdata  reserved - to be defined in a future version of MATLAB
    2427 % handles    empty - handles not created until after all CreateFcns called
    2428 
    2429 % Hint: edit controls usually have a white background on Windows.
    2430 %       See ISPC and COMPUTER.
    2431 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
    2432     set(hObject,'BackgroundColor','white');
    2433 end
    2434 
    24352374
    24362375
    24372376function edit87_Callback(hObject, eventdata, handles)
    2438 % hObject    handle to MinA (see GCBO)
    2439 % eventdata  reserved - to be defined in a future version of MATLAB
    2440 % handles    structure with handles and user data (see GUIDATA)
    2441 
    2442 % Hints: get(hObject,'String') returns contents of MinA as text
    2443 %        str2double(get(hObject,'String')) returns contents of MinA as a double
    2444 
    2445 
    2446 % --- Executes during object creation, after setting all properties.
    2447 function MinA_CreateFcn(hObject, eventdata, handles)
    2448 % hObject    handle to MinA (see GCBO)
    2449 % eventdata  reserved - to be defined in a future version of MATLAB
    2450 % handles    empty - handles not created until after all CreateFcns called
    2451 
    2452 % Hint: edit controls usually have a white background on Windows.
    2453 %       See ISPC and COMPUTER.
    2454 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
    2455     set(hObject,'BackgroundColor','white');
    2456 end
    24572377
    24582378
     
    24662386
    24672387
    2468 
    24692388function edit88_Callback(hObject, eventdata, handles)
    2470 % hObject    handle to IncrA (see GCBO)
    2471 % eventdata  reserved - to be defined in a future version of MATLAB
    2472 % handles    structure with handles and user data (see GUIDATA)
    2473 
    2474 % Hints: get(hObject,'String') returns contents of IncrA as text
    2475 %        str2double(get(hObject,'String')) returns contents of IncrA as a double
    2476 
    2477 
    2478 % --- Executes during object creation, after setting all properties.
    2479 function IncrA_CreateFcn(hObject, eventdata, handles)
    2480 % hObject    handle to IncrA (see GCBO)
    2481 % eventdata  reserved - to be defined in a future version of MATLAB
    2482 % handles    empty - handles not created until after all CreateFcns called
    2483 
    2484 % Hint: edit controls usually have a white background on Windows.
    2485 %       See ISPC and COMPUTER.
    2486 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
    2487     set(hObject,'BackgroundColor','white');
    2488 end
     2389
    24892390
    24902391
     
    25002401
    25012402function edit82_Callback(hObject, eventdata, handles)
    2502 % hObject    handle to edit82 (see GCBO)
    2503 % eventdata  reserved - to be defined in a future version of MATLAB
    2504 % handles    structure with handles and user data (see GUIDATA)
    2505 
    2506 % Hints: get(hObject,'String') returns contents of edit82 as text
    2507 %        str2double(get(hObject,'String')) returns contents of edit82 as a double
    2508 
    2509 
    2510 % --- Executes during object creation, after setting all properties.
    2511 function edit82_CreateFcn(hObject, eventdata, handles)
    2512 % hObject    handle to edit82 (see GCBO)
    2513 % 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
    25212403
    25222404
     
    25312413
    25322414
    2533 % --- Executes during object creation, after setting all properties.
    2534 function min_vec_CreateFcn(hObject, eventdata, handles)
    2535 % hObject    handle to min_vec (see GCBO)
    2536 % eventdata  reserved - to be defined in a future version of MATLAB
    2537 % handles    empty - handles not created until after all CreateFcns called
    2538 
    2539 % Hint: edit controls usually have a white background on Windows.
    2540 %       See ISPC and COMPUTER.
    2541 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
    2542     set(hObject,'BackgroundColor','white');
    2543 end
    2544 
    2545 
    25462415% --- Executes on slider movement.
    25472416function slider9_Callback(hObject, eventdata, handles)
    2548 % hObject    handle to slider9 (see GCBO)
     2417% hObject    handle to slider2 (see GCBO)
    25492418% eventdata  reserved - to be defined in a future version of MATLAB
    25502419% handles    structure with handles and user data (see GUIDATA)
     
    25542423
    25552424
    2556 % --- Executes during object creation, after setting all properties.
    2557 function slider9_CreateFcn(hObject, eventdata, handles)
    2558 % hObject    handle to slider9 (see GCBO)
    2559 % eventdata  reserved - to be defined in a future version of MATLAB
    2560 % handles    empty - handles not created until after all CreateFcns called
    2561 
    2562 % Hint: slider controls usually have a light gray background.
    2563 if isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
    2564     set(hObject,'BackgroundColor',[.9 .9 .9]);
    2565 end
    2566 
    2567 
    25682425% --- Executes on slider movement.
    25692426function slider10_Callback(hObject, eventdata, handles)
    2570 % hObject    handle to slider10 (see GCBO)
     2427% hObject    handle to slider1 (see GCBO)
    25712428% eventdata  reserved - to be defined in a future version of MATLAB
    25722429% handles    structure with handles and user data (see GUIDATA)
    25732430
    25742431% Hints: get(hObject,'Value') returns position of slider
    2575 %        get(hObject,'Min') and get(hObject,'Max') to determine range of slider
    2576 
    2577 
    2578 % --- Executes during object creation, after setting all properties.
    2579 function slider10_CreateFcn(hObject, eventdata, handles)
    2580 % hObject    handle to slider10 (see GCBO)
    2581 % eventdata  reserved - to be defined in a future version of MATLAB
    2582 % handles    empty - handles not created until after all CreateFcns called
    2583 
    2584 % Hint: slider controls usually have a light gray background.
    2585 if isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
    2586     set(hObject,'BackgroundColor',[.9 .9 .9]);
    2587 end
     2432%        get(hObject,'Min') and get(hObject,'Max') to determine range of
     2433%        slider
    25882434
    25892435
     
    25972443
    25982444
    2599 
    26002445function edit89_Callback(hObject, eventdata, handles)
    26012446% hObject    handle to max_vec (see GCBO)
     
    26072452
    26082453
     2454function edit90_Callback(hObject, eventdata, handles)
     2455% hObject    handle to colcode2 (see GCBO)
     2456% eventdata  reserved - to be defined in a future version of MATLAB
     2457% handles    structure with handles and user data (see GUIDATA)
     2458
     2459% Hints: get(hObject,'String') returns contents of colcode2 as text
     2460%        str2double(get(hObject,'String')) returns contents of colcode2 as a double
     2461
     2462
     2463
     2464
     2465function closefcn(hObject, eventdata, handles)
     2466huvmat=findobj(allchild(0),'Name','uvmat');
     2467hhuvmat=guidata(huvmat);
     2468list_object_2=get(hhuvmat.list_object_2,'String');
     2469set(hhuvmat.list_object_2,'Value',numel(list_object_2))%select the last value ('...')
     2470delete(hObject)
     2471
     2472
    26092473% --- Executes during object creation, after setting all properties.
    2610 function max_vec_CreateFcn(hObject, eventdata, handles)
    2611 % hObject    handle to max_vec (see GCBO)
     2474function colcode1_CreateFcn(hObject, eventdata, handles)
     2475% hObject    handle to colcode1 (see GCBO)
    26122476% eventdata  reserved - to be defined in a future version of MATLAB
    26132477% handles    empty - handles not created until after all CreateFcns called
     
    26202484
    26212485
    2622 
    2623 function edit90_Callback(hObject, eventdata, handles)
    2624 % hObject    handle to edit90 (see GCBO)
     2486% --- Executes during object creation, after setting all properties.
     2487function slider2_CreateFcn(hObject, eventdata, handles)
     2488% hObject    handle to slider2 (see GCBO)
    26252489% eventdata  reserved - to be defined in a future version of MATLAB
    2626 % handles    structure with handles and user data (see GUIDATA)
    2627 
    2628 % Hints: get(hObject,'String') returns contents of edit90 as text
    2629 %        str2double(get(hObject,'String')) returns contents of edit90 as a double
     2490% handles    empty - handles not created until after all CreateFcns called
     2491
     2492% Hint: slider controls usually have a light gray background.
     2493if isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
     2494    set(hObject,'BackgroundColor',[.9 .9 .9]);
     2495end
    26302496
    26312497
    26322498% --- Executes during object creation, after setting all properties.
    2633 function edit90_CreateFcn(hObject, eventdata, handles)
    2634 % hObject    handle to edit90 (see GCBO)
     2499function slider1_CreateFcn(hObject, eventdata, handles)
     2500% hObject    handle to slider1 (see GCBO)
     2501% 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.
     2505if isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
     2506    set(hObject,'BackgroundColor',[.9 .9 .9]);
     2507end
     2508
     2509
     2510% --- Executes during object creation, after setting all properties.
     2511function colcode2_CreateFcn(hObject, eventdata, handles)
     2512% hObject    handle to colcode2 (see GCBO)
    26352513% eventdata  reserved - to be defined in a future version of MATLAB
    26362514% handles    empty - handles not created until after all CreateFcns called
     
    26432521
    26442522
    2645 % --- Executes on button press in vec_col_bar.
    2646 function pushbutton35_Callback(hObject, eventdata, handles)
    2647 % hObject    handle to vec_col_bar (see GCBO)
    2648 % eventdata  reserved - to be defined in a future version of MATLAB
    2649 % handles    structure with handles and user data (see GUIDATA)
    2650 
    2651 
    2652 function close_fcn(hObject, eventdata, handles)
    2653 huvmat=findobj(allchild(0),'Name','uvmat');
    2654 hhuvmat=guidata(huvmat);
    2655 set(hhuvmat.list_object_2,'Visible','off')
Note: See TracChangeset for help on using the changeset viewer.