Mercurial > hg > jslab
comparison src/samer/j3d/StereoView.java @ 0:bf79fb79ee13
Initial Mercurial check in.
author | samer |
---|---|
date | Tue, 17 Jan 2012 17:50:20 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:bf79fb79ee13 |
---|---|
1 /** | |
2 | |
3 */ | |
4 package samer.j3d; | |
5 | |
6 import samer.core.*; | |
7 //import samer.core.util.swing.MenuBuilder; | |
8 import javax.media.j3d.*; | |
9 | |
10 | |
11 public class StereoView extends ViewBase | |
12 { | |
13 Canvas3D c1, c2; | |
14 Shell.Window w1, w2; | |
15 | |
16 public StereoView() | |
17 { | |
18 c1=createCanvas(); | |
19 c1.setMonoscopicViewPolicy(LEFT_EYE_VIEW); | |
20 w1=createWindow(c1,"left"); | |
21 | |
22 c2=createCanvas(); | |
23 c2.setMonoscopicViewPolicy(RIGHT_EYE_VIEW); | |
24 w2=createWindow(c2,"right"); | |
25 | |
26 // MenuBuilder.showCommands(this,c1,null); | |
27 // MenuBuilder.showCommands(this,c2,null); | |
28 } | |
29 | |
30 public void dispose() { | |
31 w1.dispose(); | |
32 w2.dispose(); | |
33 super.dispose(); | |
34 } | |
35 | |
36 } |