@Override public void configure() throws Exception { // We will now read this from the Configuration. The detector needs to be preconfigured! // detector = (XRayDetector) UserUtil.queryObject("Select Detector:", "Detector Selection", // XRayDetector.class); // detector.configure(); detector = Configuration.getGlobalConfiguration().getDetector(); detector.init(); phantom = UserUtil.queryPhantom("Select Phantom", "Select Phantom"); Material mat = null; do { String materialstr = UserUtil.queryString("Enter Background Medium:", "vacuum"); mat = MaterialsDB.getMaterialWithName(materialstr); } while (mat == null); phantom.setBackground(mat); phantom.configure(); rayTracer.setScene((PrioritizableScene) phantom); environment.setMaterial(phantom.getBackgroundMaterial()); super.configure(); }