(ActionEvent evt)
| 605 | } |
| 606 | |
| 607 | public void bt2ActionPerformed(ActionEvent evt) { |
| 608 | // raytracen |
| 609 | String fn = surfex_.tmpDir + "test.png"; |
| 610 | if (surfex_.configFrame.surf.isSelected()) { |
| 611 | fn = surfex_.tmpDir + tmp_surfex_file; |
| 612 | } else { |
| 613 | fn = surfex_.tmpDir + "test.png"; |
| 614 | } |
| 615 | SavePic saveThread = new SavePic(fn, false, antialiasing.isSelected(), |
| 616 | rayFrame.getContentPane().getSize().height |
| 617 | / getInterpolConst(), rayFrame.getContentPane() |
| 618 | .getSize().width |
| 619 | / getInterpolConst(), 72, surfex_, this, this.jv4sx.getCamPos(),this.jv4sx.getViewDir(),this.jv4sx.getUpVector(),this.jv4sx.getRightVector(),parAdmin.getAllParams(),parAdmin.getAllParamValues(),this.jv4sx,this.getAllLamps()); |
| 620 | try { |
| 621 | saveThread.start(); |
| 622 | saveThread.join(); |
| 623 | } catch (InterruptedException e) { |
| 624 | |
| 625 | } |
| 626 | // thread ist fertig |
| 627 | //System.out.println("finally"); |
| 628 | if (surfex_.OS == surfex_.osWINDOWS) { |
| 629 | Runtime r = Runtime.getRuntime(); |
| 630 | Process p; |
| 631 | try { |
| 632 | if (getInterpolConst() != 1) { |
| 633 | // System.out.println("resample"); |
| 634 | p = r.exec(surfex_.configFrame.iviewPath.getText() + " " |
| 635 | + surfex_.tmpDir + "test.png /resample=(0," |
| 636 | + rayFrame.getContentPane().getSize().height |
| 637 | + ") /convert=" + surfex_.tmpDir + "test.png"); |
| 638 | } else { |
| 639 | |
| 640 | p = r.exec("iview\\i_view32.exe " + surfex_.tmpDir |
| 641 | + "test.png /convert=" + surfex_.tmpDir |
| 642 | + "test.png"); |
| 643 | |
| 644 | } |
| 645 | p.waitFor(); |
| 646 | eqAdm.img_filename = surfex_.tmpDir + "test.png"; |
| 647 | } catch (Exception er) { |
| 648 | System.out.println(er); |
| 649 | } |
| 650 | } |
| 651 | if (!rayFrame.isVisible()) { |
| 652 | //System.out.println("setVisible rayFrame"); |
| 653 | //rayFrame.setVisible(true); |
| 654 | } |
| 655 | rayFrame.changeBackground(eqAdm.img_filename); |
| 656 | |
| 657 | SwingUtilities.updateComponentTreeUI(bt4); |
| 658 | } // end of bt2ActionPerformed() |
| 659 | |
| 660 | public void bt3ActionPerformed(ActionEvent evt) { |
| 661 | // open the temporary directory for the current project |
no test coverage detected