@Test public void testCreateStereoImageSequenceFileLeft() { setAnimationFrameCount(222); File outputFile = AnimationImageSequenceNameFactory.createStereoImageSequenceFile(animation, 56, "myFrame", TEMP_DIR, Eye.LEFT); assertNotNull(outputFile); assertEquals("myFrame056.tga", outputFile.getName()); assertEquals(TEMP_DIR.getAbsolutePath() + File.separator + "myFrame_left", outputFile.getParent()); outputFile.deleteOnExit(); }
public static File createStereoImageSequenceFile(Animation animation, int frame, String frameName, File outputDir, Eye eye) { String eyeString = eye == Eye.LEFT ? "left" : "right"; File dir = new File(outputDir, frameName + "_" + eyeString); return new File(dir, createImageSequenceFileName(animation, frame, frameName)); }
AnimationImageSequenceNameFactory { public static File createStereoImageSequenceFile(Animation animation, int frame, String frameName, File outputDir, Eye eye) { String eyeString = eye == Eye.LEFT ? "left" : "right"; File dir = new File(outputDir, frameName + "_" + eyeString); return new File(dir, createImageSequenceFileName(animation, frame, frameName)); } }
AnimationImageSequenceNameFactory { public static File createStereoImageSequenceFile(Animation animation, int frame, String frameName, File outputDir, Eye eye) { String eyeString = eye == Eye.LEFT ? "left" : "right"; File dir = new File(outputDir, frameName + "_" + eyeString); return new File(dir, createImageSequenceFileName(animation, frame, frameName)); } private  AnimationImageSequenceNameFactory(); }
AnimationImageSequenceNameFactory { public static File createStereoImageSequenceFile(Animation animation, int frame, String frameName, File outputDir, Eye eye) { String eyeString = eye == Eye.LEFT ? "left" : "right"; File dir = new File(outputDir, frameName + "_" + eyeString); return new File(dir, createImageSequenceFileName(animation, frame, frameName)); } private  AnimationImageSequenceNameFactory(); static String createImageSequenceFileName(Animation animation, int frame, String frameName); static String createImageSequenceName(Animation animation, int frame, String frameName); static File createImageSequenceFile(Animation animation, int frame, String frameName, File outputDir); static File createStereoImageSequenceFile(Animation animation, int frame, String frameName, File outputDir, Eye eye); }
AnimationImageSequenceNameFactory { public static File createStereoImageSequenceFile(Animation animation, int frame, String frameName, File outputDir, Eye eye) { String eyeString = eye == Eye.LEFT ? "left" : "right"; File dir = new File(outputDir, frameName + "_" + eyeString); return new File(dir, createImageSequenceFileName(animation, frame, frameName)); } private  AnimationImageSequenceNameFactory(); static String createImageSequenceFileName(Animation animation, int frame, String frameName); static String createImageSequenceName(Animation animation, int frame, String frameName); static File createImageSequenceFile(Animation animation, int frame, String frameName, File outputDir); static File createStereoImageSequenceFile(Animation animation, int frame, String frameName, File outputDir, Eye eye);  }