/** * Create video from current viewport using the file path and file header * @param dataAndVideosTagDirectory * @param fileHeader */ private void createVideo(File dataAndVideosTagDirectory, String fileHeader) { File video = new File(dataAndVideosTagDirectory, fileHeader + "_Video.mov"); scs.getStandardSimulationGUI().getViewportPanel().getStandardGUIActions().createVideo(video); } }
private CaptureDevice getCaptureDeviceFromSCS(SimulationConstructionSet scs) { return scs.getGUI().getActiveCaptureDevice(); }
private String[] getCameraConfigurationNames(SimulationConstructionSet scs) { return scs.getGUI().getCameraConfigurationList().getCameraConfigurationNames(); }
for (YoGraph graph : gui.getGraphArrayPanel().getGraphsOnThisPanel()) for(GraphArrayWindow graphArrayWindow : gui.getGraphArrayWindows())
scs.getStandardSimulationGUI().addJComponentToMainPanel(gui, BorderLayout.SOUTH);
private String[] getConfigurationListNames(SimulationConstructionSet scs) { return scs.getGUI().getConfigurationList().getConfigurationNames(); }
boolean isCameraTracking = scs.getGUI().getCamera().isTracking(); boolean isCameraTrackingX = scs.getGUI().getCamera().isTrackingX(); boolean isCameraTrackingY = scs.getGUI().getCamera().isTrackingY(); boolean isCameraTrackingZ = scs.getGUI().getCamera().isTrackingZ(); assertTrue(isCameraTracking); assertFalse(isCameraTrackingX); boolean isCameraTracking2 = scs.getGUI().getCamera().isTracking(); boolean isCameraTrackingX2 = scs.getGUI().getCamera().isTrackingX(); boolean isCameraTrackingY2 = scs.getGUI().getCamera().isTrackingY(); boolean isCameraTrackingZ2 = scs.getGUI().getCamera().isTrackingZ(); assertFalse(isCameraTracking2); assertTrue(isCameraTrackingX2); boolean isCameraTracking3 = scs.getGUI().getCamera().isTracking(); boolean isCameraTrackingX3 = scs.getGUI().getCamera().isTrackingX(); boolean isCameraTrackingY3 = scs.getGUI().getCamera().isTrackingY(); boolean isCameraTrackingZ3 = scs.getGUI().getCamera().isTrackingZ(); assertFalse(isCameraTracking3); assertFalse(isCameraTrackingX3); boolean isCameraTracking4 = scs.getGUI().getCamera().isTracking(); boolean isCameraTrackingX4 = scs.getGUI().getCamera().isTrackingX(); boolean isCameraTrackingY4 = scs.getGUI().getCamera().isTrackingY(); boolean isCameraTrackingZ4 = scs.getGUI().getCamera().isTrackingZ(); assertFalse(isCameraTracking4); assertFalse(isCameraTrackingX4); boolean isCameraDolly = scs.getGUI().getCamera().isDolly();
NameSpaceHierarchyTree nameSpaceHierarchyTree = scs.getGUI().getCombinedVarPanel().getNameSpaceHierarchyTree(); nameSpaceHierarchyTree.addRegistrySettingsChangedListener(robotSocketConnection); robotCommandListener.addCreatedNewRegistryListener(nameSpaceHierarchyTree);
for (YoGraph graph : gui.getGraphArrayPanel().getGraphsOnThisPanel()) for(GraphArrayWindow graphArrayWindow : gui.getGraphArrayWindows())
scs.getStandardSimulationGUI().addJComponentToMainPanel(gui, BorderLayout.SOUTH);
for (YoGraph graph : gui.getGraphArrayPanel().getGraphsOnThisPanel()) for(GraphArrayWindow graphArrayWindow : gui.getGraphArrayWindows())
scs.getStandardSimulationGUI().addJComponentToMainPanel(gui, BorderLayout.SOUTH);
private ClassicCameraController getClassicCameraController(SimulationConstructionSet scs) { return (ClassicCameraController) scs.getGUI().getViewportPanel().getActiveView().getCameraController(); }