Ejemplo n.º 1
0
 public void loadDetector(String detector) {
   if (detector.compareTo("FTOF") == 0) {
     MeshStore store = GeometryLoader.getGeometryGemc();
     for (Map.Entry<String, MeshView> item : store.getMap().entrySet()) {
       // item.getValue().setMaterial(mat);
       root.getChildren().add(item.getValue());
     }
   }
 }
Ejemplo n.º 2
0
 public void testFTOF() {
   PhongMaterial mat = new PhongMaterial();
   mat.setDiffuseColor(new Color(0.1, 0.1, 0.8, 0.5));
   mat.setSpecularColor(new Color(0.1, 0.1, 0.8, 0.5));
   MeshStore store = GeometryLoader.getGeometryGemc();
   for (Map.Entry<String, MeshView> item : store.getMap().entrySet()) {
     // item.getValue().setMaterial(mat);
     root.getChildren().add(item.getValue());
   }
 }