Mercurial > hg > Database > Alice
diff src/alice/test/topology/aquarium/MakeFrame.java @ 142:287aae21e7d8 working
minor change
author | sugi |
---|---|
date | Thu, 20 Sep 2012 22:05:32 +0900 |
parents | 4c71bbfe557d |
children | 36dc63d1bdcf |
line wrap: on
line diff
--- a/src/alice/test/topology/aquarium/MakeFrame.java Thu Sep 20 21:35:23 2012 +0900 +++ b/src/alice/test/topology/aquarium/MakeFrame.java Thu Sep 20 22:05:32 2012 +0900 @@ -9,7 +9,6 @@ import javax.media.j3d.Background; import javax.media.j3d.BoundingSphere; import javax.media.j3d.BranchGroup; -import javax.media.j3d.Canvas3D; import javax.media.j3d.DirectionalLight; import javax.media.j3d.ImageComponent2D; @@ -20,15 +19,12 @@ import javax.vecmath.Vector3f; import com.sun.j3d.utils.universe.SimpleUniverse; -import com.sun.j3d.utils.universe.ViewingPlatform; public class MakeFrame { private int fSizeX = 800; private int fSizeY = 800; - //private Canvas3D canvas; private ViewChange canvas; - private SimpleUniverse universe; private JFrame frame; private ObjectList list = new ObjectList(); @@ -42,20 +38,16 @@ frame.add(cp); GraphicsConfiguration config = SimpleUniverse.getPreferredConfiguration(); - //canvas = new Canvas3D(config); canvas = new ViewChange(3.0f,0.01f,config); canvas.setBounds(0,0,fSizeX,fSizeY); cp.add(canvas); - canvas.universe.addBranchGraph(createLight()); canvas.universe.addBranchGraph(setBackground()); canvas.addKeyListener(new KeyInputCodeSegment(this)); frame.setVisible(true); - //ViewingPlatform camera = universe.getViewingPlatform(); - //camera.setNominalViewingTransform(); } private BranchGroup setBackground(){ @@ -95,10 +87,6 @@ } - public SimpleUniverse getUniverse(){ - return this.universe; - } - public ViewChange getCanvas(){ return this.canvas; }