scene.compile();
scene.compile();
scene.compile();
scene.compile();
scene.compile();
add("Center", canvas3D); BranchGroup scene = createSceneGraph(); scene.compile();
public Panel createPanel() { Panel p = new Panel(); p.setPreferredSize(new Dimension(512, 512)); p.setLayout(new BorderLayout()); Canvas3D canvas3D = new Canvas3D( SimpleUniverse.getPreferredConfiguration()); p.add("Center", canvas3D); BranchGroup scene = createSceneGraph(); scene.compile(); SimpleUniverse simpleU = new SimpleUniverse(canvas3D); simpleU.getViewingPlatform().setNominalViewingTransform(); simpleU.addBranchGraph(scene); return p; } // end of HelloJava3Dd (constructor)
/** * @deprecated The octree methods will be outsourced into a different plugin. */ @Deprecated public VolumeOctree addOctree(final String imageDir, final String name) { if (octree != null) { IJ.error("Only one large volume can be displayed a time.\n" + "Please remove previously displayed volumes first."); return null; } if (contents.containsKey(name)) { IJ.error("Name exists already"); return null; } try { octree = new VolumeOctree(imageDir, canvas); octree.displayInitial(); octree.getRootBranchGroup().compile(); scene.addChild(octree.getRootBranchGroup()); ensureScale(octree.realWorldXDim()); this.addUniverseListener(octree); } catch (final Exception e) { e.printStackTrace(); } return octree; }
scene.compile(); simpleU.addBranchGraph(scene);
content.compile();
echoBranchGroup.compile() ;
@Override public void run(ImageProcessor ip) { if(imp.getStackSize() > 1 || !isPow2(imp.getWidth()) || !isPow2(imp.getHeight())) { IJ.error("Only one slice allowed, whose dimensions must" + " be a power of 2"); return; } createImage(); univ = new Image3DUniverse(); BranchGroup bg = new BranchGroup(); bg.addChild(createShape()); bg.compile(); univ.getScene().addChild(bg); univ.show(); univ.getCanvas().addMouseListener(this); univ.getCanvas().addMouseMotionListener(this); updater = new ImageUpdater(); ImagePlus.addImageListener(this); imp.show(); }
@Override public void run(ImageProcessor ip) { if(imp.getStackSize() > 1 || !isPow2(imp.getWidth()) || !isPow2(imp.getHeight())) { IJ.error("Only one slice allowed, whose dimensions must" + " be a power of 2"); return; } bImage = createImage(); univ = new Image3DUniverse(); BranchGroup bg = new BranchGroup(); bg.addChild(createShape()); bg.compile(); univ.getScene().addChild(bg); univ.show(); univ.getCanvas().addMouseListener(this); univ.getCanvas().addMouseMotionListener(this); updater = new ImageUpdater(); ImagePlus.addImageListener(this); imp.show(); }
scene.compile(); addBranchGraph(scene);