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

Method surfcodePart1_OnSystem

Singular/LIB/surfex/SavePic.java:440–476  ·  view source on GitHub ↗
(boolean dithered, String filelocation)

Source from the content-addressed store, hash-verified

438 }
439
440 public String surfcodePart1_OnSystem(boolean dithered, String filelocation) {
441 String surfCodePart1;
442
443// surfCodePart1 = surfcodePart1_OnSystem(false, filelocation)
444// // + surfex_.tmpDir + project.tmp_surfex_file
445// + surfcodePart2_OnSystem(false, filelocation, dpi)
446// + project.eqAdm.getSurfCode_Dither_Part1(dpi);
447 double[] zusRot;
448 //System.out.println("hallo");
449 if(jv4sx_project!=null)
450 {
451 zusRot=jv4sx_project.getCameraRotationYXZ();
452 //System.out.println("zusrot"+zusRot[1]);
453
454 }else{
455 zusRot=new double[3];
456 zusRot[0]=0.0;
457 zusRot[1]=0.0;
458 zusRot[2]=0.0;
459
460 }
461 //rotateString="rot_x="+zusRot[2]+"; rot_y="+zusRot[1]+"; rot_z="+zusRot[2]+";\n";// default
462
463 if (dithered) {
464 surfCodePart1 = project.eqAdm.getSurfCode_Part1(new Dimension(
465 width, height), antialiasing, rotateString, runningParams,
466 runningParamsValue,jv4sx,zusRot)
467 + "tst.jpg\";\n"
468 + project.eqAdm.getSurfCode_Dither_Part1(dpi);
469 } else {
470 surfCodePart1 = project.eqAdm.getSurfCode_Part1(new Dimension(
471 width, height), antialiasing, rotateString, runningParams,
472 runningParamsValue,jv4sx,zusRot)
473 + filelocation+"\";\n";
474 }
475 return surfCodePart1;
476 }
477
478 public String surfcodePart2_OnSystem(boolean dihered, String filelocation,
479 int dpi) {

Callers 2

getSurfCode_OnSystemMethod · 0.95
getSurfCodePart1Method · 0.95

Calls 3

getCameraRotationYXZMethod · 0.80
getSurfCode_Part1Method · 0.80

Tested by

no test coverage detected