MCPcopy Create free account
hub / github.com/Singular/Singular / saveFile

Method saveFile

Singular/LIB/surfex/Project.java:1089–1115  ·  view source on GitHub ↗
(String filelocation, int savetype, boolean dithered,
      boolean antialiasing, int h, int w, int d,jv4surfex jv4sx)

Source from the content-addressed store, hash-verified

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

Callers 1

actionPerformedMethod · 0.80

Calls 9

getAllLampsMethod · 0.95
getCamPosMethod · 0.80
getViewDirMethod · 0.80
getUpVectorMethod · 0.80
getRightVectorMethod · 0.80
getAllParamsMethod · 0.80
getAllParamValuesMethod · 0.80
saveSurfCodeMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected