(String filelocation, int savetype, boolean dithered,
boolean antialiasing, int h, int w, int d,jv4surfex jv4sx)
| 1087 | } |
| 1088 | |
| 1089 | public void saveFile(String filelocation, int savetype, boolean dithered, |
| 1090 | boolean antialiasing, int h, int w, int d,jv4surfex jv4sx) { |
| 1091 | //System.out.println("saveFile..."+antialiasing+", |
| 1092 | // savetype:"+savetype); |
| 1093 | if (savetype == 0) { |
| 1094 | eqAdm.saveSurfCode(filelocation, filelocation + ".jpg", |
| 1095 | antialiasing,jv4sx); |
| 1096 | } |
| 1097 | if (savetype == 1) { |
| 1098 | /* |
| 1099 | eqAdm.savePovCode(filelocation); |
| 1100 | */ |
| 1101 | } |
| 1102 | if (savetype == 2) { |
| 1103 | eqAdm.saveSurfCode(filelocation, filelocation + ".jpg", |
| 1104 | antialiasing,jv4sx); |
| 1105 | } |
| 1106 | if (savetype == 3) { |
| 1107 | SavePic saveThread = new SavePic(filelocation, dithered, |
| 1108 | antialiasing, h, w, d, surfex_, this,this.jv4sx.getCamPos(), |
| 1109 | this.jv4sx.getViewDir(),this.jv4sx.getUpVector(),this.jv4sx.getRightVector(), |
| 1110 | parAdmin.getAllParams(),parAdmin.getAllParamValues(), |
| 1111 | this.jv4sx,this.getAllLamps()); |
| 1112 | |
| 1113 | saveThread.start(); |
| 1114 | } |
| 1115 | } // end of saveFile() |
| 1116 | |
| 1117 | |
| 1118 |
no test coverage detected