Changeset 67 for trunk/src/view_field.m
- Timestamp:
- Mar 25, 2010, 6:48:48 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/view_field.m
r61 r67 89 89 set(hObject,'WindowButtonDownFcn',{'mouse_down'})%set mouse click action function 90 90 set(hObject,'WindowButtonUpFcn',{'mouse_up',handles_mouse}) 91 % set(hObject,'CloseRequestFcn ',{'close_fcn'}) 91 set(hObject,'CloseRequestFcn',{@closefcn})% 92 92 93 93 [PlotType,PlotParamOut,haxes]= plot_field(Field,handles.axes3)%,PlotParam,KeepLim,PosColorbar) … … 2337 2337 write_plot_param(handles,PlotParamOut); %update the auto plot parameters 2338 2338 2339 2340 2341 2339 %------------------------------------------------------ 2342 2340 % --- Executes on button press in Menu/Export/field in workspace. … … 2367 2365 2368 2366 function npx_Callback(hObject, eventdata, handles) 2369 % hObject handle to npx (see GCBO)2370 % eventdata reserved - to be defined in a future version of MATLAB2371 % handles structure with handles and user data (see GUIDATA)2372 2373 % Hints: get(hObject,'String') returns contents of npx as text2374 % str2double(get(hObject,'String')) returns contents of npx as a double2375 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 MATLAB2381 % handles empty - handles not created until after all CreateFcns called2382 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 end2388 2367 2389 2368 2390 2369 2391 2370 function npy_Callback(hObject, eventdata, handles) 2392 % hObject handle to npy (see GCBO)2393 % eventdata reserved - to be defined in a future version of MATLAB2394 % handles structure with handles and user data (see GUIDATA)2395 2396 % Hints: get(hObject,'String') returns contents of npy as text2397 % str2double(get(hObject,'String')) returns contents of npy as a double2398 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 MATLAB2404 % handles empty - handles not created until after all CreateFcns called2405 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 end2411 2412 2371 2413 2372 2414 2373 function edit86_Callback(hObject, eventdata, handles) 2415 % hObject handle to MaxA (see GCBO)2416 % eventdata reserved - to be defined in a future version of MATLAB2417 % handles structure with handles and user data (see GUIDATA)2418 2419 % Hints: get(hObject,'String') returns contents of MaxA as text2420 % str2double(get(hObject,'String')) returns contents of MaxA as a double2421 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 MATLAB2427 % handles empty - handles not created until after all CreateFcns called2428 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 end2434 2435 2374 2436 2375 2437 2376 function edit87_Callback(hObject, eventdata, handles) 2438 % hObject handle to MinA (see GCBO)2439 % eventdata reserved - to be defined in a future version of MATLAB2440 % handles structure with handles and user data (see GUIDATA)2441 2442 % Hints: get(hObject,'String') returns contents of MinA as text2443 % str2double(get(hObject,'String')) returns contents of MinA as a double2444 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 MATLAB2450 % handles empty - handles not created until after all CreateFcns called2451 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 end2457 2377 2458 2378 … … 2466 2386 2467 2387 2468 2469 2388 function 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 2489 2390 2490 2391 … … 2500 2401 2501 2402 function edit82_Callback(hObject, eventdata, handles) 2502 % hObject handle to edit82 (see GCBO)2503 % eventdata reserved - to be defined in a future version of MATLAB2504 % handles structure with handles and user data (see GUIDATA)2505 2506 % Hints: get(hObject,'String') returns contents of edit82 as text2507 % str2double(get(hObject,'String')) returns contents of edit82 as a double2508 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 MATLAB2514 % handles empty - handles not created until after all CreateFcns called2515 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 end2521 2403 2522 2404 … … 2531 2413 2532 2414 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 MATLAB2537 % handles empty - handles not created until after all CreateFcns called2538 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 end2544 2545 2546 2415 % --- Executes on slider movement. 2547 2416 function slider9_Callback(hObject, eventdata, handles) 2548 % hObject handle to slider 9(see GCBO)2417 % hObject handle to slider2 (see GCBO) 2549 2418 % eventdata reserved - to be defined in a future version of MATLAB 2550 2419 % handles structure with handles and user data (see GUIDATA) … … 2554 2423 2555 2424 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 MATLAB2560 % handles empty - handles not created until after all CreateFcns called2561 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 end2566 2567 2568 2425 % --- Executes on slider movement. 2569 2426 function slider10_Callback(hObject, eventdata, handles) 2570 % hObject handle to slider1 0(see GCBO)2427 % hObject handle to slider1 (see GCBO) 2571 2428 % eventdata reserved - to be defined in a future version of MATLAB 2572 2429 % handles structure with handles and user data (see GUIDATA) 2573 2430 2574 2431 % 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 2588 2434 2589 2435 … … 2597 2443 2598 2444 2599 2600 2445 function edit89_Callback(hObject, eventdata, handles) 2601 2446 % hObject handle to max_vec (see GCBO) … … 2607 2452 2608 2453 2454 function 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 2465 function closefcn(hObject, eventdata, handles) 2466 huvmat=findobj(allchild(0),'Name','uvmat'); 2467 hhuvmat=guidata(huvmat); 2468 list_object_2=get(hhuvmat.list_object_2,'String'); 2469 set(hhuvmat.list_object_2,'Value',numel(list_object_2))%select the last value ('...') 2470 delete(hObject) 2471 2472 2609 2473 % --- Executes during object creation, after setting all properties. 2610 function max_vec_CreateFcn(hObject, eventdata, handles)2611 % hObject handle to max_vec(see GCBO)2474 function colcode1_CreateFcn(hObject, eventdata, handles) 2475 % hObject handle to colcode1 (see GCBO) 2612 2476 % eventdata reserved - to be defined in a future version of MATLAB 2613 2477 % handles empty - handles not created until after all CreateFcns called … … 2620 2484 2621 2485 2622 2623 function edit90_Callback(hObject, eventdata, handles)2624 % hObject handle to edit90(see GCBO)2486 % --- Executes during object creation, after setting all properties. 2487 function slider2_CreateFcn(hObject, eventdata, handles) 2488 % hObject handle to slider2 (see GCBO) 2625 2489 % 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. 2493 if isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) 2494 set(hObject,'BackgroundColor',[.9 .9 .9]); 2495 end 2630 2496 2631 2497 2632 2498 % --- Executes during object creation, after setting all properties. 2633 function edit90_CreateFcn(hObject, eventdata, handles) 2634 % hObject handle to edit90 (see GCBO) 2499 function 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. 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) 2635 2513 % eventdata reserved - to be defined in a future version of MATLAB 2636 2514 % handles empty - handles not created until after all CreateFcns called … … 2643 2521 2644 2522 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 MATLAB2649 % 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.